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.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Martin Renvoize 2020-03-06 11:38:03 +00:00
parent 0a1fdaf9f2
commit 909e172c17
No known key found for this signature in database
GPG Key ID: 422B469130441A0F
1 changed files with 1 additions and 1 deletions

View File

@ -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