Skip to content

Commit

Permalink
fix: Merge Conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
marination authored Jun 16, 2022
1 parent 2cd0319 commit 0f3a02d
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions erpnext/accounts/doctype/pricing_rule/pricing_rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,6 @@ def validate(self):
self.margin_rate_or_amount = 0.0

def validate_duplicate_apply_on(self):
<<<<<<< HEAD
field = apply_on_dict.get(self.apply_on)
values = [d.get(frappe.scrub(self.apply_on)) for d in self.get(field) if field]
if len(values) != len(set(values)):
frappe.throw(_("Duplicate {0} found in the table").format(self.apply_on))
=======
if self.apply_on != "Transaction":
apply_on_table = apply_on_dict.get(self.apply_on)
if not apply_on_table:
Expand All @@ -51,7 +45,6 @@ def validate_duplicate_apply_on(self):
values = [d.get(apply_on_field) for d in self.get(apply_on_table) if d.get(apply_on_field)]
if len(values) != len(set(values)):
frappe.throw(_("Duplicate {0} found in the table").format(self.apply_on))
>>>>>>> b4a93da9f3 (chore: Fix a potential variable misuse bug (#31372))

def validate_mandatory(self):
for apply_on, field in apply_on_dict.items():
Expand Down

0 comments on commit 0f3a02d

Please sign in to comment.