uopdates
This commit is contained in:
@@ -64,104 +64,21 @@ class FetchLoanRemainingController extends Controller
|
||||
{
|
||||
return response()->json([
|
||||
'idSeria' => 'I-AS',
|
||||
'idNo' => '298119',
|
||||
'cardMaskNumber' => '993403******6836',
|
||||
'expDate' => '01/34',
|
||||
'clientType' => 'recipient',
|
||||
'clientName' => 'Penjiýew Mahtymguly Meretgulowiç',
|
||||
'depName' => 'Türkmenistanyň "Türkmenbaşy" paýdarlar täjirçilik banky',
|
||||
'cardPan' => '993403******6836',
|
||||
'cardAccountNumber' => '1304602071667',
|
||||
'idNo' => '379514',
|
||||
'accountCode' => '14208934130700002997232',
|
||||
'clientName' => 'Joraýew Mämmetjan Galandarowiç',
|
||||
'docNum' => '530/23',
|
||||
'docSum' => 20000,
|
||||
'docMonthSum' => 556,
|
||||
'docPayed' => 10860,
|
||||
'balans' => 9140,
|
||||
'percentBalance' => 0,
|
||||
'branchName' => '"TÜRKMENBAŞY" TPTB-nyň Çandybil şahamçasy',
|
||||
'branchMfo' => '390101307',
|
||||
'errCode' => 0,
|
||||
'message' => 'YETIRILDI',
|
||||
'messageRu' => 'SUCCESS',
|
||||
'messageEn' => 'SUCCESS',
|
||||
'transactions' => [
|
||||
[
|
||||
'trandate' => '2024-05-15',
|
||||
'currency' => 'TMT',
|
||||
'opersum' => 2220,
|
||||
'actionName' => 'Зачисление заработной платы организаций',
|
||||
'opername' => 'Дополнительный взнос',
|
||||
],
|
||||
[
|
||||
'trandate' => '2024-05-31',
|
||||
'currency' => 'TMT',
|
||||
'opersum' => 2689,
|
||||
'actionName' => 'Зачисление заработной платы организаций',
|
||||
'opername' => 'Дополнительный взнос',
|
||||
],
|
||||
[
|
||||
'trandate' => '2024-06-14',
|
||||
'currency' => 'TMT',
|
||||
'opersum' => 2220,
|
||||
'actionName' => 'Зачисление заработной платы организаций',
|
||||
'opername' => 'Дополнительный взнос',
|
||||
],
|
||||
[
|
||||
'trandate' => '2024-06-28',
|
||||
'currency' => 'TMT',
|
||||
'opersum' => 2689,
|
||||
'actionName' => 'Зачисление заработной платы организаций',
|
||||
'opername' => 'Дополнительный взнос',
|
||||
],
|
||||
[
|
||||
'trandate' => '2024-07-15',
|
||||
'currency' => 'TMT',
|
||||
'opersum' => 2220,
|
||||
'actionName' => 'Зачисление заработной платы организаций',
|
||||
'opername' => 'Дополнительный взнос',
|
||||
],
|
||||
[
|
||||
'trandate' => '2024-07-31',
|
||||
'currency' => 'TMT',
|
||||
'opersum' => 2689,
|
||||
'actionName' => 'Зачисление заработной платы организаций',
|
||||
'opername' => 'Дополнительный взнос',
|
||||
],
|
||||
[
|
||||
'trandate' => '2024-08-15',
|
||||
'currency' => 'TMT',
|
||||
'opersum' => 2220,
|
||||
'actionName' => 'Зачисление заработной платы организаций',
|
||||
'opername' => 'Дополнительный взнос',
|
||||
],
|
||||
[
|
||||
'trandate' => '2024-08-30',
|
||||
'currency' => 'TMT',
|
||||
'opersum' => 2689,
|
||||
'actionName' => 'Зачисление заработной платы организаций',
|
||||
'opername' => 'Дополнительный взнос',
|
||||
],
|
||||
[
|
||||
'trandate' => '2024-09-16',
|
||||
'currency' => 'TMT',
|
||||
'opersum' => 2220,
|
||||
'actionName' => 'Зачисление заработной платы организаций',
|
||||
'opername' => 'Дополнительный взнос',
|
||||
],
|
||||
[
|
||||
'trandate' => '2024-09-30',
|
||||
'currency' => 'TMT',
|
||||
'opersum' => 2689,
|
||||
'actionName' => 'Зачисление заработной платы организаций',
|
||||
'opername' => 'Дополнительный взнос',
|
||||
],
|
||||
[
|
||||
'trandate' => '2024-10-15',
|
||||
'currency' => 'TMT',
|
||||
'opersum' => 2220,
|
||||
'actionName' => 'Зачисление заработной платы организаций',
|
||||
'opername' => 'Дополнительный взнос',
|
||||
],
|
||||
[
|
||||
'trandate' => '2024-10-31',
|
||||
'currency' => 'TMT',
|
||||
'opersum' => 2689,
|
||||
'actionName' => 'Зачисление заработной платы организаций',
|
||||
'opername' => 'Дополнительный взнос',
|
||||
],
|
||||
],
|
||||
'message' => 'ÜSTÜNLIKLI.',
|
||||
'messageRu' => 'УСПЕШНО.',
|
||||
'messageEn' => 'SUCCESS.',
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
24
resources/js/vendor/nova/js/additional.js
vendored
24
resources/js/vendor/nova/js/additional.js
vendored
@@ -21,6 +21,30 @@ async function fetchLoanRemaining(containerID, passport_serie, passport_id, acco
|
||||
Nova.request().post('/api/fetch-loan-remaining', formData).then(response => {
|
||||
let result = response.data;
|
||||
console.log(result)
|
||||
|
||||
if (result.errCode != 0) {
|
||||
Nova.error(result.message)
|
||||
|
||||
cardHistoryDetailContainer.innerHTML = `
|
||||
<h3><strong>${result.message}</strong></h3>
|
||||
`;
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
cardHistoryDetailContainer.innerHTML = `
|
||||
<h4>Şahamça: <strong>${result.branchName}</strong></h4>
|
||||
<h4>Müşderi: <strong>${result.clientName}</strong></h4>
|
||||
<h4 class="mb-4">Şertnama belgisi: <strong>${result.docNum}</strong></h4>
|
||||
|
||||
<h4>Jemi karzyň möçberi: <strong>${result.docSum}</strong></h4>
|
||||
|
||||
<h4>Karz boýunça jemi galyndy: <strong>${result.balans}</strong></h4>
|
||||
<h4>Hasaplama göterim (şu aý üçin): ${result.presentBalance}</h4>
|
||||
<h4>Hasaplanan esasy bergi (şu aý üçin): ${result.docMonthSum}</h4>
|
||||
|
||||
<h4>Jemi tölenen möçberi: <strong>${result.docPayed}</strong></h4>
|
||||
`;
|
||||
})
|
||||
.catch(error => console.log('error', error))
|
||||
.finally(() => {
|
||||
|
||||
Reference in New Issue
Block a user