feat: adjust purchase receipt valuation rate as per purchase invoice rate

This commit is contained in:
Rohit Waghchaure
2023-02-22 12:30:09 +05:30
parent 9cd42dd60f
commit eab775ef32
5 changed files with 103 additions and 6 deletions

View File

@@ -265,7 +265,10 @@ class BuyingController(SubcontractingController):
) / qty_in_stock_uom
else:
item.valuation_rate = (
item.base_net_amount + item.item_tax_amount + flt(item.landed_cost_voucher_amount)
item.base_net_amount
+ item.item_tax_amount
+ flt(item.landed_cost_voucher_amount)
+ flt(item.get("adjust_incoming_rate"))
) / qty_in_stock_uom
else:
item.valuation_rate = 0.0