query => $input,
type => "intranet",
authnotrequired => 0,
- flagsrequired => {borrowers => 1, updatecharges => 1},
+ flagsrequired => {borrowers => 1, updatecharges => 'remaining_permissions'},
debug => 1,
});
$accountline->{date} = format_date($accountline->{date});
$accountline->{amount} = sprintf '%.2f', $accountline->{amount};
$accountline->{amountoutstanding} = sprintf '%.2f', $accountline->{amountoutstanding};
- if ($accountline->{accounttype} eq 'Pay') {
+ if ($accountline->{accounttype} =~ /^Pay/) {
$accountline->{payment} = 1;
$reverse_col = 1;
}