fix: inter transfer delivery note issue with batch (#42552)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user