Merge pull request #30470 from nextchamp-saqib/fix-dn-credit-limit-validation
fix: credit limit validation in delivery note
This commit is contained in:
commit
87dc9c6331
@ -280,8 +280,11 @@ class DeliveryNote(SellingController):
|
|||||||
)
|
)
|
||||||
|
|
||||||
if bypass_credit_limit_check_at_sales_order:
|
if bypass_credit_limit_check_at_sales_order:
|
||||||
validate_against_credit_limit = True
|
for d in self.get("items"):
|
||||||
extra_amount = self.base_grand_total
|
if not d.against_sales_invoice:
|
||||||
|
validate_against_credit_limit = True
|
||||||
|
extra_amount = self.base_grand_total
|
||||||
|
break
|
||||||
else:
|
else:
|
||||||
for d in self.get("items"):
|
for d in self.get("items"):
|
||||||
if not (d.against_sales_order or d.against_sales_invoice):
|
if not (d.against_sales_order or d.against_sales_invoice):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user