|
|
|
@ -60,10 +60,6 @@ void ShopService::calculate(VoucherPtr voucher)
|
|
|
|
|
|
|
|
|
|
loadSettings();
|
|
|
|
|
|
|
|
|
|
if (voucher->items().isEmpty()) {
|
|
|
|
|
load(voucher);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
foreach (QSharedPointer<VoucherItem> item, voucher->items()) {
|
|
|
|
|
|
|
|
|
|
if (item->refId() == ROUNDING_ITEM)
|
|
|
|
@ -384,6 +380,9 @@ void ShopService::moveItems(QList<VoucherItemPtr> items, VoucherPtr source, Vouc
|
|
|
|
|
it->setVoucher(target);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
calculate(target);
|
|
|
|
|
update(target, &session);
|
|
|
|
|
|
|
|
|
|
if (source->items().isEmpty())
|
|
|
|
|
{
|
|
|
|
|
erase(source, &session);
|
|
|
|
|