fix: dont ignore items that dont have SVD
When items go from negative to positive stock value diff can be zero but item might have taxes / need divisional loss adjustment.
This commit is contained in:
parent
69c65afd72
commit
c88c368880
@ -288,9 +288,6 @@ class PurchaseReceipt(BuyingController):
|
||||
{"voucher_type": "Purchase Receipt", "voucher_no": self.name,
|
||||
"voucher_detail_no": d.name, "warehouse": d.warehouse, "is_cancelled": 0}, "stock_value_difference")
|
||||
|
||||
if not stock_value_diff:
|
||||
continue
|
||||
|
||||
warehouse_account_name = warehouse_account[d.warehouse]["account"]
|
||||
warehouse_account_currency = warehouse_account[d.warehouse]["account_currency"]
|
||||
supplier_warehouse_account = warehouse_account.get(self.supplier_warehouse, {}).get("account")
|
||||
|
Loading…
Reference in New Issue
Block a user