Skip to content

Commit 9938498

Browse files
Select first and only pending shipment for sales order barcode allocation (#8984) (#8986)
(cherry picked from commit ede30ce) Co-authored-by: Dean <me@dgardiner.net>
1 parent 453c726 commit 9938498

File tree

1 file changed

+1
-1
lines changed
  • src/backend/InvenTree/plugin/base/barcodes

1 file changed

+1
-1
lines changed

src/backend/InvenTree/plugin/base/barcodes/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ def get_shipment(self, **kwargs):
654654
return shipment
655655

656656
shipments = order.models.SalesOrderShipment.objects.filter(
657-
order=sales_order, delivery_date=None
657+
order=sales_order, shipment_date=None
658658
)
659659

660660
if shipments.count() == 1:

0 commit comments

Comments
 (0)