diff options
author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-11-15 17:10:32 +0700 |
---|---|---|
committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-11-15 17:10:32 +0700 |
commit | 992b2cc2fb3637a3df45b67ad282aab1d1905320 (patch) | |
tree | bdbf021ef2b2c912543070a88123292899dc243a | |
parent | 24bf56bfc3517750d722cf71d201491ae86d9745 (diff) |
Subtotal and total cost get updated along with update
-rw-r--r-- | basket.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -52,7 +52,11 @@ namespace ICClient { if (order) { for (size_t i = 0; i < order->nitems; i++) addItem(Item{order->items[i]}); + m_subtotal = order->subtotal; + m_totalCost = order->total_cost; emit updated(); + emit subtotalChanged(); + emit totalCostChanged(); } } |