mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-17 18:45:20 +00:00
committed by
Mergify
parent
3ea1c73c07
commit
5e9f1dfbb3
@@ -18,7 +18,7 @@
|
||||
"pr_required",
|
||||
"column_break_12",
|
||||
"maintain_same_rate",
|
||||
"adjust_incoming_rate_based_on_purchase_invoice_rate",
|
||||
"set_landed_cost_based_on_purchase_invoice_rate",
|
||||
"allow_multiple_items",
|
||||
"bill_for_rejected_quantity_in_purchase_invoice",
|
||||
"disable_last_purchase_rate",
|
||||
@@ -153,9 +153,9 @@
|
||||
"default": "0",
|
||||
"depends_on": "eval: !doc.maintain_same_rate",
|
||||
"description": "Users can enable the checkbox If they want to adjust the incoming rate (set using purchase receipt) based on the purchase invoice rate.",
|
||||
"fieldname": "adjust_incoming_rate_based_on_purchase_invoice_rate",
|
||||
"fieldname": "set_landed_cost_based_on_purchase_invoice_rate",
|
||||
"fieldtype": "Check",
|
||||
"label": "Adjust Incoming Rate Based on Purchase Invoice Rate"
|
||||
"label": "Set Landed Cost Based on Purchase Invoice Rate"
|
||||
}
|
||||
],
|
||||
"icon": "fa fa-cog",
|
||||
@@ -163,7 +163,7 @@
|
||||
"index_web_pages_for_search": 1,
|
||||
"issingle": 1,
|
||||
"links": [],
|
||||
"modified": "2023-02-20 14:25:58.544143",
|
||||
"modified": "2023-02-28 15:41:32.686805",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Buying",
|
||||
"name": "Buying Settings",
|
||||
|
||||
@@ -27,4 +27,4 @@ class BuyingSettings(Document):
|
||||
|
||||
def check_maintain_same_rate(self):
|
||||
if self.maintain_same_rate:
|
||||
self.adjust_incoming_rate_based_on_purchase_invoice_rate = 0
|
||||
self.set_landed_cost_based_on_purchase_invoice_rate = 0
|
||||
|
||||
Reference in New Issue
Block a user