* fix: not able to import serial batch bundle using csv (#38950) (cherry picked from commit d00f6672a8d9db1e28f9a86ff8efbedcdc95c41a) # Conflicts: # erpnext/stock/doctype/serial_and_batch_bundle/serial_and_batch_bundle.py * chore: fixed conflicts --------- Co-authored-by: rohitwaghchaure <rohitw1991@gmail.com>
This commit is contained in:
parent
a41cf62437
commit
0e48ef7ace
@ -1185,7 +1185,7 @@ def create_serial_batch_no_ledgers(entries, child_row, parent_doc, warehouse=Non
|
|||||||
doc.append(
|
doc.append(
|
||||||
"entries",
|
"entries",
|
||||||
{
|
{
|
||||||
"qty": (row.qty or 1.0) * (1 if type_of_transaction == "Inward" else -1),
|
"qty": (flt(row.qty) or 1.0) * (1 if type_of_transaction == "Inward" else -1),
|
||||||
"warehouse": warehouse,
|
"warehouse": warehouse,
|
||||||
"batch_no": row.batch_no,
|
"batch_no": row.batch_no,
|
||||||
"serial_no": row.serial_no,
|
"serial_no": row.serial_no,
|
||||||
@ -1213,7 +1213,7 @@ def update_serial_batch_no_ledgers(entries, child_row, parent_doc, warehouse=Non
|
|||||||
doc.append(
|
doc.append(
|
||||||
"entries",
|
"entries",
|
||||||
{
|
{
|
||||||
"qty": d.get("qty") * (1 if doc.type_of_transaction == "Inward" else -1),
|
"qty": (flt(d.get("qty")) or 1.0) * (1 if doc.type_of_transaction == "Inward" else -1),
|
||||||
"warehouse": warehouse or d.get("warehouse"),
|
"warehouse": warehouse or d.get("warehouse"),
|
||||||
"batch_no": d.get("batch_no"),
|
"batch_no": d.get("batch_no"),
|
||||||
"serial_no": d.get("serial_no"),
|
"serial_no": d.get("serial_no"),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user