changed logic in invoice pending reason page #204

Merged
jothi merged 1 commits from ranjith-dev into master 2026-01-20 05:30:46 +00:00

View File

@@ -151,7 +151,7 @@ class InvoicePendingReason extends Page
$documentNumber = $this->filters['document_number'] ?? null;
$remark = $this->filters['remark'] ?? null;
if (! $plantId || ! $documentNumber || $remark == '') {
if (! $plantId) {
Notification::make()
->title('Plant')
->body("please select plant first..!")
@@ -159,7 +159,7 @@ class InvoicePendingReason extends Page
->send();
return;
}
if (! $documentNumber || $remark == '') {
if (! $documentNumber) {
Notification::make()
->title('Document Number')
->body("please select document number..!")