Added save button in invoice pending reason page
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 10s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 9s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 16s
Laravel Pint / pint (pull_request) Successful in 2m28s
Laravel Larastan / larastan (pull_request) Failing after 4m37s
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 10s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 9s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 16s
Laravel Pint / pint (pull_request) Successful in 2m28s
Laravel Larastan / larastan (pull_request) Failing after 4m37s
This commit is contained in:
@@ -146,12 +146,13 @@ class InvoicePendingReason extends Page
|
|||||||
->columns(3);
|
->columns(3);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function addRemark($value){
|
public function addRemark(){
|
||||||
$plantId = $this->filters['plant_id'] ?? null;
|
$plantId = $this->filters['plant_id'] ?? null;
|
||||||
$documentNumber = $this->filters['document_number'] ?? null;
|
$documentNumber = $this->filters['document_number'] ?? null;
|
||||||
$remark = $value;
|
$remark = $this->filters['remark'] ?? null;
|
||||||
|
|
||||||
if (! $plantId || ! $documentNumber || $remark == '') {
|
if (! $plantId || ! $documentNumber || $remark == '') {
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3,4 +3,13 @@
|
|||||||
{{-- {{ $this->filtersForm($this->form) }} --}}
|
{{-- {{ $this->filtersForm($this->form) }} --}}
|
||||||
{{ $this->filtersForm($this->form) }}
|
{{ $this->filtersForm($this->form) }}
|
||||||
</div>
|
</div>
|
||||||
|
<div class="flex-row gap-2 mt-4">
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
wire:click="addRemark"
|
||||||
|
class="px-3 py-1 border border-primary-500 text-primary-600 rounded hover:bg-primary-50 hover:border-primary-700 transition text-sm"
|
||||||
|
>
|
||||||
|
Save
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
</x-filament-panels::page>
|
</x-filament-panels::page>
|
||||||
|
|||||||
Reference in New Issue
Block a user