add status to invoices

This commit is contained in:
Dzmitry_Tamashevich@epam.com
2020-10-27 10:51:04 +03:00
committed by Daniel Hutzel
parent 9a63f406ec
commit 52f00c62b7
5 changed files with 23 additions and 5 deletions

View File

@@ -74,6 +74,11 @@ entity Invoices {
total : Decimal(10, 2);
invoiceItems : Association to many InvoiceItems
on invoiceItems.invoice = $self;
status : Integer enum {
submitted = 1;
shipped = 2;
canceled = -1;
} default 1;
}
entity InvoiceItems {
@@ -81,7 +86,7 @@ entity InvoiceItems {
invoice : Association to Invoices;
track : Association to Tracks;
unitPrice : Decimal(10, 2);
quantity : Integer;
quantity : Integer default 1;
}
entity Tracks {