1
0
forked from poc/pds

changed logic in invoice pending reason page

This commit is contained in:
dhanabalan
2026-01-20 11:00:33 +05:30
parent 9c23fb3aca
commit d41371a32d

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..!")