2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-05-02 21:38:48 +00:00

Use supplier part pack size for scheduling (#4063)

This commit is contained in:
Oliver 2022-12-15 20:58:14 +11:00 committed by GitHub
parent bfeffd0cc7
commit 09cb59ead3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -527,6 +527,9 @@ class PartScheduling(RetrieveAPI):
quantity = max(line.quantity - line.received, 0) quantity = max(line.quantity - line.received, 0)
# Multiply by the pack_size of the SupplierPart
quantity *= line.part.pack_size
add_schedule_entry( add_schedule_entry(
target_date, target_date,
quantity, quantity,