Bug 23354: Add a Point Of Sale 'pay' screen
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 23 Jul 2019 16:23:55 +0000 (17:23 +0100)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 13 Jan 2020 14:03:56 +0000 (14:03 +0000)
commit3e6ef8614a5c7eaf47a903b68518c404cc657091
treec4af14d6eb8147df0a3e4415b573f1ff0cd35493
parent7a7091d48c05020f2179184b7e50fdcd6d4b0ba3
Bug 23354: Add a Point Of Sale 'pay' screen

This patch adds a new Point Of Sale module to Koha's staff client front
page. The module button leads directly to a 'Pay' page giving the staff
user the ability to record anonymous payments for items that would not
normally require a patron to be registered at the library.

Test plan:
1) Enable `UseCashRegisters` via the system preferences.
2) Ensure your user has the 'manage_cash_registers' permission.
3) Add a cash register for your current branch.
4) Add at least one 'MANUAL_INV' authorized value.
5) Navigate to the new 'POS' pay page via the main menu.
6) Add an item to the 'sale' by clicking 'add' from the right side of
   the screen.
7) Note that said item was added to the table of items this sale on the
   left.
8) At this point you should be able to 'click to edit' the quantity or
   price of the item in the table on the left.
9) Enter an amount greater than the price of the item into the 'amount
   collected from patron' box.
10) Click 'Confirm'
11) Varify that the same change to give modal from the paycollect pages
    appears here.
12) Click 'Confirm'
13) Payment will have been recorded (check the database) and you will be
    back at a fresh 'Pay' page ready for the next transaction.
14) Signoff

Sponsored-by: PTFS Europe
Sponsored-by: Cheshire Libraries Shared Services
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Koha/Charges/Sales.pm [new file with mode: 0644]
installer/data/mysql/account_offset_types.sql
installer/data/mysql/atomicupdate/bug_23354.perl [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/en/includes/pos-menu.inc [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt
koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt [new file with mode: 0644]
pos/pay.pl [new file with mode: 0755]