blob: 3469c10237d4cbd403311685183d5aed7a89594e [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
Nabin Haitfc26f642011-11-21 17:13:53 +053017from webnotes.model.doc import Document
18
19# Existing SLE data
20#---------------------------
21
22sle = [
23 Document(
24 fielddata = {
25 'doctype': 'Stock Ledger Entry',
26 'name': 'sle1',
27 'posting_date': '2011-09-01',
28 'posting_time': '12:00',
29 'item_code': 'it',
30 'warehouse': 'wh1',
31 'actual_qty': 10,
32 'incoming_rate': 100,
33 'bin_aqat': 10,
34 'valuation_rate': 100,
35 'fcfs_stack': '',
36 'stock_value': 1000,
37 'is_cancelled': 'No'
38 }
39 ),
40 Document(
41 fielddata = {
42 'doctype': 'Stock Ledger Entry',
43 'name': 'sle2',
44 'posting_date': '2011-09-01',
45 'posting_time': '12:00',
46 'item_code': 'it',
47 'warehouse': 'wh1',
48 'actual_qty': -5,
49 'incoming_rate': 100,
50 'bin_aqat': 5,
51 'valuation_rate': 100,
52 'fcfs_stack': '',
53 'stock_value': 500,
54 'is_cancelled': 'No'
55 }
56 ),
57 Document(
58 fielddata = {
59 'doctype': 'Stock Ledger Entry',
60 'name': 'sle3',
61 'posting_date': '2011-09-10',
62 'posting_time': '15:00',
63 'item_code': 'it',
64 'warehouse': 'wh1',
65 'actual_qty': 20,
66 'incoming_rate': 200,
67 'bin_aqat': 25,
68 'valuation_rate': 180,
69 'fcfs_stack': '',
70 'stock_value': 4500,
71 'is_cancelled': 'No'
72 }
73 ),
74 Document(
75 fielddata = {
76 'doctype': 'Stock Ledger Entry',
77 'name': 'sle4',
78 'posting_date': '2011-09-15',
79 'posting_time': '09:30',
80 'item_code': 'it',
81 'warehouse': 'wh1',
82 'actual_qty': -5,
83 'incoming_rate': 180,
84 'bin_aqat': 20,
85 'valuation_rate': 180,
86 'fcfs_stack': '',
87 'stock_value': 3600,
88 'is_cancelled': 'No'
89 }
90 )
91]
92
93bin = Document(
94 fielddata = {
95 'doctype': 'Bin',
96 'name': 'bin01',
97 'item_code': 'it',
98 'warehouse': 'wh1',
99 'actual_qty': 20,
100 }
101)