diff options
| author | Roger Rehnelt <noreply@maennchen1.de> | 2026-09-26 13:11:07 +0200 |
|---|---|---|
| committer | Roger Rehnelt <noreply@maennchen1.de> | 2026-09-26 13:11:07 +0200 |
| commit | 59185cb8adcda21523b59e9e7330e767c519f350 (patch) | |
| tree | 668831fd281cdef0f2a63cc060e69358143ee659 | |
| parent | b0ee3f94865d5c95fabe223e1e762c179adff033 (diff) | |
Backend: PHP-Warnungen in Listen und Bestellanlage
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
| -rw-r--r-- | views/order/index.phtml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/views/order/index.phtml b/views/order/index.phtml index c8652bf..a7d5b4d 100644 --- a/views/order/index.phtml +++ b/views/order/index.phtml @@ -103,7 +103,7 @@ <select name="filter[invoicedate_m]" class="form-control input-sm">
<option value="-1"><?php echo __("Alle", "wpsg"); ?></option>
<?php for ($i = 1; $i <= 12; $i ++) { ?>
- <option <?php echo ((wpsg_getStr($this->view['arFilter']['invoicedate_m']) == $i)?'selected="selected"':''); ?> value="<?php echo str_pad($i, 2, '0', STR_PAD_LEFT); ?>"><?php echo strftime("%B", mktime(0, 0, 0, $i, 1, 2000)); ?></option>
+ <option <?php echo ((wpsg_getStr($this->view['arFilter']['invoicedate_m']) == $i)?'selected="selected"':''); ?> value="<?php echo str_pad($i, 2, '0', STR_PAD_LEFT); ?>"><?php echo esc_html(wp_date('F', mktime(0, 0, 0, $i, 1, 2000))); ?></option>
<?php } ?>
</select>
</div>
@@ -414,9 +414,9 @@ <?php if ($this->get_option('wpsg_showvalueofgoods')) { ?>
<td class="col_productsum">
- <?php $oOrderProducts = $oOrder->getOrderProducts(); ?>
+ <?php $product_sum = 0; $oOrderProducts = $oOrder->getOrderProducts(); ?>
<?php foreach ($oOrderProducts as $oOrderProduct) { ?>
- <?php $product_sum += $oOrderProduct->getPriceSum($this->getBackendTaxview()); ?>
+ <?php $product_sum = ($product_sum ?? 0) + $oOrderProduct->getPriceSum($this->getBackendTaxview()); ?>
<?php } ?>
<?php echo wpsg_ff($product_sum, $this->get_option('wpsg_currency')); ?>
<?php $product_sum = 0; ?>
|
