From 723dd34c543a53a633063de653c1e81540f4e469 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Fri, 6 Mar 2020 11:38:03 +0000 Subject: [PATCH] Bug 24820: Use 'date' instead of 'timestamp' for cashup Prior to this patch we were comparing cash register action timestamp to accountlines date fields to fetch the list of outstanding accountlines. accountlines.date is a transient field used as 'updated_on' and so this was a logical mistake. We should be using the 'date' field which is fixed 'created_on' time. --- Koha/Cash/Register.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/Cash/Register.pm b/Koha/Cash/Register.pm index ac14db6d6c..1a907063b6 100644 --- a/Koha/Cash/Register.pm +++ b/Koha/Cash/Register.pm @@ -126,7 +126,7 @@ sub outstanding_accountlines { my $local_conditions = $since->count - ? { 'timestamp' => { '>=' => $since->get_column('timestamp')->as_query } } + ? { 'date' => { '>=' => $since->get_column('timestamp')->as_query } } : {}; my $merged_conditions = $conditions -- 2.20.1