Skip to content

Commit

Permalink
Merge pull request #42265 from frappe/mergify/bp/version-15-hotfix/pr…
Browse files Browse the repository at this point in the history
…-42127

fix: removed max discount validation for sales return (backport #42127)
  • Loading branch information
vorasmit committed Jul 10, 2024
2 parents afc1df0 + ab987e9 commit 38da8af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/controllers/selling_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def onload(self):
def validate(self):
super().validate()
self.validate_items()
if not self.get("is_debit_note"):
if not (self.get("is_debit_note") or self.get("is_return")):
self.validate_max_discount()
self.validate_selling_price()
self.set_qty_as_per_stock_uom()
Expand Down

0 comments on commit 38da8af

Please sign in to comment.