Is it possible to get the backorder fulfilled degree/value from a backorder?
I have an order on a list pulling resources and at some point I want to produce the exact amount remaining to fill the order. To do that I will need to get its backorder from the list and find out how much of its original requested/required resources it has already been assigned and set about producing the rest.
I imagine the code would go something like this:
- List resourceList = List("ResourceList");
- int orderIndex = resourceList.backOrders().toArray().indexOf();
- List.BackOrder backOrder = resourceList.backOrders(orderIndex);
- double requested = backOrder.numRequested;
- double fulfilled = backOrder.??????;
- double toProduce = requested-fulfilled;