mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-13 15:27:12 +00:00
fix: credit limit validation in delivery note
(cherry picked from commit c122882884)
This commit is contained in:
committed by
mergify-bot
parent
39ff7b0b06
commit
c9cd3ee9aa
@@ -280,8 +280,11 @@ class DeliveryNote(SellingController):
|
||||
)
|
||||
|
||||
if bypass_credit_limit_check_at_sales_order:
|
||||
validate_against_credit_limit = True
|
||||
extra_amount = self.base_grand_total
|
||||
for d in self.get("items"):
|
||||
if not d.against_sales_invoice:
|
||||
validate_against_credit_limit = True
|
||||
extra_amount = self.base_grand_total
|
||||
break
|
||||
else:
|
||||
for d in self.get("items"):
|
||||
if not (d.against_sales_order or d.against_sales_invoice):
|
||||
|
||||
Reference in New Issue
Block a user