fix: skip max discount validation for rate adjustment

(cherry picked from commit 5a3b133d65)
This commit is contained in:
Gursheen Anand
2024-02-22 16:08:11 +05:30
committed by Mergify
parent 96703fb34d
commit 8c7d0d4b85

View File

@@ -31,7 +31,8 @@ class SellingController(StockController):
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)