[Koha-bugs] [Bug 24820] The cashup workflow should use the static 'date' field rather than the transient 'timestamp' field in accountlines

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Apr 6 19:18:32 CEST 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24820

David Nind <david at davidnind.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #102080|0                           |1
        is obsolete|                            |

--- Comment #9 from David Nind <david at davidnind.com> ---
Created attachment 102465
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=102465&action=edit
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.

To test, make sure the cash register and record cashup features works 
as expected.

Test plan:
1) Enable EnablePointOfSale and UseCashRegisters system preferences.
2) Add a cash register (Koha Administration > Accounting > Cash 
   registers > New cash register).
3) From the Point of sale screen add two new items for purchase 
   (Point of sale > Administration > Configure items for purchase > 
   add new debit types).
4) Add some transactions.
5) Record a cashup (Register details > Record cashup).
6) Repeat steps 4-5 at least once.
7) Everyting should work as expected.
8) Sign off!

Signed-off-by: David Nind <david at davidnind.com>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list