summaryrefslogtreecommitdiff
path: root/views/order
diff options
context:
space:
mode:
authorDaniel Schmitzer <noreply@maennchen1.de>2019-01-07 06:34:54 +0000
committerDaniel Schmitzer <noreply@maennchen1.de>2019-01-07 06:34:54 +0000
commitf9630dbd8571bd2fe14819516f8891e113b6e0a2 (patch)
treeae413ff6b54341de45424d34a56c74e5beb6b67b /views/order
parentf360ac72dbc68d94f75c389c6d94b04db7718933 (diff)
- Anonymisieren von Adressen/Kundendaten
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@7243 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/order')
-rw-r--r--views/order/product_table.phtml12
1 files changed, 8 insertions, 4 deletions
diff --git a/views/order/product_table.phtml b/views/order/product_table.phtml
index bd3e106..5f32000 100644
--- a/views/order/product_table.phtml
+++ b/views/order/product_table.phtml
@@ -12,7 +12,7 @@
if ($this->get_option('wpsg_showMwstAlways') == '1' || sizeof($arCalculation['tax']) > 1) $this->view['colspan'] ++;
$this->view['arCalculation'] = $arCalculation;
-
+
if ($this->getBackendTaxView() === WPSG_NETTO) $display = 'netto';
else $display = 'brutto';
@@ -29,7 +29,7 @@
<?php echo wpsg_drawForm_Select('tax_mode', __('Besteuerung'), [
\wpsg\wpsg_calculation::TAXMODE_SMALLBUSINESS => __('Kleinunternehmerregelung'),
\wpsg\wpsg_calculation::TAXMODE_B2C => __('Endkundenbesteuerung'),
- \wpsg\wpsg_calculation::TAXMODE_B2B => __('Firmenkundenbesteuerung')
+ \wpsg\wpsg_calculation::TAXMODE_B2B => __('Firmenkundenbesteuerung (USTIdNr)')
], $this->view['oCalculation']->getTaxMode(), ['onchange' => 'WPSG_BE.updateCalculation();', 'help' => 'tax_mode']); ?>
<br />
@@ -67,8 +67,12 @@
<tr class="wpsg_<?php echo (($i % 2 == 0)?'odd':'even'); ?> wpsg_productrow_add">
<td class="wpsg_cell_name"></td>
<td class="wpsg_cell_preis"><?php echo wpsg_ff($product_price); ?> <?php echo $this->get_option('wpsg_currency'); ?></td>
- <?php if (sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
- <td class="wpsg_cell_mwst"><?php echo $arTaxShort[$p['tax_key']]; ?></td>
+ <?php if (sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
+ <td class="wpsg_cell_mwst"><?php
+
+ echo (($p['brutto'] === $p['netto'])?wpsg_ff(0, '%'):$arTaxShort[$p['tax_key']]);
+
+ ?></td>
<?php } ?>
<td class="wpsg_cell_menge"><?php echo wpsg_hspc($p['amount']); ?></td>
<td class="wpsg_cell_gesamtpreis"><?php echo wpsg_ff($p['amount'] * $product_price); ?> <?php echo $this->get_option('wpsg_currency'); ?></td>