From 09cb59ead35940e21b78886a177904df75e81f24 Mon Sep 17 00:00:00 2001 From: Oliver Date: Thu, 15 Dec 2022 20:58:14 +1100 Subject: [PATCH] Use supplier part pack size for scheduling (#4063) --- InvenTree/part/api.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/InvenTree/part/api.py b/InvenTree/part/api.py index eed93d57d5..77e0dbd03e 100644 --- a/InvenTree/part/api.py +++ b/InvenTree/part/api.py @@ -527,6 +527,9 @@ class PartScheduling(RetrieveAPI): quantity = max(line.quantity - line.received, 0) + # Multiply by the pack_size of the SupplierPart + quantity *= line.part.pack_size + add_schedule_entry( target_date, quantity,