fix: inter transfer delivery note issue with batch (#42552)

This commit is contained in:
rohitwaghchaure
2024-07-31 14:17:22 +05:30
committed by GitHub
parent 33a0a529a5
commit f620ef20ae
2 changed files with 119 additions and 1 deletions

View File

@@ -542,7 +542,9 @@ class SellingController(StockController):
def get_sle_for_source_warehouse(self, item_row):
serial_and_batch_bundle = (
item_row.serial_and_batch_bundle if not self.is_internal_transfer() else None
item_row.serial_and_batch_bundle
if not self.is_internal_transfer() or self.docstatus == 1
else None
)
if serial_and_batch_bundle and self.is_internal_transfer() and self.is_return:
if self.docstatus == 1: