fix: not able to cancel the inter transfer DN (#42333)

This commit is contained in:
rohitwaghchaure
2024-07-15 16:21:07 +05:30
committed by GitHub
parent 58bfd3b973
commit 6d42cd0f4c
3 changed files with 131 additions and 3 deletions

View File

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