src/Intraface/modules/accounting/Controller/templates/state/creditnote.tpl.php 1 location
|
@@ 81-85 (lines=5) @@
|
| 78 |
|
<tbody> |
| 79 |
|
<?php |
| 80 |
|
$total = 0; |
| 81 |
|
if (isset($items[0]["vat"])) { |
| 82 |
|
$vat = $items[0]["vat"]; // Er der moms p� det f�rste produkt |
| 83 |
|
} else { |
| 84 |
|
$vat = 0; |
| 85 |
|
} |
| 86 |
|
|
| 87 |
|
for ($i = 0, $max = count($items); $i<$max; $i++) { |
| 88 |
|
$product = new Product($context->getKernel(), $items[$i]['product_id']); |
src/Intraface/modules/accounting/Controller/templates/state/invoice.tpl.php 1 location
|
@@ 65-69 (lines=5) @@
|
| 62 |
|
<tbody> |
| 63 |
|
<?php |
| 64 |
|
$total = 0; |
| 65 |
|
if (isset($items[0]["vat"])) { |
| 66 |
|
$vat = $items[0]["vat"]; // Er der moms p� det f�rste produkt |
| 67 |
|
} else { |
| 68 |
|
$vat = 0; |
| 69 |
|
} |
| 70 |
|
|
| 71 |
|
for ($i = 0, $max = count($items); $i<$max; $i++) { |
| 72 |
|
$product = new Product($context->getKernel(), $items[$i]['product_id']); |
src/Intraface/modules/debtor/Controller/templates/show.tpl.php 1 location
|
@@ 568-572 (lines=5) @@
|
| 565 |
|
$items = $context->getDebtor()->getItems(); |
| 566 |
|
$total = 0; |
| 567 |
|
$total_currency = 0; |
| 568 |
|
if (isset($items[0]["vat"])) { |
| 569 |
|
$vat = $items[0]["vat"]; // Er der moms p� det f�rste produkt |
| 570 |
|
} else { |
| 571 |
|
$vat = 0; |
| 572 |
|
} |
| 573 |
|
|
| 574 |
|
for ($i = 0, $max = count($items); $i<$max; $i++) { |
| 575 |
|
$total += $items[$i]["quantity"] * $items[$i]["price"]->getAsIso(2); |
src/Intraface/modules/debtor/Visitor/Pdf.php 1 location
|
@@ 133-137 (lines=5) @@
|
| 130 |
|
$total_currency = 0; |
| 131 |
|
} |
| 132 |
|
|
| 133 |
|
if (isset($items[0]["vat"])) { |
| 134 |
|
$vat = $items[0]["vat"]; |
| 135 |
|
} else { |
| 136 |
|
$vat = 0; |
| 137 |
|
} |
| 138 |
|
|
| 139 |
|
$bg_color = 0; |
| 140 |
|
|