my $usth = $dbh->prepare(
"INSERT INTO accountlines
(borrowernumber, accountno,date,amount,description,accounttype,amountoutstanding,manager_id)
- VALUES (?,?,now(),?,'Payment,thanks','Pay',?,?)"
+ VALUES (?,?,now(),?,'',?,?,?)"
);
- my $payment_description = "Payment, thanks";
- $payment_description .= " (via SIP2)" if defined $sip_paytype;
my $paytype = "Pay";
- $paytype .= "-$sip_paytype" if defined $sip_paytype;
- $usth->execute( $borrowernumber, $nextaccntno, 0 - $data, $payment_description, $paytype, 0 - $amountleft, $manager_id );
+ $paytype .= $sip_paytype if defined $sip_paytype;
+ $usth->execute( $borrowernumber, $nextaccntno, 0 - $data, $paytype, 0 - $amountleft, $manager_id );
$usth->finish;
UpdateStats( $branch, 'payment', $data, '', '', '', $borrowernumber, $nextaccntno );
sub handle_fee_paid {
my ($self, $server) = @_;
my $ils = $server->{ils};
- my ($trans_date, $fee_type, $pay_type, $currency) = $self->{fixed_fields};
+ my ($trans_date, $fee_type, $pay_type, $currency) = @{ $self->{fixed_fields} };
my $fields = $self->{fields};
my ($fee_amt, $inst_id, $patron_id, $terminal_pwd, $patron_pwd);
my ($fee_id, $trans_id);
<td>
[% SWITCH account.accounttype %]
[% CASE 'Pay' %]Payment,thanks
+ [% CASE 'Pay00' %]Payment,thanks (cash via SIP2)
+ [% CASE 'Pay01' %]Payment,thanks (VISA via SIP2)
+ [% CASE 'Pay02' %]Payment,thanks (credit card via SIP2)
[% CASE 'N' %]New Card
[% CASE 'F' %]Fine
[% CASE 'A' %]Account management fee
<td>
[% SWITCH line.accounttype %]
[% CASE 'Pay' %]Payment,thanks
+ [% CASE 'Pay00' %]Payment,thanks (cash via SIP2)
+ [% CASE 'Pay01' %]Payment,thanks (VISA via SIP2)
+ [% CASE 'Pay02' %]Payment,thanks (credit card via SIP2)
[% CASE 'N' %]New Card
[% CASE 'F' %]Fine
[% CASE 'A' %]Account management fee
<td>
[% SWITCH ACCOUNT_LINE.accounttype %]
[% CASE 'Pay' %]Payment,thanks
+ [% CASE 'Pay00' %]Payment,thanks (cash via SIP2)
+ [% CASE 'Pay01' %]Payment,thanks (VISA via SIP2)
+ [% CASE 'Pay02' %]Payment,thanks (credit card via SIP2)
[% CASE 'N' %]New Card
[% CASE 'F' %]Fine
[% CASE 'A' %]Account management fee