add raw rk

This commit is contained in:
KhatamNugraha
2024-04-05 16:37:26 +07:00
parent ece4805fc5
commit 6a961c8f75
3 changed files with 4 additions and 6 deletions

View File

@ -211,7 +211,8 @@ class Account extends Model
public function getAccountRK($cusNo,$date){ public function getAccountRK($cusNo,$date){
$data = []; $data = [];
$data = DB::connection("db2")->table("STG_DB.ACCOUNT AS AC") $data = DB::connection("db2")->table("STG_DB.ACCOUNT AS AC")
->select('AC.ACCOUNT_NUMBER','AC.CUSTOMER_NO','CT.SHORT_NAME','AC.WORKING_BALANCE','AC.CURRENCY','AC.SHORT_TITLE','AC.OPENING_DATE','AC.BATCH_DATE','AC.CATEGORY') ->select('AC.ACCOUNT_NUMBER','AC.CUSTOMER_NO','CT.SHORT_NAME','AC.WORKING_BALANCE','AC.CURRENCY','AC.SHORT_TITLE','AC.OPENING_DATE','AC.BATCH_DATE','AC.CATEGORY','LT.EXPIRY_DATE')
->join('STG_DB.LIMIT AS LT', 'AC.ACCOUNT_NUMBER', '=', 'LT.ACCOUNT')
->join('STG_DB.CATEGORY AS CT', 'AC.CATEGORY', '=', 'CT.ID') ->join('STG_DB.CATEGORY AS CT', 'AC.CATEGORY', '=', 'CT.ID')
->where('AC.CUSTOMER_NO',$cusNo) ->where('AC.CUSTOMER_NO',$cusNo)
->where('AC.BATCH_DATE',$date) ->where('AC.BATCH_DATE',$date)

View File

@ -412,7 +412,7 @@
$DataRK[$rk]['CURRENCY'] = $valRk->CURRENCY; $DataRK[$rk]['CURRENCY'] = $valRk->CURRENCY;
$DataRK[$rk]['PRODUCT'] = $valRk->SHORT_TITLE; $DataRK[$rk]['PRODUCT'] = $valRk->SHORT_TITLE;
$DataRK[$rk]['WORKING_BALANCE'] = $valRk->WORKING_BALANCE != null ? number_format($valRk->WORKING_BALANCE, 2, ',', '.') : 'NIHIL'; $DataRK[$rk]['WORKING_BALANCE'] = $valRk->WORKING_BALANCE != null ? number_format($valRk->WORKING_BALANCE, 2, ',', '.') : 'NIHIL';
$DataRK[$rk]['MATURITY_DATE'] = '' ; $DataRK[$rk]['MATURITY_DATE'] = date('d-m-Y', strtotime($valRk->EXPIRY_DATE)) ?? ''; ;
$DataRK[$rk]['ARRANGEMENT_ID'] = ''; $DataRK[$rk]['ARRANGEMENT_ID'] = '';
$DataRK[$rk]['FIXED_RATE'] = ''; $DataRK[$rk]['FIXED_RATE'] = '';
$DataRK[$rk]['TERM'] = ''; $DataRK[$rk]['TERM'] = '';

View File

@ -97,9 +97,6 @@
</style> </style>
</head> </head>
<body> <body>
<div class="header">
testtt
</div>
<ul class="no-bullets"> <ul class="no-bullets">
<li>Nomor &nbsp; : {{$data['infoSuratOld']['no_surat']}}</li> <li>Nomor &nbsp; : {{$data['infoSuratOld']['no_surat']}}</li>
<li>Tanggal : {{ $data['today'] }}</li> <li>Tanggal : {{ $data['today'] }}</li>
@ -220,7 +217,7 @@
<td class="text-right space1">{{$dtRK['WORKING_BALANCE']}}</td> <td class="text-right space1">{{$dtRK['WORKING_BALANCE']}}</td>
<td class="text-center space1"></td> <td class="text-center space1"></td>
<td class="text-center space1"></td> <td class="text-center space1"></td>
<td class="text-center space1"></td> <td class="text-center space1">{{$dtRK['MATURITY_DATE']}}</td>
<td class="text-center space1">{{ $dtRK['ACCOUNT_NUMBER'] }}</td> <td class="text-center space1">{{ $dtRK['ACCOUNT_NUMBER'] }}</td>
</tr> </tr>
@endforeach @endforeach