summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-11-15 17:10:32 +0700
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-11-15 17:10:32 +0700
commit992b2cc2fb3637a3df45b67ad282aab1d1905320 (patch)
treebdbf021ef2b2c912543070a88123292899dc243a
parent24bf56bfc3517750d722cf71d201491ae86d9745 (diff)
Subtotal and total cost get updated along with update
-rw-r--r--basket.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/basket.cxx b/basket.cxx
index a5f9b23..b1c89f8 100644
--- a/basket.cxx
+++ b/basket.cxx
@@ -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();
}
}