Do not create Shopify fulfillment orders with a quantity of zero

Closes #14286
This commit is contained in:
Cédric Krier
2025-10-11 15:06:20 +02:00
parent 353deb659f
commit 3d6558faaa
+5 -4
View File
@@ -172,10 +172,11 @@ class Move(metaclass=PoolMeta):
for line_item in fulfillment_order.line_items:
if line_item.line_item_id == identifier:
qty = min(quantity, line_item.fulfillable_quantity)
yield fulfillment_order.id, {
'id': line_item.id,
'quantity': qty,
}
if qty:
yield fulfillment_order.id, {
'id': line_item.id,
'quantity': qty,
}
quantity -= qty
if quantity <= 0:
return