Taxes, tips and bugfixes #10
2 changed files with 10 additions and 4 deletions
|
@ -52,19 +52,19 @@
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr *ngIf="order.taxAmount > 0">
|
<tr *ngIf="order.taxAmount > 0">
|
||||||
<td class="newOrdertbdetail" style="text-align: right;">Sales Tax</td>
|
<td class="newOrdertbdetail" style="text-align: right;">{{ vE.invoiceTax }}</td>
|
||||||
<td class="newOrdertbdetail" style="text-align: right;"></td>
|
<td class="newOrdertbdetail" style="text-align: right;"></td>
|
||||||
<td class="newOrdertbdetail" style="text-align: right;">{{ order.taxAmount | currency: order.currency.toUpperCase() }}</td>
|
<td class="newOrdertbdetail" style="text-align: right;">{{ order.taxAmount | currency: order.currency.toUpperCase() }}</td>
|
||||||
<td></td>
|
<td></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr *ngIf="order.vatAmount > 0">
|
<tr *ngIf="order.vatAmount > 0">
|
||||||
<td class="newOrdertbdetail" style="text-align: right;">Value-Added Tax</td>
|
<td class="newOrdertbdetail" style="text-align: right;">{{ vE.invoiceVAT }}</td>
|
||||||
<td class="newOrdertbdetail" style="text-align: right;"></td>
|
<td class="newOrdertbdetail" style="text-align: right;"></td>
|
||||||
<td class="newOrdertbdetail" style="text-align: right;">{{ order.vatAmount | currency: order.currency.toUpperCase() }}</td>
|
<td class="newOrdertbdetail" style="text-align: right;">{{ order.vatAmount | currency: order.currency.toUpperCase() }}</td>
|
||||||
<td></td>
|
<td></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr *ngIf="order.tipAmount > 0">
|
<tr *ngIf="order.tipAmount > 0">
|
||||||
<td class="newOrdertbdetail" style="text-align: right;">Tip</td>
|
<td class="newOrdertbdetail" style="text-align: right;">{{ vE.invoiceTip }}</td>
|
||||||
<td class="newOrdertbdetail" style="text-align: right;"></td>
|
<td class="newOrdertbdetail" style="text-align: right;"></td>
|
||||||
<td class="newOrdertbdetail" style="text-align: right;">{{ order.tipAmount | currency: order.currency.toUpperCase() }}</td>
|
<td class="newOrdertbdetail" style="text-align: right;">{{ order.tipAmount | currency: order.currency.toUpperCase() }}</td>
|
||||||
<td></td>
|
<td></td>
|
||||||
|
|
|
@ -90,7 +90,10 @@ export class InvoiceComponent implements OnInit {
|
||||||
invoiceCopyamountError : '',
|
invoiceCopyamountError : '',
|
||||||
invoiceCopymemoError : '',
|
invoiceCopymemoError : '',
|
||||||
invoiceInvalidId : '',
|
invoiceInvalidId : '',
|
||||||
invoiceInfoNotavail : ''
|
invoiceInfoNotavail : '',
|
||||||
|
invoiceTax : '',
|
||||||
|
invoiceVAT : '',
|
||||||
|
invoiceTip : ''
|
||||||
};
|
};
|
||||||
//
|
//
|
||||||
constructor(
|
constructor(
|
||||||
|
@ -278,6 +281,9 @@ export class InvoiceComponent implements OnInit {
|
||||||
this.vE.invoiceCopymemoError = response.data.invoice_copymemo_error;
|
this.vE.invoiceCopymemoError = response.data.invoice_copymemo_error;
|
||||||
this.vE.invoiceInvalidId = response.data.invoice_invalid_id;
|
this.vE.invoiceInvalidId = response.data.invoice_invalid_id;
|
||||||
this.vE.invoiceInfoNotavail = response.data.invoice_info_notavail;
|
this.vE.invoiceInfoNotavail = response.data.invoice_info_notavail;
|
||||||
|
this.vE.invoiceTax = response.data.invoice_tax;
|
||||||
|
this.vE.invoiceVAT = response.data.invoice_vat;
|
||||||
|
this.vE.invoiceTip = response.data.invoice_tip;
|
||||||
|
|
||||||
},
|
},
|
||||||
error => { console.log('Error >> ',error); }
|
error => { console.log('Error >> ',error); }
|
||||||
|
|
Loading…
Reference in a new issue