show sales & subscriptions

This commit is contained in:
2024-08-22 09:56:14 +02:00
parent 1984024394
commit 1bedaaeecf
4 changed files with 38 additions and 2 deletions

View File

@ -15,6 +15,13 @@ export function showInfo(api) {
.then(response => response.json())
.then(function (data) {
console.log(data);
if (data) {
document.getElementById("order-no").innerHTML = data.id
document.getElementById("customer").innerHTML = data.customer.first_name + " " + data.customer.last_name
document.getElementById("product").innerHTML = data.widget.name
document.getElementById("quantity").innerHTML = data.quantity
document.getElementById("amount").innerHTML = formatCurrency(data.transaction.amount)
}
});
}