This commit is contained in:
2024-11-25 17:30:51 +05:00
parent 0d875acc4e
commit 2404feebe6
2 changed files with 2 additions and 3 deletions

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)

View File

@@ -108,7 +108,7 @@ class NovaVisaMasterPaymentOrderItem extends Resource
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')),