Additional Costs in Stock Entry

This commit is contained in:
Nabin Hait
2015-08-07 17:17:03 +05:30
parent 246e47e76e
commit 3c3a3ecea8
19 changed files with 1404 additions and 330 deletions

View File

@@ -237,7 +237,7 @@ def repost_all_stock_vouchers():
doc = frappe.get_doc(voucher_type, voucher_no)
if voucher_type=="Stock Entry" and doc.purpose in ["Manufacture", "Repack"]:
doc.get_stock_and_rate(force=1)
doc.calculate_rate_and_amount(force=1)
elif voucher_type=="Purchase Receipt" and doc.is_subcontracted == "Yes":
doc.validate()