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})
|
console.log({result: result})
|
||||||
if (result.errCode != 0) {
|
if (result.errCode != 0) {
|
||||||
Nova.error(result.message)
|
Nova.error(result.message)
|
||||||
|
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// cardHistoryDetailContainer.innerHTML = `
|
let recipients = Array.from(result.recipient);
|
||||||
// <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>
|
|
||||||
|
|
||||||
// <p>
|
if (recipients.length < 1) {
|
||||||
// <ul>
|
Nova.error('Karz taryhy ýok')
|
||||||
// ${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>
|
|
||||||
|
|
||||||
// <strong style="top: 0; right: 0;" class="absolute p-2">${transaction['opername']}</strong>
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// <p><strong>${
|
cardHistoryDetailContainer.innerHTML = `
|
||||||
// new Date(transaction['trandate']).toLocaleDateString('en-GB', {
|
<h4>Müşderi: <strong>${recipients[0].MUSDERI_DOLY_ADY}</strong></h4>
|
||||||
// year: 'numeric',
|
|
||||||
// month: '2-digit',
|
<p>
|
||||||
// day: '2-digit',
|
<ul>
|
||||||
// }).replaceAll('/', '.')
|
${recipients.map(recipient => {
|
||||||
// }</strong></p>
|
return `<li style="background: #a3c1f5;color: black;" class="p-3 relative rounded-lg">
|
||||||
// </li>`;
|
Bellik: <strong>${recipient.BELLIK}</strong> <br />
|
||||||
// })}
|
Möçberi: <strong>${recipient.MOCBERI}</strong> <br />
|
||||||
// </ul>
|
Karz berilen senesi: <strong>${recipient.KARZ_BERLEN_SENESI}</strong> <br />
|
||||||
// </p>
|
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))
|
.catch(error => console.log('error', error))
|
||||||
|
|||||||
Reference in New Issue
Block a user