This commit is contained in:
nurmuhammet committed 2024-11-25 17:30:51 +05:00
1 parent 0d875acc4e
commit 2404feebe6
2 files changed
+2 -3

No files matched your search

+1 -2
View File
@@ -204,10 +204,9 @@ function localeAppUrl(): string
function convertToOriginalFormat($apiPrice)
{
// Convert to float and divide by 100
$originalPrice = intval($apiPrice) / 100;
return number_format($originalPrice, 2, '.', ''); // Format with 2 decimal places
return number_format($originalPrice, 2, '.', '');
}
function lastDayOfMonth($month, $year)
@@ -108,7 +108,7 @@ public function fields(NovaRequest $request): array
Text::make('Amaly geçiren raýatyň kart belgisi (mask)', 'payer_card'),
Text::make('Töleg ýyly', fn ($model) => $model->format('Y')),
Text::make('Töleg ýyly', fn ($model) => $model->created_at->format('Y')),
Text::make('Töleg aýy', fn ($model) => $model->created_at->translatedFormat('F')),
Text::make('Amalyň geçirilen wagty', fn ($model) => $model->created_at->format('H:i, d.m.Y')),