fix: allow submit delivery note when the sales order was billed... (#34910)

This commit is contained in:
HarryPaulo 2023-04-25 13:24:41 -03:00 committed by GitHub
parent c36dc3dc57
commit 3be1ab9b8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -271,6 +271,9 @@ class DeliveryNote(SellingController):
def check_credit_limit(self):
from erpnext.selling.doctype.customer.customer import check_credit_limit
if self.per_billed == 100:
return
extra_amount = 0
validate_against_credit_limit = False
bypass_credit_limit_check_at_sales_order = cint(