From e08980974e9952cb6d80a48fcedb032dada63d7c Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 1 Nov 2018 09:51:23 -0300 Subject: [PATCH] Bug 21467: Prevent tests to fail The following error is raised if TestBuilder generates too big numbers: Out of range value for column 'tax_value_on_ordering' UPDATE aqorders SET tax_value_on_ordering = quantity * ecost_tax_excluded * tax_rate_on_ordering, tax_value_on_receiving = quantity * unitprice_tax_excluded * tax_rate_on_receiving WHERE ordernumber = ? "] at /home/vagrant/kohaclone/C4/Acquisition.pm line 1484. Signed-off-by: Katrin Fischer Signed-off-by: Nick Clemens --- t/db_dependent/Acquisition.t | 2 ++ 1 file changed, 2 insertions(+) diff --git a/t/db_dependent/Acquisition.t b/t/db_dependent/Acquisition.t index 807a3ecebe..78322ef79f 100755 --- a/t/db_dependent/Acquisition.t +++ b/t/db_dependent/Acquisition.t @@ -728,6 +728,8 @@ subtest 'ModReceiveOrder and subscription' => sub { order_internalnote => $first_note, quantity => 5, quantityreceived => 0, + ecost_tax_excluded => 42, + unitprice_tax_excluded => 42, } } ); -- 2.39.5