added element id usage cost for download

This commit is contained in:
Angger 2022-08-02 16:35:35 +07:00
parent 27627853d1
commit 9e642d5c11

View file

@ -18,6 +18,7 @@
<br/> <br/>
<br/> <br/>
<div id="usage_cost">
<div> <div>
<dl class="dl-horizontal"> <dl class="dl-horizontal">
<dt>Invoice Month</dt> <dt>Invoice Month</dt>
@ -54,6 +55,7 @@
<div id="image-cost"> <div id="image-cost">
{{ image_cost_table.render }} {{ image_cost_table.render }}
</div> </div>
</div>
{% else %} {% else %}
<h1>Billing not enabled or you don't have any usage yet</h1> <br/> <h1>Billing not enabled or you don't have any usage yet</h1> <br/>
{% endif %} {% endif %}
@ -71,6 +73,7 @@
} }
function downloadPdf() { function downloadPdf() {
console.log("CALLING DOWNLOAD")
let opt = { let opt = {
filename: 'usage_cost.pdf', filename: 'usage_cost.pdf',
margin: [16, 16], margin: [16, 16],