From 335118a73293c5c328ef8d9cd6d87626d623864e Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Fri, 16 Sep 2011 11:05:07 +0530 Subject: [PATCH 1/5] added some steps --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 27f86feb3c..5dd6489b6b 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,11 @@ To update from wnframework version 1. python lib/wnf.py setup +4. copy defs.py from cgi-bin/webnotes to py/webnotes +5. change module_path in defs.py +6. delete cgi-bin directory +7. delete all old module directories from erpnext + ## License ERPNext is available under the GNU/GPL license. From 966a7ce018e5cac9c25dec2f3578ed6d8f280e51 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Fri, 16 Sep 2011 11:07:26 +0530 Subject: [PATCH 2/5] Edited README.md via GitHub --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5dd6489b6b..1dde74ceb4 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ To update from wnframework version 1. python lib/wnf.py setup 4. copy defs.py from cgi-bin/webnotes to py/webnotes -5. change module_path in defs.py +5. change module_path (point to erpnext/erpnext) in defs.py 6. delete cgi-bin directory 7. delete all old module directories from erpnext From 8c9a5af2314b4b9ab3a2643ac00818a9ea97b0b7 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Fri, 16 Sep 2011 12:51:19 +0530 Subject: [PATCH 3/5] Error fixed in bin --- erpnext/stock/doctype/bin/bin.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/erpnext/stock/doctype/bin/bin.py b/erpnext/stock/doctype/bin/bin.py index 3b71bd0034..cf9509a332 100644 --- a/erpnext/stock/doctype/bin/bin.py +++ b/erpnext/stock/doctype/bin/bin.py @@ -40,9 +40,10 @@ class DocType: # update valuation for post dated entry - if actual_qty and serial_no: + if actual_qty: # check actual qty with total number of serial no - self.check_qty_with_serial_no() + if serial_no: + self.check_qty_with_serial_no() prev_sle = self.get_prev_sle(dt, posting_time, sle_id) cqty = flt(prev_sle.get('bin_aqat', 0)) From b2f38b5e0cf4d1fab0a9e57ce7553af1f740c585 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Fri, 16 Sep 2011 14:24:27 +0530 Subject: [PATCH 4/5] Edited README.md via GitHub --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1dde74ceb4..4ed8f0d936 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ For download and install details, please go to [erpnext.org](http://erpnext.org) To update from wnframework version 1. 1. set your html folder to the root of erpnext (rather than wnframework) -2. symlink wnframework as 'lib': +2. create a symlink in erpnext: ln -s path/to/wnframework lib From 0b5f9b04750442bba087564aee2c366af9babcb1 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Fri, 16 Sep 2011 14:32:23 +0530 Subject: [PATCH 5/5] update valuation and bin_aqat patch --- erpnext/patches/patch.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/erpnext/patches/patch.py b/erpnext/patches/patch.py index 8ced1a3cf5..e930c2e05e 100644 --- a/erpnext/patches/patch.py +++ b/erpnext/patches/patch.py @@ -1,7 +1,7 @@ # REMEMBER to update this # ======================== -last_patch = 365 +last_patch = 366 #------------------------------------------- @@ -308,7 +308,7 @@ def execute(patch_no): sql("update tabDocField set label='Produced Qty',description='Updated after finished goods are transferred to FG Warehouse through Stock Entry' where parent='Production Order' and fieldname='produced_qty'") rs = sql("select fieldname from tabDocField where parent='Features Setup' and fieldname is not null") from webnotes.model.doc import Document - m = Document('Features Setup', 'Features Setup') + m = Document('Features Setup') for d in rs: m.fields[d[0]] = 1 m.save() @@ -340,3 +340,9 @@ def execute(patch_no): elif patch_no == 365: from patches.delivery_billing_status_patch import run_patch run_patch() + elif patch_no == 366: + bin = sql("select name from tabBin") + for b in bin: + bobj = get_obj('Bin',b[0]) + prev_sle = bobj.get_prev_sle(posting_date = '2011-09-15', posting_time = '01:00') + bobj.update_item_valuation(posting_date = '2011-09-15', posting_time = '01:00', prev_sle = prev_sle)