blob: 14e28ff1df145addc1de9d96c73d476fc826146a [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# Stock Reconciliation
20#---------------------------
21
22sreco = Document(
23 fielddata = {
24 'doctype': 'Stock Reconciliation',
25 'name': 'sreco',
26 'reconciliation_date': '2011-09-08',
27 'reconciliation_time': '20:00',
28 }
29 )
30
31# diff in both
32csv_data1 = [
33 ['Item', 'Warehouse', 'Quantity', 'Rate'],
34 ['it', 'wh1', 20, 150]
35]
36
37# diff in qty, no rate
38csv_data2 = [
39 ['Item', 'Warehouse', 'Quantity'],
40 ['it', 'wh1', 20]
41]
42
43# diff in rate, no qty
44csv_data3 = [
45 ['Item', 'Warehouse', 'Rate'],
46 ['it', 'wh1', 200]
47]
48
49# diff in rate, same qty
50csv_data4 = [
51 ['Item', 'Warehouse', 'Quantity', 'Rate'],
52 ['it', 'wh1', 5, 200]
53]
54
55# no diff
56csv_data1 = [
57 ['Item', 'Warehouse', 'Quantity', 'Rate'],
58 ['it', 'wh1', 5, 100]
59]