- my ($number_of_payments, $paid_amount) = number_of_payments($purchase_invoice->transactions);
- my $total = total_amount($purchase_invoice->transactions);
+ my ($number_of_payments, $paid_amount) = number_of_payments($purchase_invoice);
+ my $total = total_amount($purchase_invoice);