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

calculateOrdersItemQuantity

fun calculateOrdersItemQuantity(order: Order?): Int?

Takes in an Order object and loops through each of it's line items if it has any. Filters out all Tax items, as they can be added as well and increments a counter and finally returns the final item count.

Parameters

order -