Lines 70-76
my $writeoff = $input->param('writeoff_individual');
Link Here
|
70 |
my $select_lines = $input->param('selected'); |
70 |
my $select_lines = $input->param('selected'); |
71 |
my $select = $input->param('selected_accts'); |
71 |
my $select = $input->param('selected_accts'); |
72 |
my $payment_note = uri_unescape $input->param('payment_note'); |
72 |
my $payment_note = uri_unescape $input->param('payment_note'); |
73 |
my $accountno; |
|
|
74 |
my $accountlines_id; |
73 |
my $accountlines_id; |
75 |
|
74 |
|
76 |
if ( $individual || $writeoff ) { |
75 |
if ( $individual || $writeoff ) { |
Lines 83-89
if ( $individual || $writeoff ) {
Link Here
|
83 |
$accountlines_id = $input->param('accountlines_id'); |
82 |
$accountlines_id = $input->param('accountlines_id'); |
84 |
my $amount = $input->param('amount'); |
83 |
my $amount = $input->param('amount'); |
85 |
my $amountoutstanding = $input->param('amountoutstanding'); |
84 |
my $amountoutstanding = $input->param('amountoutstanding'); |
86 |
$accountno = $input->param('accountno'); |
|
|
87 |
my $itemnumber = $input->param('itemnumber'); |
85 |
my $itemnumber = $input->param('itemnumber'); |
88 |
my $description = $input->param('description'); |
86 |
my $description = $input->param('description'); |
89 |
my $title = $input->param('title'); |
87 |
my $title = $input->param('title'); |
Lines 93-99
if ( $individual || $writeoff ) {
Link Here
|
93 |
$template->param( |
91 |
$template->param( |
94 |
accounttype => $accounttype, |
92 |
accounttype => $accounttype, |
95 |
accountlines_id => $accountlines_id, |
93 |
accountlines_id => $accountlines_id, |
96 |
accountno => $accountno, |
|
|
97 |
amount => $amount, |
94 |
amount => $amount, |
98 |
amountoutstanding => $amountoutstanding, |
95 |
amountoutstanding => $amountoutstanding, |
99 |
title => $title, |
96 |
title => $title, |
Lines 143-149
if ( $total_paid and $total_paid ne '0.00' ) {
Link Here
|
143 |
{ |
140 |
{ |
144 |
borrowernumber => $borrowernumber, |
141 |
borrowernumber => $borrowernumber, |
145 |
amountoutstanding => { '<>' => 0 }, |
142 |
amountoutstanding => { '<>' => 0 }, |
146 |
accountno => { 'IN' => \@acc }, |
143 |
accountlines_id => { 'IN' => \@acc }, |
147 |
}, |
144 |
}, |
148 |
{ order_by => 'date' } |
145 |
{ order_by => 'date' } |
149 |
); |
146 |
); |
150 |
- |
|
|