feature: include cara terima in reports #14
@@ -9,6 +9,10 @@ class Gadai extends Model
|
||||
protected $table = 'gadai';
|
||||
public $timestamps = false;
|
||||
|
||||
protected $attributes = [
|
||||
'cara_terima' => 'TUNAI',
|
||||
];
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
|
||||
@@ -537,7 +537,7 @@ class GadaiController extends Controller
|
||||
|
||||
public function getLaporanGadai($kodcaw,$tarikh){
|
||||
$cawangan = Cawangan::on('mysql7')->where('kodcaw','=',$kodcaw)->first();
|
||||
$gadai_data = Gadai::on($cawangan['mysql'])->select('t_gadai','norujukan','nokp','semakbarcode','masa','berat','nilaimarhun','pinjaman','upah12','percentpinj','teller','nokp','ujrah','onepercent')
|
||||
$gadai_data = Gadai::on($cawangan['mysql'])->select('cara_terima','t_gadai','norujukan','nokp','semakbarcode','masa','berat','nilaimarhun','pinjaman','upah12','percentpinj','teller','nokp','ujrah','onepercent')
|
||||
->where('t_gadai','=',$tarikh)
|
||||
->orderBy('teller')
|
||||
->orderBy('sirig')
|
||||
@@ -551,6 +551,7 @@ class GadaiController extends Controller
|
||||
array_push($gadai,[
|
||||
"t_gadai"=> $gadaiData['t_gadai'],
|
||||
"norujukan"=> $gadaiData['norujukan'],
|
||||
"cara_terima"=> $gadaiData['cara_terima'],
|
||||
"nama"=> $customer_info['nama'],
|
||||
"nokp"=> $gadaiData['nokp'],
|
||||
"semakbarcode"=> $gadaiData['semakbarcode'],
|
||||
@@ -626,6 +627,7 @@ class GadaiController extends Controller
|
||||
"alamat1" => optional($customer)->alamat1,
|
||||
"t_gadai" => $g->t_gadai,
|
||||
"norujukan" => $g->norujukan,
|
||||
"cara_terima" => $g->cara_terima,
|
||||
"norujukan"=> $g->norujukan,
|
||||
|
||||
"nokp"=> $g->nokp,
|
||||
|
||||
Reference in New Issue
Block a user