Commit 5a3f1a06 authored by Karamel's avatar Karamel
Browse files

Fix taxCat in cash session summary for desktop.

parent f239d906
...@@ -333,6 +333,10 @@ class CashsessionAPI extends APIHelper implements API ...@@ -333,6 +333,10 @@ class CashsessionAPI extends APIHelper implements API
} }
$summaryCats[$catId]['amount'] += $finalPrice; $summaryCats[$catId]['amount'] += $finalPrice;
// Category tax // Category tax
if ($line->getTax() === null) {
continue;
}
$taxId = $line->getTax()->getId();
if (!isset($summaryCatTaxes[$catId])) { if (!isset($summaryCatTaxes[$catId])) {
$summaryCatTaxes[$catId] = []; $summaryCatTaxes[$catId] = [];
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment