Merge pull request #3282 from nabinhait/v4.x.x

landed cost voucher fix
This commit is contained in:
Nabin Hait
2015-05-18 17:15:31 +05:30

View File

@@ -33,6 +33,8 @@ class Bin(Document):
args["posting_date"] = nowdate()
# update valuation and qty after transaction for post dated entry
if args.get("is_cancelled") == "Yes" and via_landed_cost_voucher:
return
update_entries_after({
"item_code": self.item_code,
"warehouse": self.warehouse,