mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-20 15:32:14 +00:00
fix: last purchase rate not updated from purchase invoice (backport #42847) (backport #42853) (#42855)
fix: last purchase rate not updated from purchase invoice (backport #42847) (#42853) fix: last purchase rate not updated from purchase invoice (#42847) (cherry picked from commit5b9309cf34) Co-authored-by: rohitwaghchaure <rohitw1991@gmail.com> (cherry picked from commit2203ea9301) Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This commit is contained in:
@@ -689,9 +689,11 @@ class BuyingController(SubcontractingController):
|
|||||||
if self.doctype in ["Purchase Receipt", "Purchase Invoice"]:
|
if self.doctype in ["Purchase Receipt", "Purchase Invoice"]:
|
||||||
self.process_fixed_asset()
|
self.process_fixed_asset()
|
||||||
|
|
||||||
if self.doctype in ["Purchase Order", "Purchase Receipt"] and not frappe.db.get_single_value(
|
if self.doctype in [
|
||||||
"Buying Settings", "disable_last_purchase_rate"
|
"Purchase Order",
|
||||||
):
|
"Purchase Receipt",
|
||||||
|
"Purchase Invoice",
|
||||||
|
] and not frappe.db.get_single_value("Buying Settings", "disable_last_purchase_rate"):
|
||||||
update_last_purchase_rate(self, is_submit=1)
|
update_last_purchase_rate(self, is_submit=1)
|
||||||
|
|
||||||
def on_cancel(self):
|
def on_cancel(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user