mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 11:19:09 +00:00
Merge pull request #42264 from frappe/mergify/bp/version-14-hotfix/pr-42127
fix: removed max discount validation for sales return (backport #42127)
This commit is contained in:
@@ -31,7 +31,7 @@ class SellingController(StockController):
|
|||||||
def validate(self):
|
def validate(self):
|
||||||
super().validate()
|
super().validate()
|
||||||
self.validate_items()
|
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_max_discount()
|
||||||
self.validate_selling_price()
|
self.validate_selling_price()
|
||||||
self.set_qty_as_per_stock_uom()
|
self.set_qty_as_per_stock_uom()
|
||||||
|
|||||||
Reference in New Issue
Block a user