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

(cherry picked from commit eab775ef32)
This commit is contained in:
Rohit Waghchaure
2023-02-22 12:30:09 +05:30
committed by Mergify
parent 667ec983ec
commit db033c6862
5 changed files with 103 additions and 6 deletions

View File

@@ -269,7 +269,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