We have a message if we want to add items and we can't add, substract only.
It's ok if we choose to create items on ordering, in this case koha can't add
items, just substract
and in this case we have to delete manually the items(s) in the catalog.
But if via the syspref AcqCreateItem we choose to create items when receiving
this limitation is not usefull
The patch just checks if the syspref AcqCreateItem is on 'ordering'
if not the message is not shown and we can add items
---
acqui/neworderempty.pl | 1 +
.../prog/en/modules/acqui/neworderempty.tt | 2 ++
2 files changed, 3 insertions(+)
diff --git a/acqui/neworderempty.pl b/acqui/neworderempty.pl
index b1c9afa..33b061d 100755
--- a/acqui/neworderempty.pl
+++ b/acqui/neworderempty.pl
@@ -414,6 +414,7 @@ $template->param(
barcode_subfield => $barcode_subfield,
import_batch_id => $import_batch_id,
subscriptionid => $subscriptionid,
+ acqcreate => C4::Context->preference("AcqCreateItem") eq "ordering"
? 1 : "",
(uc(C4::Context->preference("marcflavour"))) => 1
);
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt
b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt
index 549bf62..cc554ed 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt
@@ -129,6 +129,7 @@ $(document).ready(function()
//We apply the fonction only for modify option
[% IF ( quantityrec ) %]
+ [% IF ( acqcreate ) %]
$('#quantity').blur(function()
{
// if user decreases the quantity
@@ -148,6 +149,7 @@ $(document).ready(function()
}
});
[% END %]
+ [% END %]
//keep a copy of all budgets before removing the inactives
disabledBudgetsCopy = $('#budget_id').html();
--
1.7.9.5
_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-patches
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/