Nabin Hait | fc26f64 | 2011-11-21 17:13:53 +0530 | [diff] [blame] | 1 | from webnotes.model.doc import Document |
| 2 | |
| 3 | # Existing SLE data |
| 4 | #--------------------------- |
| 5 | |
| 6 | sle = [ |
| 7 | Document( |
| 8 | fielddata = { |
| 9 | 'doctype': 'Stock Ledger Entry', |
| 10 | 'name': 'sle1', |
| 11 | 'posting_date': '2011-09-01', |
| 12 | 'posting_time': '12:00', |
| 13 | 'item_code': 'it', |
| 14 | 'warehouse': 'wh1', |
| 15 | 'actual_qty': 10, |
| 16 | 'incoming_rate': 100, |
| 17 | 'bin_aqat': 10, |
| 18 | 'valuation_rate': 100, |
| 19 | 'fcfs_stack': '', |
| 20 | 'stock_value': 1000, |
| 21 | 'is_cancelled': 'No' |
| 22 | } |
| 23 | ), |
| 24 | Document( |
| 25 | fielddata = { |
| 26 | 'doctype': 'Stock Ledger Entry', |
| 27 | 'name': 'sle2', |
| 28 | 'posting_date': '2011-09-01', |
| 29 | 'posting_time': '12:00', |
| 30 | 'item_code': 'it', |
| 31 | 'warehouse': 'wh1', |
| 32 | 'actual_qty': -5, |
| 33 | 'incoming_rate': 100, |
| 34 | 'bin_aqat': 5, |
| 35 | 'valuation_rate': 100, |
| 36 | 'fcfs_stack': '', |
| 37 | 'stock_value': 500, |
| 38 | 'is_cancelled': 'No' |
| 39 | } |
| 40 | ), |
| 41 | Document( |
| 42 | fielddata = { |
| 43 | 'doctype': 'Stock Ledger Entry', |
| 44 | 'name': 'sle3', |
| 45 | 'posting_date': '2011-09-10', |
| 46 | 'posting_time': '15:00', |
| 47 | 'item_code': 'it', |
| 48 | 'warehouse': 'wh1', |
| 49 | 'actual_qty': 20, |
| 50 | 'incoming_rate': 200, |
| 51 | 'bin_aqat': 25, |
| 52 | 'valuation_rate': 180, |
| 53 | 'fcfs_stack': '', |
| 54 | 'stock_value': 4500, |
| 55 | 'is_cancelled': 'No' |
| 56 | } |
| 57 | ), |
| 58 | Document( |
| 59 | fielddata = { |
| 60 | 'doctype': 'Stock Ledger Entry', |
| 61 | 'name': 'sle4', |
| 62 | 'posting_date': '2011-09-15', |
| 63 | 'posting_time': '09:30', |
| 64 | 'item_code': 'it', |
| 65 | 'warehouse': 'wh1', |
| 66 | 'actual_qty': -5, |
| 67 | 'incoming_rate': 180, |
| 68 | 'bin_aqat': 20, |
| 69 | 'valuation_rate': 180, |
| 70 | 'fcfs_stack': '', |
| 71 | 'stock_value': 3600, |
| 72 | 'is_cancelled': 'No' |
| 73 | } |
| 74 | ) |
| 75 | ] |
| 76 | |
| 77 | bin = Document( |
| 78 | fielddata = { |
| 79 | 'doctype': 'Bin', |
| 80 | 'name': 'bin01', |
| 81 | 'item_code': 'it', |
| 82 | 'warehouse': 'wh1', |
| 83 | 'actual_qty': 20, |
| 84 | } |
| 85 | ) |