[Koha-bugs] [Bug 6832] New: Validation of total > budget in neworderempty

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Sep 1 21:55:36 CEST 2011


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6832

             Bug #: 6832
           Summary: Validation of total > budget in neworderempty
    Classification: Unclassified
 Change sponsored?: ---
           Product: Koha
           Version: rel_3_2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Acquisitions
        AssignedTo: henridamien at koha-fr.org
        ReportedBy: pelletiermaxime at gmail.com
         QAContact: koha-bugs at lists.koha-community.org


Created attachment 5264
  --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=5264
[PATCH] Fix multiple bugs and refactor the code to fix the alert of the total
exceeding the budget in neworderempty

The javascript function totalExceedsBudget never returns anything.
Refactored it to use jQuery for the ajax stuff and to make it work.
Only 1 line changed in a tmpl, so should be easy to adapt for 3.4.

Steps to reproduce :
Create a new order in a basket. 
Set a total higher than the total of the selected budget. 
You will see an ajax request, but no error.

This patch fixes the return, make it work for ie6 by using jQuery and prints
correctly the total of the budget in the error.

-- 
Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.


More information about the Koha-bugs mailing list