vnorder / com.venuenext.vnorder.orders.data / OrderRepository / updateAndInsertOrderData

updateAndInsertOrderData

fun updateAndInsertOrderData(order: Order?): Deferred<Unit>

First, takes in an Order object and sets the order's itemCount value. Second, inserts the updated order into Room. Finally, calls the LineItemRepository to insert the line items for this order, which internally relates the line items to the order via UUID.

Parameters

order -