update
This commit is contained in:
@@ -4,6 +4,7 @@ $itemsList = is_array($items ?? null) ? $items : [];
|
||||
$configsList = is_array($configs ?? null) ? $configs : [];
|
||||
$sellerData = is_array($seller ?? null) ? $seller : [];
|
||||
$totalGrossVal = (float) ($totalGross ?? 0);
|
||||
$deliveryPriceVal = (float) ($deliveryPrice ?? 0);
|
||||
$orderIdVal = (int) ($orderId ?? 0);
|
||||
$existingReceiptsList = is_array($existingReceipts ?? null) ? $existingReceipts : [];
|
||||
$hasExistingReceipts = $existingReceiptsList !== [];
|
||||
@@ -94,6 +95,16 @@ $hasExistingReceipts = $existingReceiptsList !== [];
|
||||
<td><?= $e($sum !== null ? number_format($sum, 2, '.', ' ') : '-') ?></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
<?php if ($deliveryPriceVal > 0): ?>
|
||||
<tr>
|
||||
<td><?= $e((string) (count($itemsList) + 1)) ?></td>
|
||||
<td>Koszt wysylki</td>
|
||||
<td><div>-</div><div class="muted">-</div></td>
|
||||
<td>1</td>
|
||||
<td><?= $e(number_format($deliveryPriceVal, 2, '.', ' ')) ?></td>
|
||||
<td><?= $e(number_format($deliveryPriceVal, 2, '.', ' ')) ?></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
|
||||
Reference in New Issue
Block a user