blob: 5cd6dc266533ada3bf928a16c7f3834733f440bf [file] [log] [blame]
Rushabh Mehta3966f1d2012-02-23 12:35:32 +05301# ERPNext - web based ERP (http://erpnext.com)
2# Copyright (C) 2012 Web Notes Technologies Pvt Ltd
3#
4# This program is free software: you can redistribute it and/or modify
5# it under the terms of the GNU General Public License as published by
6# the Free Software Foundation, either version 3 of the License, or
7# (at your option) any later version.
8#
9# This program is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12# GNU General Public License for more details.
13#
14# You should have received a copy of the GNU General Public License
15# along with this program. If not, see <http://www.gnu.org/licenses/>.
16
Anand Doshi486f9df2012-07-19 13:40:31 +053017from __future__ import unicode_literals
Nabin Haitfc26f642011-11-21 17:13:53 +053018from webnotes.model.doc import Document
19
20# Existing SLE data
21#---------------------------
22
23sle = [
24 Document(
25 fielddata = {
26 'doctype': 'Stock Ledger Entry',
27 'name': 'sle1',
28 'posting_date': '2011-09-01',
29 'posting_time': '12:00',
30 'item_code': 'it',
31 'warehouse': 'wh1',
32 'actual_qty': 10,
33 'incoming_rate': 100,
34 'bin_aqat': 10,
35 'valuation_rate': 100,
36 'fcfs_stack': '',
37 'stock_value': 1000,
38 'is_cancelled': 'No'
39 }
40 ),
41 Document(
42 fielddata = {
43 'doctype': 'Stock Ledger Entry',
44 'name': 'sle2',
45 'posting_date': '2011-09-01',
46 'posting_time': '12:00',
47 'item_code': 'it',
48 'warehouse': 'wh1',
49 'actual_qty': -5,
50 'incoming_rate': 100,
51 'bin_aqat': 5,
52 'valuation_rate': 100,
53 'fcfs_stack': '',
54 'stock_value': 500,
55 'is_cancelled': 'No'
56 }
57 ),
58 Document(
59 fielddata = {
60 'doctype': 'Stock Ledger Entry',
61 'name': 'sle3',
62 'posting_date': '2011-09-10',
63 'posting_time': '15:00',
64 'item_code': 'it',
65 'warehouse': 'wh1',
66 'actual_qty': 20,
67 'incoming_rate': 200,
68 'bin_aqat': 25,
69 'valuation_rate': 180,
70 'fcfs_stack': '',
71 'stock_value': 4500,
72 'is_cancelled': 'No'
73 }
74 ),
75 Document(
76 fielddata = {
77 'doctype': 'Stock Ledger Entry',
78 'name': 'sle4',
79 'posting_date': '2011-09-15',
80 'posting_time': '09:30',
81 'item_code': 'it',
82 'warehouse': 'wh1',
83 'actual_qty': -5,
84 'incoming_rate': 180,
85 'bin_aqat': 20,
86 'valuation_rate': 180,
87 'fcfs_stack': '',
88 'stock_value': 3600,
89 'is_cancelled': 'No'
90 }
91 )
92]
93
94bin = Document(
95 fielddata = {
96 'doctype': 'Bin',
97 'name': 'bin01',
98 'item_code': 'it',
99 'warehouse': 'wh1',
100 'actual_qty': 20,
101 }
102)