Skip to content

Commit

Permalink
fix: skip max discount validation for rate adjustment
Browse files Browse the repository at this point in the history
(cherry picked from commit 5a3b133)
  • Loading branch information
GursheenK authored and mergify[bot] committed Feb 23, 2024
1 parent 83b4cc5 commit 3b96aae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion erpnext/controllers/selling_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ def onload(self):
def validate(self):
super(SellingController, self).validate()
self.validate_items()
self.validate_max_discount()
if not self.get("is_debit_note"):
self.validate_max_discount()
self.validate_selling_price()
self.set_qty_as_per_stock_uom()
self.set_po_nos(for_validate=True)
Expand Down

0 comments on commit 3b96aae

Please sign in to comment.