mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-30 17:42:32 +02:00
fix: not able to submit the stock entry (#47383)
This commit is contained in:
@@ -1824,7 +1824,11 @@ def make_bundle_for_material_transfer(**kwargs):
|
|||||||
bundle_doc.is_cancelled = 0
|
bundle_doc.is_cancelled = 0
|
||||||
|
|
||||||
qty = 0
|
qty = 0
|
||||||
if len(bundle_doc.entries) == 1 and kwargs.qty < bundle_doc.total_qty and not bundle_doc.has_serial_no:
|
if (
|
||||||
|
len(bundle_doc.entries) == 1
|
||||||
|
and flt(kwargs.qty) < flt(bundle_doc.total_qty)
|
||||||
|
and not bundle_doc.has_serial_no
|
||||||
|
):
|
||||||
qty = kwargs.qty
|
qty = kwargs.qty
|
||||||
|
|
||||||
for row in bundle_doc.entries:
|
for row in bundle_doc.entries:
|
||||||
|
|||||||
Reference in New Issue
Block a user