diff --git a/app/Filament/Tenant/Resources/WorkOrderResource.php b/app/Filament/Tenant/Resources/WorkOrderResource.php index bc855e6..2ef13a1 100644 --- a/app/Filament/Tenant/Resources/WorkOrderResource.php +++ b/app/Filament/Tenant/Resources/WorkOrderResource.php @@ -148,9 +148,9 @@ class WorkOrderResource extends Resource Schemas\Components\Section::make(__('Plată & total')) ->columns(3)->collapsible()->collapsed()->compact() ->schema([ - Forms\Components\Select::make('pay_status')->options(\App\Support\I18n::opts(WorkOrder::PAY_STATUSES))->default('unpaid')->required(), + Forms\Components\Select::make('pay_status')->label(__('Statut plată'))->options(\App\Support\I18n::opts(WorkOrder::PAY_STATUSES))->default('unpaid')->required(), Forms\Components\TextInput::make('discount_pct') - ->label(__('Discount %')) + ->label(__('Reducere %')) ->numeric() ->default(0) ->live(onBlur: true) @@ -173,7 +173,7 @@ class WorkOrderResource extends Resource ->placeholder(__('Ex: 25')) ->helperText(__('Doar pentru cazuri speciale. Lasă gol → folosește marja mecanicului.')) ->visible(fn () => auth()->user()?->canDo(\App\Auth\Permissions::FINANCE_VIEW_INTERNAL_MARGIN) ?? false), - Forms\Components\TextInput::make('total')->label(__('Total'))->numeric()->disabled()->dehydrated(false), + Forms\Components\TextInput::make('total')->label(__('Total'))->numeric()->readOnly()->dehydrated(false), Forms\Components\Toggle::make('approved')->label(__('Aprobat de client')), Forms\Components\DatePicker::make('closed_at')->label(__('Închis')), ]), diff --git a/lang/en.json b/lang/en.json index 50cce4b..60132ca 100644 --- a/lang/en.json +++ b/lang/en.json @@ -1763,6 +1763,7 @@ "Responsabil": "Assignee", "Rest de achitat:": "Balance due:", "Rest de plată": "Balance due", + "Reducere %": "Discount %", "Restanță": "Debt", "Restaurează": "Restore", "Restituire": "Restituire", @@ -1936,6 +1937,7 @@ "Spune-i sistemului ce reprezintă fiecare coloană din fișier. Vom salva configurația pentru imporțările viitoare.": "Tell the system what each column represents. We save the mapping for future imports.", "Standard": "Standard", "Stare": "Condition", + "Statut plată": "Payment status", "Stare timp": "Time state", "Stare zi": "Day status", "Start": "Start", diff --git a/lang/ru.json b/lang/ru.json index 8138de8..c1862e7 100644 --- a/lang/ru.json +++ b/lang/ru.json @@ -1763,6 +1763,7 @@ "Responsabil": "Ответственный", "Rest de achitat:": "Остаток к оплате:", "Rest de plată": "К оплате", + "Reducere %": "Скидка %", "Restanță": "Задолженность", "Restaurează": "Восстановить", "Restituire": "Restituire", @@ -1936,6 +1937,7 @@ "Spune-i sistemului ce reprezintă fiecare coloană din fișier. Vom salva configurația pentru imporțările viitoare.": "Укажите системе, что означает каждая колонка. Мы сохраним настройку для будущих импортов.", "Standard": "Стандартно", "Stare": "Состояние", + "Statut plată": "Статус оплаты", "Stare timp": "Время", "Stare zi": "Состояние дня", "Start": "Начало",