update karz taryhy
This commit is contained in:
46
resources/js/vendor/nova/js/additional.js
vendored
46
resources/js/vendor/nova/js/additional.js
vendored
@@ -31,33 +31,35 @@ async function fetchLoanHistory(containerID, passport_serie, passport_id) {
|
||||
console.log({result: result})
|
||||
if (result.errCode != 0) {
|
||||
Nova.error(result.message)
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
// cardHistoryDetailContainer.innerHTML = `
|
||||
// <h4>Müşderi: <strong>${result.clientName}</strong></h4>
|
||||
// <h4>Şahamça: <strong>${result.depName}</strong></h4>
|
||||
// <h4 class="mb-4">Şertnama belgisi: <strong>${result.cardAccountNumber}</strong></h4>
|
||||
let recipients = Array.from(result.recipient);
|
||||
|
||||
// <p>
|
||||
// <ul>
|
||||
// ${Array.from(result.transactions).map(transaction => {
|
||||
// return `<li style="background: #a3c1f5;color: black;" class="p-3 relative rounded-lg">
|
||||
// <strong>${transaction['actionName']}</strong> <strong>${transaction['opersum']}</strong> <strong>${transaction['currency']}</strong>
|
||||
if (recipients.length < 1) {
|
||||
Nova.error('Karz taryhy ýok')
|
||||
|
||||
// <strong style="top: 0; right: 0;" class="absolute p-2">${transaction['opername']}</strong>
|
||||
return;
|
||||
}
|
||||
|
||||
// <p><strong>${
|
||||
// new Date(transaction['trandate']).toLocaleDateString('en-GB', {
|
||||
// year: 'numeric',
|
||||
// month: '2-digit',
|
||||
// day: '2-digit',
|
||||
// }).replaceAll('/', '.')
|
||||
// }</strong></p>
|
||||
// </li>`;
|
||||
// })}
|
||||
// </ul>
|
||||
// </p>
|
||||
// `;
|
||||
cardHistoryDetailContainer.innerHTML = `
|
||||
<h4>Müşderi: <strong>${recipients[0].MUSDERI_DOLY_ADY}</strong></h4>
|
||||
|
||||
<p>
|
||||
<ul>
|
||||
${recipients.map(recipient => {
|
||||
return `<li style="background: #a3c1f5;color: black;" class="p-3 relative rounded-lg">
|
||||
Bellik: <strong>${recipient.BELLIK}</strong> <br />
|
||||
Möçberi: <strong>${recipient.MOCBERI}</strong> <br />
|
||||
Karz berilen senesi: <strong>${recipient.KARZ_BERLEN_SENESI}</strong> <br />
|
||||
Karz sonky senesi: <strong>${recipient.KARZ_SONKY_SENESI}</strong> <br />
|
||||
Karz göterimi: <strong>${recipient.KARZ_GOTERIMI}%</strong> <br />
|
||||
</li>`;
|
||||
})}
|
||||
</ul>
|
||||
</p>
|
||||
`;
|
||||
|
||||
})
|
||||
.catch(error => console.log('error', error))
|
||||
|
||||
Reference in New Issue
Block a user