fix: resolve conflict

This commit is contained in:
Khushi Rawat
2026-06-03 14:22:59 +05:30
committed by GitHub
parent 611849f953
commit 271ddb6add

View File

@@ -633,14 +633,9 @@ class PurchaseInvoice(BuyingController):
throw(msg, title=_("Mandatory Purchase Order")) throw(msg, title=_("Mandatory Purchase Order"))
def pr_required(self): def pr_required(self):
<<<<<<< HEAD
stock_items = self.get_stock_items()
if frappe.db.get_value("Buying Settings", None, "pr_required") == "Yes":
=======
if frappe.db.get_single_value("Buying Settings", "pr_required") == "Yes": if frappe.db.get_single_value("Buying Settings", "pr_required") == "Yes":
stock_and_asset_items = self.get_stock_items() stock_and_asset_items = self.get_stock_items()
stock_and_asset_items.extend(self.get_asset_items()) stock_and_asset_items.extend(self.get_asset_items())
>>>>>>> d0d9411700 (fix(accounts): include asset items in purchase receipt validation (#55150))
if frappe.get_value( if frappe.get_value(
"Supplier", self.supplier, "allow_purchase_invoice_creation_without_purchase_receipt" "Supplier", self.supplier, "allow_purchase_invoice_creation_without_purchase_receipt"
): ):