fix laporan barang kes controller
This commit is contained in:
@@ -59,7 +59,7 @@ class BarangkesController extends Controller
|
||||
$itemArray['gadaian_sudah_tebus'] = !is_null($item['tebus']);
|
||||
|
||||
// Add nokp customer from gadai relationship
|
||||
$itemArray['nokp'] = $item['gadai']['nokp'];
|
||||
$itemArray['nokp'] = $item['gadai']['nokp'] ?? null;
|
||||
|
||||
// Remove the tebus relationship data to keep response clean
|
||||
unset($itemArray['tebus']);
|
||||
|
||||
Reference in New Issue
Block a user