[Koha-patches] [PATCH 05/11] (MT3174) acqui/neworderempty.pl: incrementing the quantity when adding an item
Henri-Damien LAURENT
henridamien.laurent at biblibre.com
Fri Mar 26 11:25:35 CET 2010
From: Alex Arnaud <alex.arnaud at biblibre.com>
Signed-off-by: Henri-Damien LAURENT <henridamien.laurent at biblibre.com>
---
koha-tmpl/intranet-tmpl/prog/en/js/additem.js | 4 ++--
.../prog/en/modules/acqui/neworderempty.tmpl | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/koha-tmpl/intranet-tmpl/prog/en/js/additem.js b/koha-tmpl/intranet-tmpl/prog/en/js/additem.js
index 352c30f..ac3e8bd 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/js/additem.js
+++ b/koha-tmpl/intranet-tmpl/prog/en/js/additem.js
@@ -35,8 +35,8 @@ function cloneItemBlock(index) {
//}
// insert this line on the page
original.parentNode.insertBefore(clone,original.nextSibling);
- var quantityrec = document.getElementById('quantityrec');
- quantityrec.setAttribute('value',parseFloat(quantityrec.getAttribute('value'))+1);
+ var quantity = document.getElementById('quantity');
+ quantity.setAttribute('value',parseFloat(quantity.getAttribute('value'))+1);
}
function check_additem() {
var barcodes = document.getElementsByName('barcode');
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tmpl
index f42e58e..f6f7902 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tmpl
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tmpl
@@ -240,7 +240,7 @@ ff.submit();
<!-- TMPL_IF name="items" -->
<input type="text" readonly="readonly" size="20" id="quantity" name="quantity" value="1" onchange="calcNeworderTotal();" />
<!-- TMPL_ELSE -->
- <input type="text" size="20" id="quantityrec" name="quantity" value="<!-- TMPL_VAR name="quantityrec" -->" onchange="calcNeworderTotal();" />
+ <input type="text" size="20" id="quantity" name="quantity" value="<!-- TMPL_VAR name="quantityrec" -->" onchange="calcNeworderTotal();" />
<!-- /TMPL_IF -->
<!--/TMPL_IF-->
<!-- origquantityrec only here for javascript compatibility (additem.js needs it, useless here, usefull when receiveing an order -->
--
1.6.3.3
More information about the Koha-patches
mailing list