Line 2... |
Line 2... |
2 |
|
2 |
|
3 |
/**
|
3 |
/**
|
4 |
* Template für die Produktauswahl innerhalb der Bestellansicht
|
4 |
* Template für die Produktauswahl innerhalb der Bestellansicht
|
5 |
*/
|
5 |
*/
|
6 |
|
6 |
|
- |
|
7 |
$storno_amount = $this->view['wpsg_mod_rechnungen']['storno_amount'];
|
- |
|
8 |
$invoice_amount = $this->view['wpsg_mod_rechnungen']['invoice_amount'];
|
- |
|
9 |
|
- |
|
10 |
/** @var wpsg_order_product $oOrderProduct */
|
- |
|
11 |
$oOrderProduct = $this->view['wpsg_mod_rechnungen']['oOrderProduct'];
|
- |
|
12 |
|
- |
|
13 |
$p = $this->view['wpsg_mod_rechnungen']['product'];
|
- |
|
14 |
$product_index = $this->view['wpsg_mod_rechnungen']['product']['product_index'];
|
- |
|
15 |
|
7 |
?>
|
16 |
?>
|
8 |
<tr class="wpsg_<?php echo (($this->view['wpsg_mod_deliverynote']['i'] == 0)?'odd':'even'); ?>">
|
17 |
<tr class="wpsg_<?php echo (($this->view['wpsg_mod_rechnungen']['i'] == 0)?'odd':'even'); ?>">
|
9 |
<td align="left" colspan="<?php echo ((sizeof($this->view['arCalculation']['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1')?'5':'4'); ?>">
|
18 |
<td colspan="<?php echo ((sizeof($this->view['arCalculation']['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1')?'5':'4'); ?>">
|
10 |
<label style="font-weight:normal; display:flex; flex-direction:row; margin-bottom:0px;">
|
19 |
<div style="display:flex; flex-direction:row; margin-bottom:0px; gap:2rem;">
|
- |
|
20 |
|
- |
|
21 |
<?php if ($invoice_amount > 0) { ?>
|
- |
|
22 |
|
- |
|
23 |
<label style="display:flex; flex-direction:row; padding:5px; margin-left:-5px; gap:0.5rem; font-weight:normal; align-items:center;" class="bg_invoice">
|
- |
|
24 |
|
- |
|
25 |
<input form="invoice_form" type="hidden" name="invoice_products[<?php echo $p['order_product_id']; ?>][set]" value="0" />
|
- |
|
26 |
<input checked="checked" form="invoice_form" type="checkbox" class="wpsg_mod_deliverynote_product" name="invoice_products[<?php echo $p['order_product_id']; ?>][set]" value="1" style="margin:0;" />
|
- |
|
27 |
|
11 |
<input checked="checked" type="checkbox" class="wpsg_mod_deliverynote_product" name="wpsg_mod_deliverynote_products[]" value="<?php echo $this->view['wpsg_mod_deliverynote']['product']['product_index']; ?>" style="margin:0px; margin-right:5px;" />
|
28 |
<input form="invoice_form" name="invoice_products[<?php echo $p['order_product_id']; ?>][amount]" type="number" max="<?php echo $invoice_amount; ?>" min="1" value="<?php echo min($invoice_amount, $p['amount']); ?>" style="padding:0; font-size:14px; line-height:22px; min-height:initial; height:22px; width:50px; text-indent:5px; border:1px solid black; margin:0;" />
|
- |
|
29 |
|
12 |
<span> <?php echo __('Auf Lieferschein', 'wpsg'); ?></span>
|
30 |
<span> <?php echo __('Stück auf Rechnung', 'wpsg'); ?></span>
|
- |
|
31 |
|
- |
|
32 |
</label>
|
- |
|
33 |
|
- |
|
34 |
<?php } ?>
|
- |
|
35 |
|
- |
|
36 |
<?php if ($storno_amount > 0) { ?>
|
- |
|
37 |
|
- |
|
38 |
<label style="display:flex; flex-direction:row; padding:5px; margin-left:-5px; gap:0.5rem; font-weight:normal; align-items:center;" class="bg_storno">
|
- |
|
39 |
|
- |
|
40 |
<input form="storno_form" type="hidden" name="storno_products[<?php echo $p['order_product_id']; ?>][set]" value="0" />
|
- |
|
41 |
<input form="storno_form" checked="checked" type="checkbox" class="wpsg_mod_deliverynote_product" name="storno_products[<?php echo $p['order_product_id']; ?>][set]" value="1" style="margin:0;" />
|
- |
|
42 |
|
13 |
</label>
|
43 |
<input form="storno_form" name="storno_products[<?php echo $p['order_product_id']; ?>][amount]" type="number" max="<?php echo $storno_amount; ?>" min="1" value="<?php echo min($storno_amount, $p['amount']); ?>" style="padding:0; font-size:14px; line-height:22px; min-height:initial; height:22px; width:50px; text-indent:5px; border:1px solid black; margin:0;" />
|
- |
|
44 |
|
- |
|
45 |
<span> <?php echo __('Stück auf Gutschrift', 'wpsg'); ?></span>
|
- |
|
46 |
|
- |
|
47 |
</label>
|
- |
|
48 |
|
- |
|
49 |
<?php } ?>
|
- |
|
50 |
|
- |
|
51 |
</div>
|
- |
|
52 |
<?php /** @var \wpsg\wpsg_invoice[] $arInvoice */ $arInvoice = $this->callMod('wpsg_mod_rechnungen', 'getInvoiceToOrderProduct', [$oOrderProduct]); ?>
|
- |
|
53 |
<?php if (sizeof($arInvoice) > 0) { ?>
|
- |
|
54 |
<div style="display:flex; gap:0.5rem; justify-content:flex-start; flex-wrap:wrap;">
|
- |
|
55 |
<?php foreach ($arInvoice as $oInvoice) { ?>
|
- |
|
56 |
<?php echo $oInvoice->getNr(true); ?>
|
- |
|
57 |
<?php } ?>
|
- |
|
58 |
</div>
|
- |
|
59 |
<?php } ?>
|
14 |
</td>
|
60 |
</td>
|
15 |
</tr>
|
61 |
</tr>
|
16 |
|
62 |
|