blob: efcbbc5dfe5b74801d3407387c9bdc897bcec63e [file] [log] [blame]
Nabin Haitfc26f642011-11-21 17:13:53 +05301from webnotes.model.doc import Document
2
3# Stock Reconciliation
4#---------------------------
5
6sreco = Document(
7 fielddata = {
8 'doctype': 'Stock Reconciliation',
9 'name': 'sreco',
10 'reconciliation_date': '2011-09-08',
11 'reconciliation_time': '20:00',
12 }
13 )
14
15# diff in both
16csv_data1 = [
17 ['Item', 'Warehouse', 'Quantity', 'Rate'],
18 ['it', 'wh1', 20, 150]
19]
20
21# diff in qty, no rate
22csv_data2 = [
23 ['Item', 'Warehouse', 'Quantity'],
24 ['it', 'wh1', 20]
25]
26
27# diff in rate, no qty
28csv_data3 = [
29 ['Item', 'Warehouse', 'Rate'],
30 ['it', 'wh1', 200]
31]
32
33# diff in rate, same qty
34csv_data4 = [
35 ['Item', 'Warehouse', 'Quantity', 'Rate'],
36 ['it', 'wh1', 5, 200]
37]
38
39# no diff
40csv_data1 = [
41 ['Item', 'Warehouse', 'Quantity', 'Rate'],
42 ['it', 'wh1', 5, 100]
43]