diff options
| author | Daniel Schmitzer <noreply@maennchen1.de> | 2022-11-04 10:24:14 +0000 |
|---|---|---|
| committer | Daniel Schmitzer <noreply@maennchen1.de> | 2022-11-04 10:24:14 +0000 |
| commit | f47943c50e9895900fbcb0a3e9fce359846f4a66 (patch) | |
| tree | 96390d5df6b310e2d23643f16034bd84cb8e113c | |
| parent | 3b2e209615cf844ef8167c568709cc0d9d87d1ef (diff) | |
- Versandzonen
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@8139 0d5edaf7-2b12-4e95-93f4-047927463d4b
| -rw-r--r-- | views/order/product_table.phtml | 35 |
1 files changed, 21 insertions, 14 deletions
diff --git a/views/order/product_table.phtml b/views/order/product_table.phtml index 9bbbb3e..3d6cee5 100644 --- a/views/order/product_table.phtml +++ b/views/order/product_table.phtml @@ -303,20 +303,27 @@ <strong><?php echo wpsg_ff($arCalculation['sum']['brutto']); ?> <?php echo $this->get_option('wpsg_currency'); ?></strong>
</td>
</tr>
- <?php foreach ($arCalculation['tax'] as $tax) { if ($tax['sum'] > 0 && $tax['key'] != '0') { ?>
- <tr class="wpsg_row_mwst wpsg_row_small">
- <td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_mwst_label">
- <?php if ($this->get_option('wpsg_kleinunternehmer') == '1') { ?>
- <?php echo $this->get_option('wpsg_kleinunternehmer_text'); ?>
- <?php } else { ?>
- <?php echo wpsg_translate(__('darin enthaltene MwSt. (#1#)', 'wpsg'), $arTax[$tax['key']]); ?>
- <?php } ?>
- </td>
- <td class="wpsg_cell_mwst_value wpsg_cell_gesamtpreis">
- <?php echo wpsg_ff($tax['sum']); ?> <?php echo $this->get_option('wpsg_currency'); ?>
- </td>
- </tr>
- <?php } } ?>
+
+ <?php if ($this->get_option('wpsg_kleinunternehmer') == '1') { ?>
+ <tr class="wpsg_row_mwst wpsg_row_small">
+ <td class="wpsg_cell_mwst_value wpsg_cell_gesamtpreis" colspan="<?php echo $this->view['colspan'] + 1; ?>">
+ <?php echo $this->get_option('wpsg_kleinunternehmer_text'); ?>
+ </td>
+ </tr>
+ <?php } else { ?>
+
+ <?php foreach ($arCalculation['tax'] as $tax) { if ($tax['sum'] > 0 && $tax['key'] != '0') { ?>
+ <tr class="wpsg_row_mwst wpsg_row_small">
+ <td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_mwst_label">
+ <?php echo wpsg_translate(__('darin enthaltene MwSt. (#1#)', 'wpsg'), $arTax[$tax['key']]); ?>
+ </td>
+ <td class="wpsg_cell_mwst_value wpsg_cell_gesamtpreis">
+ <?php echo wpsg_ff($tax['sum']); ?> <?php echo $this->get_option('wpsg_currency'); ?>
+ </td>
+ </tr>
+ <?php } } ?>
+
+ <?php } ?>
<?php } ?>
|
