Taxes, tips and bugfixes #10
5 changed files with 17 additions and 2 deletions
|
@ -49,6 +49,9 @@ export class InvoiceComponent implements OnInit {
|
||||||
externalInvoice: '',
|
externalInvoice: '',
|
||||||
shortCode: '',
|
shortCode: '',
|
||||||
token: '',
|
token: '',
|
||||||
|
taxAmount: 0,
|
||||||
|
vatAmount: 0,
|
||||||
|
tipAmount: 0,
|
||||||
lines: [
|
lines: [
|
||||||
{
|
{
|
||||||
qty: 1,
|
qty: 1,
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import { LineItem } from '../items/lineitem.model';
|
import { LineItem } from '../items/lineitem.model';
|
||||||
|
|
||||||
export interface Order {
|
export interface Order {
|
||||||
_id?: string,
|
_id?: string|null,
|
||||||
address: string,
|
address: string,
|
||||||
session: string,
|
session: string,
|
||||||
timestamp?: string,
|
timestamp?: string,
|
||||||
|
@ -14,5 +14,8 @@ export interface Order {
|
||||||
paid: boolean,
|
paid: boolean,
|
||||||
externalInvoice: string,
|
externalInvoice: string,
|
||||||
shortCode: string,
|
shortCode: string,
|
||||||
token: string
|
token: string,
|
||||||
|
taxAmount: number,
|
||||||
|
vatAmount: number,
|
||||||
|
tipAmount: number
|
||||||
}
|
}
|
||||||
|
|
|
@ -68,6 +68,9 @@ export class PmtserviceComponent implements OnInit {
|
||||||
externalInvoice: '',
|
externalInvoice: '',
|
||||||
shortCode: '',
|
shortCode: '',
|
||||||
token: '',
|
token: '',
|
||||||
|
taxAmount: 0,
|
||||||
|
vatAmount: 0,
|
||||||
|
tipAmount: 0,
|
||||||
lines: [
|
lines: [
|
||||||
{
|
{
|
||||||
qty: 1,
|
qty: 1,
|
||||||
|
|
|
@ -47,6 +47,9 @@ export class ReceiptService {
|
||||||
externalInvoice: '',
|
externalInvoice: '',
|
||||||
shortCode: '',
|
shortCode: '',
|
||||||
token: '',
|
token: '',
|
||||||
|
taxAmount: 0,
|
||||||
|
vatAmount: 0,
|
||||||
|
tipAmount: 0,
|
||||||
lines: [
|
lines: [
|
||||||
{
|
{
|
||||||
qty: 1,
|
qty: 1,
|
||||||
|
|
|
@ -32,6 +32,9 @@ export class ReceiptComponent implements OnInit {
|
||||||
externalInvoice: '',
|
externalInvoice: '',
|
||||||
shortCode: '',
|
shortCode: '',
|
||||||
token: '',
|
token: '',
|
||||||
|
taxAmount: 0,
|
||||||
|
vatAmount: 0,
|
||||||
|
tipAmount: 0,
|
||||||
lines: [
|
lines: [
|
||||||
{
|
{
|
||||||
qty: 1,
|
qty: 1,
|
||||||
|
|
Loading…
Reference in a new issue