show sales & subscriptions
This commit is contained in:
		@ -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)
 | 
			
		||||
            }
 | 
			
		||||
        });
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user