summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Schmitzer <noreply@maennchen1.de>2022-08-04 09:24:22 +0000
committerDaniel Schmitzer <noreply@maennchen1.de>2022-08-04 09:24:22 +0000
commit36a49aff8df345cf6ecbaf58e4c04d9189059158 (patch)
treedc6db8f5a2e782f53b5cd40d6d2df73484bdc568
parent67bd6aba055f37ddccb3eed9a8f02f3b9f89ebe6 (diff)
- Rabatt/Gutscheine in Teilrechnungen
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@8063 0d5edaf7-2b12-4e95-93f4-047927463d4b
-rwxr-xr-xviews/mods/mod_rechnungen/order_view_orderdata_after.phtml8
-rw-r--r--views/mods/mod_rechnungen/order_view_row.phtml4
2 files changed, 6 insertions, 6 deletions
diff --git a/views/mods/mod_rechnungen/order_view_orderdata_after.phtml b/views/mods/mod_rechnungen/order_view_orderdata_after.phtml
index f0896dc..4b0f214 100755
--- a/views/mods/mod_rechnungen/order_view_orderdata_after.phtml
+++ b/views/mods/mod_rechnungen/order_view_orderdata_after.phtml
@@ -184,13 +184,13 @@
let el_invoice_wpsg_rechnungen_submit = document.getElementById('invoice_wpsg_rechnungen_submit');
function check_invoice_amount(event) {
-
+
let ok = false;
- for (let el_checkbox of document.getElementsByClassName('wpsg_check_amount')) {
+ for (let el_checkbox of document.getElementsByClassName('wpsg_check_amount_invoice')) {
if (el_checkbox.checked) {
-
+
if (parseInt(el_checkbox.nextElementSibling.value) > 0) {
ok = true; break;
@@ -317,7 +317,7 @@
let ok = false;
- for (let el_checkbox of document.getElementsByClassName('wpsg_check_amount')) {
+ for (let el_checkbox of document.getElementsByClassName('wpsg_check_amount_storno')) {
if (el_checkbox.checked) {
diff --git a/views/mods/mod_rechnungen/order_view_row.phtml b/views/mods/mod_rechnungen/order_view_row.phtml
index f6a2064..3bafd25 100644
--- a/views/mods/mod_rechnungen/order_view_row.phtml
+++ b/views/mods/mod_rechnungen/order_view_row.phtml
@@ -37,7 +37,7 @@
<span><?php echo __('Menge'); ?></span>
<input form="invoice_form" type="hidden" name="invoice_products[<?php echo $p['order_product_id']; ?>][set]" value="0" class="" />
- <input checked="checked" form="invoice_form" type="checkbox" class="wpsg_mod_deliverynote_product wpsg_check_amount" name="invoice_products[<?php echo $p['order_product_id']; ?>][set]" value="1" style="margin:0;" />
+ <input checked="checked" form="invoice_form" type="checkbox" class="wpsg_mod_deliverynote_product wpsg_check_amount_invoice" name="invoice_products[<?php echo $p['order_product_id']; ?>][set]" value="1" style="margin:0;" />
<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;" />
@@ -64,7 +64,7 @@
<span><?php echo __('Menge'); ?></span>
<input form="storno_form" type="hidden" name="storno_products[<?php echo $p['order_product_id']; ?>][set]" value="0" class="" />
- <input form="storno_form" type="checkbox" class="wpsg_mod_deliverynote_product wpsg_check_amount" name="storno_products[<?php echo $p['order_product_id']; ?>][set]" value="1" style="margin:0;" />
+ <input form="storno_form" type="checkbox" class="wpsg_mod_deliverynote_product wpsg_check_amount_storno" name="storno_products[<?php echo $p['order_product_id']; ?>][set]" value="1" style="margin:0;" />
<input form="storno_form" oninput="event.target.previousElementSibling.checked = true;" onchange="event.target.previousElementSibling.checked = true;" 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;" />