Skip to content

Commit b69bdcf

Browse files
authored
Hot fix: Load updated rates afer payInstallmentsForDevice (#1391)
* Load updated rates afer payInstallmentsForDevice * minor refactor
1 parent a35f95c commit b69bdcf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/backend/app/Utils/ApplianceInstallmentPayer.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ public function payInstallmentsForDevice(TransactionDataContainer $container): v
6363
$container->appliancePerson,
6464
$container->transaction
6565
));
66+
// reload potentially updated rates
67+
$container->appliancePerson->load('rates');
6668
}
6769

6870
// This function processes the payment of all installments (excluding device-recorded ones) that are due, right before generating the meter token.

0 commit comments

Comments
 (0)