fix: stock reservation Delivered Qty against the batch

This commit is contained in:
Rohit Waghchaure
2025-08-06 17:07:51 +05:30
parent ad3d6a7c91
commit 849f646bd2

View File

@@ -452,8 +452,6 @@ class DeliveryNote(SellingController):
self.update_prevdoc_status()
self.update_billing_status()
self.update_stock_reservation_entries()
if not self.is_return:
self.check_credit_limit()
elif self.issue_credit_note:
@@ -467,6 +465,7 @@ class DeliveryNote(SellingController):
self.make_bundle_using_old_serial_batch_fields(table_name)
self.validate_standalone_serial_nos_customer()
self.update_stock_reservation_entries()
# Updating stock ledger should always be called after updating prevdoc status,
# because updating reserved qty in bin depends upon updated delivered qty in SO