Merge pull request #49012 from rohitwaghchaure/fixed-support-43860

fix: stock reservation Delivered Qty against the batch
This commit is contained in:
rohitwaghchaure
2025-08-07 12:27:54 +05:30
committed by GitHub

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