2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-30 12:36:45 +00:00

Select first and only pending shipment for sales order barcode allocation (#8984) (#8986)

(cherry picked from commit ede30cec7a507aab9c063fc44ab5d9e70ec902d6)

Co-authored-by: Dean <me@dgardiner.net>
This commit is contained in:
github-actions[bot] 2025-01-29 22:35:51 +11:00 committed by GitHub
parent 453c726d1e
commit 993849813f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -654,7 +654,7 @@ class BarcodeSOAllocate(BarcodeView):
return shipment
shipments = order.models.SalesOrderShipment.objects.filter(
order=sales_order, delivery_date=None
order=sales_order, shipment_date=None
)
if shipments.count() == 1: