Lines 173-184
if ( $total_paid and $total_paid ne '0.00' ) {
Link Here
|
173 |
my @additional_fields; |
173 |
my @additional_fields; |
174 |
my $accountline_fields = Koha::AdditionalFields->search({ tablename => 'accountlines:credit' }); |
174 |
my $accountline_fields = Koha::AdditionalFields->search({ tablename => 'accountlines:credit' }); |
175 |
while ( my $field = $accountline_fields->next ) { |
175 |
while ( my $field = $accountline_fields->next ) { |
176 |
my $value = $input->param('additional_field_' . $field->id); |
176 |
my @field_values = $input->param( 'additional_field_' . $field->id ); |
177 |
if (defined $value) { |
177 |
foreach my $value (@field_values) { |
178 |
push @additional_fields, { |
178 |
push @additional_fields, { |
179 |
id => $field->id, |
179 |
id => $field->id, |
180 |
value => $value, |
180 |
value => $value, |
181 |
}; |
181 |
} if $value; |
182 |
} |
182 |
} |
183 |
} |
183 |
} |
184 |
if (@additional_fields) { |
184 |
if (@additional_fields) { |
Lines 251-262
if ( $total_paid and $total_paid ne '0.00' ) {
Link Here
|
251 |
my @additional_fields; |
251 |
my @additional_fields; |
252 |
my $accountline_fields = Koha::AdditionalFields->search({ tablename => 'accountlines:credit' }); |
252 |
my $accountline_fields = Koha::AdditionalFields->search({ tablename => 'accountlines:credit' }); |
253 |
while ( my $field = $accountline_fields->next ) { |
253 |
while ( my $field = $accountline_fields->next ) { |
254 |
my $value = $input->param('additional_field_' . $field->id); |
254 |
my @field_values = $input->param( 'additional_field_' . $field->id ); |
255 |
if (defined $value) { |
255 |
foreach my $value (@field_values) { |
256 |
push @additional_fields, { |
256 |
push @additional_fields, { |
257 |
id => $field->id, |
257 |
id => $field->id, |
258 |
value => $value, |
258 |
value => $value, |
259 |
}; |
259 |
} if $value; |
260 |
} |
260 |
} |
261 |
} |
261 |
} |
262 |
if (@additional_fields) { |
262 |
if (@additional_fields) { |
263 |
- |
|
|