my $skonto_hash = delete $::form->{invoice_skontos} || {}; # array containing the payment type, could be empty
# a bank_transaction may be assigned to several invoices, i.e. a customer
# might pay several open invoices with one transaction
while ( my ($bt_id, $invoice_ids) = each(%$invoice_hash) ) {
my $skonto_hash = delete $::form->{invoice_skontos} || {}; # array containing the payment type, could be empty
# a bank_transaction may be assigned to several invoices, i.e. a customer
# might pay several open invoices with one transaction
while ( my ($bt_id, $invoice_ids) = each(%$invoice_hash) ) {