Fixed saved voucher recalculation.

closes #278
print
Josef Rokos 8 years ago
parent 8fe8f5952e
commit 22faefa558

@ -17,7 +17,7 @@
<item> <item>
<widget class="QTabWidget" name="tabWidget"> <widget class="QTabWidget" name="tabWidget">
<property name="currentIndex"> <property name="currentIndex">
<number>2</number> <number>0</number>
</property> </property>
<widget class="QWidget" name="tab"> <widget class="QWidget" name="tab">
<attribute name="title"> <attribute name="title">

@ -247,6 +247,11 @@ void ShopService::moveItems(QList<VoucherItemPtr> items, VoucherPtr source, Vouc
{ {
erase(source); erase(source);
} }
else
{
calculate(source);
update(source);
}
tx.commit(); tx.commit();
} }

Loading…
Cancel
Save