partial update close modal on all page and disable create transaction with no stock
This commit is contained in:
@@ -100,8 +100,13 @@ class StockAuditController extends Controller
|
||||
$mutationNumber = $row->source ? $row->source->mutation_number : '-';
|
||||
return "Mutasi: {$mutationNumber}";
|
||||
} elseif ($row->source_type === 'App\\Models\\Opname') {
|
||||
return "Opname";
|
||||
} else {
|
||||
$opname_id = $row->source ? $row->source->id : '-';
|
||||
return "Opname: #{$opname_id}";
|
||||
} elseif ($row->source_type === 'App\\Models\\Transaction')
|
||||
{
|
||||
$transaction_id = $row->source ? $row->source->id : '-';
|
||||
return "Transaksi: #{$transaction_id}";
|
||||
}else {
|
||||
return $row->source_type ?? '-';
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user