Bug 23442: (RM follow-up) Fix for missing 'uc' in offset_type call

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Martin Renvoize 2020-01-23 15:45:12 +00:00
parent ddb51a7f26
commit 83a9c309c8
No known key found for this signature in database
GPG Key ID: 422B469130441A0F
1 changed files with 2 additions and 2 deletions

View File

@ -382,7 +382,7 @@ sub reduce {
$reduction->apply(
{
debits => [$self],
offset_type => $params->{reduction_type}
offset_type => uc( $params->{reduction_type} )
}
);
$reduction->status('APPLIED')->store();
@ -394,7 +394,7 @@ sub reduce {
{
credit_id => $reduction->accountlines_id,
debit_id => $self->accountlines_id,
type => $params->{reduction_type},
type => uc( $params->{reduction_type} ),
amount => 0
}
)->store();