mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-15 04:45:09 +00:00
fix: create SBB for `transfer_qty` in SE
(cherry picked from commit d59caf08e6)
Co-authored-by: s-aga-r <sagarsharma.s312@gmail.com>
This commit is contained in:
@@ -1035,7 +1035,7 @@ class StockEntry(StockController):
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
bundle_doc = None
|
bundle_doc = None
|
||||||
if row.serial_and_batch_bundle and abs(row.qty) != abs(
|
if row.serial_and_batch_bundle and abs(row.transfer_qty) != abs(
|
||||||
frappe.get_cached_value("Serial and Batch Bundle", row.serial_and_batch_bundle, "total_qty")
|
frappe.get_cached_value("Serial and Batch Bundle", row.serial_and_batch_bundle, "total_qty")
|
||||||
):
|
):
|
||||||
bundle_doc = SerialBatchCreation(
|
bundle_doc = SerialBatchCreation(
|
||||||
@@ -1045,7 +1045,7 @@ class StockEntry(StockController):
|
|||||||
"serial_and_batch_bundle": row.serial_and_batch_bundle,
|
"serial_and_batch_bundle": row.serial_and_batch_bundle,
|
||||||
"type_of_transaction": "Outward",
|
"type_of_transaction": "Outward",
|
||||||
"ignore_serial_nos": already_picked_serial_nos,
|
"ignore_serial_nos": already_picked_serial_nos,
|
||||||
"qty": row.qty * -1,
|
"qty": row.transfer_qty * -1,
|
||||||
}
|
}
|
||||||
).update_serial_and_batch_entries()
|
).update_serial_and_batch_entries()
|
||||||
elif not row.serial_and_batch_bundle:
|
elif not row.serial_and_batch_bundle:
|
||||||
@@ -1057,7 +1057,7 @@ class StockEntry(StockController):
|
|||||||
"posting_time": self.posting_time,
|
"posting_time": self.posting_time,
|
||||||
"voucher_type": self.doctype,
|
"voucher_type": self.doctype,
|
||||||
"voucher_detail_no": row.name,
|
"voucher_detail_no": row.name,
|
||||||
"qty": row.qty * -1,
|
"qty": row.transfer_qty * -1,
|
||||||
"ignore_serial_nos": already_picked_serial_nos,
|
"ignore_serial_nos": already_picked_serial_nos,
|
||||||
"type_of_transaction": "Outward",
|
"type_of_transaction": "Outward",
|
||||||
"company": self.company,
|
"company": self.company,
|
||||||
|
|||||||
Reference in New Issue
Block a user