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,6 +31,7 @@ class SellingController(StockController):
def validate(self): def validate(self):
super(SellingController, self).validate() super(SellingController, self).validate()
self.validate_items() self.validate_items()
if not self.get("is_debit_note"):
self.validate_max_discount() self.validate_max_discount()
self.validate_selling_price() self.validate_selling_price()
self.set_qty_as_per_stock_uom() self.set_qty_as_per_stock_uom()