Hi I would like to make (locally) a copy of an existing order.
Is there any other way besides orderConnector.createOrder(src); ? I would like to the new order to have a null state to not yet to be listed among orders on the device.
I have tried:
Order o = new Order();
final Order newOrder = orderConnector.createOrder(o);
ArrayList<String> lineItemIds = new ArrayList<>();
for (LineItem i : src.getLineItems()){
lineItemIds.add(i.getId());
}
orderConnector.createLineItemsFrom(src.getId(),newOrder.getId(), lineItemIds);
But that fails with
CloverBinder: isCallerClover(CloverBinder.java:897): Calling process doesn't have appropriate permission
Besides that the method is not commented as 'Not available to non-Clover apps.', how should I proceed?
Thank you, Ondrej