Closed kobsam closed 2 years ago
The batch on the demand is just used in the delivery-operation as I see. But i need the operationplan (manufactoring order) that is created for each demand and for that I created this . I work with bucketized resources and allowSplits = false.
The batch on the demand is just used in the delivery-operation as I see.
That's not correct. The batch information will automatically propagate upstream to all other operationplans that are used to satisfy the demand. This propagation continues as deep as the items are marked as "make-to-order". It stops at "make-to-stock" items.
In the example at https://frepple.org/docs/current/user-guide/examples/buffer/make-to-order.php you can see this in action for the "item B". All items in its supply path are make-to-order, and you can see the batch information populated on the purchase orders (which are 2 levels deep in the supply path).
Sorry, won't merge this.
Wouldn't the make-to-order functionality using the batch field not work for this? See https://frepple.org/docs/current/user-guide/examples/buffer/make-to-order.php
If all your items are marked of type "make-to-order" and you set the batch field of your demands, then frepple automatically constructs a supply path that is dedicated to each demand. In such a model, manufacturing orders will automatically have a hard association with a demand.
I haven't checked the code changes in detail, but at first glance this risks to break a lot of existing models. It doesn't look like this will be backwards compatible.