Add new fields to orders

This commit is contained in:
Rene Vergara 2023-10-22 08:07:51 -05:00
parent b7d44e354d
commit b6eb402a39
Signed by: pitmutt
GPG Key ID: 65122AD495A7F5B2
5 changed files with 17 additions and 2 deletions

View File

@ -49,6 +49,9 @@ export class InvoiceComponent implements OnInit {
externalInvoice: '',
shortCode: '',
token: '',
taxAmount: 0,
vatAmount: 0,
tipAmount: 0,
lines: [
{
qty: 1,

View File

@ -1,7 +1,7 @@
import { LineItem } from '../items/lineitem.model';
export interface Order {
_id?: string,
_id?: string|null,
address: string,
session: string,
timestamp?: string,
@ -14,5 +14,8 @@ export interface Order {
paid: boolean,
externalInvoice: string,
shortCode: string,
token: string
token: string,
taxAmount: number,
vatAmount: number,
tipAmount: number
}

View File

@ -68,6 +68,9 @@ export class PmtserviceComponent implements OnInit {
externalInvoice: '',
shortCode: '',
token: '',
taxAmount: 0,
vatAmount: 0,
tipAmount: 0,
lines: [
{
qty: 1,

View File

@ -47,6 +47,9 @@ export class ReceiptService {
externalInvoice: '',
shortCode: '',
token: '',
taxAmount: 0,
vatAmount: 0,
tipAmount: 0,
lines: [
{
qty: 1,

View File

@ -32,6 +32,9 @@ export class ReceiptComponent implements OnInit {
externalInvoice: '',
shortCode: '',
token: '',
taxAmount: 0,
vatAmount: 0,
tipAmount: 0,
lines: [
{
qty: 1,