Finalise boxes.

This commit is contained in:
James Cole
2025-03-23 15:19:40 +01:00
parent 7f4510467f
commit 750019808c
2 changed files with 40 additions and 40 deletions

View File

@@ -345,7 +345,7 @@ class BasicController extends Controller
'symbol' => $this->nativeCurrency->symbol, 'symbol' => $this->nativeCurrency->symbol,
'code' => $this->nativeCurrency->code, 'code' => $this->nativeCurrency->code,
'decimal_places' => $this->nativeCurrency->decimal_places, 'decimal_places' => $this->nativeCurrency->decimal_places,
'sum' => '0' 'sum' => '0',
]]; ]];
$newUnpaidAmount = [[ $newUnpaidAmount = [[
@@ -354,7 +354,7 @@ class BasicController extends Controller
'symbol' => $this->nativeCurrency->symbol, 'symbol' => $this->nativeCurrency->symbol,
'code' => $this->nativeCurrency->code, 'code' => $this->nativeCurrency->code,
'decimal_places' => $this->nativeCurrency->decimal_places, 'decimal_places' => $this->nativeCurrency->decimal_places,
'sum' => '0' 'sum' => '0',
]]; ]];
foreach ([$paidAmount, $unpaidAmount] as $index => $array) { foreach ([$paidAmount, $unpaidAmount] as $index => $array) {
foreach ($array as $item) { foreach ($array as $item) {

View File

@@ -138,7 +138,7 @@ class AvailableBudgetRepository implements AvailableBudgetRepositoryInterface, U
->where('end_date', $end->format('Y-m-d'))->get() ->where('end_date', $end->format('Y-m-d'))->get()
; ;
Log::debug(sprintf('Found %d available budgets', $availableBudgets->count())); Log::debug(sprintf('Found %d available budgets (already converted)', $availableBudgets->count()));
// use native amount if necessary? // use native amount if necessary?
$convertToNative = Amount::convertToNative($this->user); $convertToNative = Amount::convertToNative($this->user);