Bug 15408: Remove fund's timestamp when cloning a budget
authorBaptiste Wojtkowski <baptiste.wojtkowski@biblibre.com>
Fri, 3 Feb 2017 15:22:36 +0000 (15:22 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 24 Aug 2018 12:07:25 +0000 (13:07 +0100)
commite2d0d9427952140237bbcc31e744c329a425eb5f
tree028a8d7a28266ee1ee0aada78c3a8915f349c884
parentbacb859d1c637b7d9d32b2205c97cc00557e9888
Bug 15408: Remove fund's timestamp when cloning a budget

To duplicate the budget, the function CloneBudgetHierarchy create a new budget
from the old without the parameter timestamp, so that the database generates a
new one.

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Added unit tests to patch

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Modified to run properly the QA tests

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit f4615a2f817dc08e8d89c667646bff8dcc0b1c28)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
C4/Budgets.pm
t/db_dependent/Budgets.t