uopdates
This commit is contained in:
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