From 22faefa5582cb221c861c5bb1c9ef71f11bcad15 Mon Sep 17 00:00:00 2001 From: Josef Rokos Date: Wed, 8 Mar 2017 14:03:51 +0100 Subject: [PATCH] Fixed saved voucher recalculation. closes #278 --- shop/settings/shopsettingsform.ui | 2 +- shop/shopservice.cpp | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/shop/settings/shopsettingsform.ui b/shop/settings/shopsettingsform.ui index 267bd7d..b3ba813 100644 --- a/shop/settings/shopsettingsform.ui +++ b/shop/settings/shopsettingsform.ui @@ -17,7 +17,7 @@ - 2 + 0 diff --git a/shop/shopservice.cpp b/shop/shopservice.cpp index 8af8217..c07425a 100644 --- a/shop/shopservice.cpp +++ b/shop/shopservice.cpp @@ -247,6 +247,11 @@ void ShopService::moveItems(QList items, VoucherPtr source, Vouc { erase(source); } + else + { + calculate(source); + update(source); + } tx.commit(); }