This commit is contained in:
2024-10-02 09:23:33 +05:00
parent dc99f126ee
commit d50b06b143

View File

@@ -29,32 +29,32 @@ async function fetchCardHistory(passport_serie, passport_id, card_number, card_e
.then(result => { .then(result => {
console.log({result: result}) console.log({result: result})
if (result.errCode != 0) { if (result.errCode != 0) {
Nova.error('Barlap bolmady, tor näsazlygy') Nova.error(result.message)
} }
// cardHistoryDetailContainer.innerHTML = ` cardHistoryDetailContainer.innerHTML = `
// <h4 class="mb-4">Şahamça: <strong>${result.depName}, </strong></h4> <h4 class="mb-4">Şahamça: <strong>${result.depName}, </strong></h4>
// <p> <p>
// <ul> <ul>
// ${Array.from(result.transactions).map(transaction => { ${Array.from(result.transactions).map(transaction => {
// return `<li style="background: #a3c1f5;color: black;" class="p-3 relative rounded-lg"> 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>${transaction['actionName']}</strong> <strong>${transaction['opersum']}</strong> <strong>${transaction['currency']}</strong>
// <strong style="top: 0; right: 0;" class="absolute p-2">${transaction['opername']}</strong> <strong style="top: 0; right: 0;" class="absolute p-2">${transaction['opername']}</strong>
// <p><strong>${ <p><strong>${
// new Date(transaction['trandate']).toLocaleDateString('en-GB', { new Date(transaction['trandate']).toLocaleDateString('en-GB', {
// year: 'numeric', year: 'numeric',
// month: '2-digit', month: '2-digit',
// day: '2-digit', day: '2-digit',
// }).replaceAll('/', '.') }).replaceAll('/', '.')
// }</strong></p> }</strong></p>
// </li>`; </li>`;
// })} })}
// </ul> </ul>
// </p> </p>
// `; `;
}) })
.catch(error => console.log('error', error)); .catch(error => console.log('error', error));
} }