question

martin.j avatar image
0 Likes"
martin.j asked Joerg Vogel edited

Get BackOrder Fulfillment degree from list

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:

  1. List resourceList = List("ResourceList");
  2. int orderIndex = resourceList.backOrders().toArray().indexOf();
  3. List.BackOrder backOrder = resourceList.backOrders(orderIndex);
  4. double requested = backOrder.numRequested;
  5. double fulfilled = backOrder.??????;
  6. double toProduce = requested-fulfilled;
FlexSim 20.1.0
listsbackorderfulfilled
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Matthew Gillespie avatar image
1 Like"
Matthew Gillespie answered Joerg Vogel edited

This isn't a property on the Backorder object in the API right now, but maybe it should be. You can get this number by calling getsdtvalue() on the backorder like this:

  1. getsdtvalue(List("ItemList1").backOrders()[1], "numFulfilled")

Note that since we haven't officially exposed this property through the API we make no guarantee that this code will continue to work in future versions of the software.

· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.