@@ -, +, @@ payment. the content of the receipt. --- .../data/mysql/atomicupdate/bug_23354.perl | 68 ++++++++++++++ .../mysql/en/mandatory/sample_notices.sql | 65 +++++++++++++ .../intranet-tmpl/prog/en/modules/pos/pay.tt | 93 ++++++++++++++----- .../prog/en/modules/pos/printreceipt.tt | 26 ++++++ .../prog/en/modules/tools/letter.tt | 8 +- pos/pay.pl | 9 +- pos/printreceipt.pl | 67 +++++++++++++ 7 files changed, 311 insertions(+), 25 deletions(-) create mode 100644 koha-tmpl/intranet-tmpl/prog/en/modules/pos/printreceipt.tt create mode 100755 pos/printreceipt.pl --- a/installer/data/mysql/atomicupdate/bug_23354.perl +++ a/installer/data/mysql/atomicupdate/bug_23354.perl @@ -5,6 +5,74 @@ if( CheckVersion( $DBversion ) ) { INSERT IGNORE INTO account_offset_types ( type ) VALUES ( 'Purchase' ); }); + $dbh->do(q{ +INSERT IGNORE INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`, `title`, `content`, `message_transport_type`, `lang`) VALUES +('pos', 'RECEIPT', '', 'Point of sale receipt', 0, 'Receipt', '
+ [% LibraryName | html %]+ |
+ |
---|---|
+ [% Branches.GetName( payment.branchcode ) | html %]+ |
+ |
+ [% payment.date | $KohaDates %]+ | |
Transaction ID: | +[% payment.accountlines_id %] | +
Operator ID: | +[% payment.manager_id %] | +
Payment type: | +[% payment.payment_type %] | +
+ Fee receipt+ |
+ |
Description of charges | +Amount | +
[% offset.debit.accounttype %] | +[% offset.amount * -1 | $Price %] | +
Total: | +[% payment.amount * -1| $Price %] | +
Tendered: | +[% collected | $Price %] | +
Change: | +[% change | $Price %] | +
+ [% LibraryName | html %]+ |
+ |
---|---|
+ [% Branches.GetName( payment.branchcode ) | html %]+ |
+ |
+ [% payment.date | $KohaDates %]+ | |
Transaction ID: | +[% payment.accountlines_id %] | +
Operator ID: | +[% payment.manager_id %] | +
Payment type: | +[% payment.payment_type %] | +
+ Fee receipt+ |
+ |
Description of charges | +Amount | +
[% offset.debit.accounttype %] | +[% offset.amount * -1 | $Price %] | +
Total: | +[% payment.amount * -1| $Price %] | +
Tendered: | +[% collected | $Price %] | +
Change: | +[% change | $Price %] | +