mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-26 13:25:20 +00:00
feat: adjust purchase receipt valuation rate as per purchase invoice rate
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user