http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6832 --- Comment #17 from Jonathan Druart <jonathan.druart@biblibre.com> --- (In reply to comment #15)
(In reply to comment #13)
QA Comments:
It seems the patch does not work as expected. I think your ajax script must to return $budget->{budget_amount} - C4::Budgets::GetBudgetSpent($budget->{id}) (or GetBudgetOrdered ?).
My patch doesn't change the behavior of acqui/check_budget_total.pl at all, so i'm really not sure what you are talking about. Could you explain in more details ?
The ajax script returns $budget->{'budget_amount'}. In the tt/js code an alert appears if the total for the current order is > the amount of the selected budget. Suppose a budget A is created with 100€ and 90€ are already spent then we have a "base-level remaining" equal to 10€. If I create, for example, an order with this budget and a total cost = 40, the script does not display the alert. But the order amount is > to the amount remaining. Then I think the alert should not take into account the total budget allocated but the base-level remaining. -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.