Add new fields to order model
This commit is contained in:
parent
80798093dd
commit
7516eaf11f
7 changed files with 24 additions and 1 deletions
|
@ -5,6 +5,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
## Added
|
||||||
|
|
||||||
|
- Add `crmToken` field to `owner.model.ts`
|
||||||
|
- Add `externalInvoice` field and `shortCode` field to `order.model.ts`
|
||||||
|
|
||||||
## [1.2.1] - 2022-08-01
|
## [1.2.1] - 2022-08-01
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
|
@ -34,6 +34,8 @@ export class InvoiceComponent implements OnInit {
|
||||||
total: 0,
|
total: 0,
|
||||||
totalZec: 0,
|
totalZec: 0,
|
||||||
paid: false,
|
paid: false,
|
||||||
|
externalInvoice: '',
|
||||||
|
shortCode: '',
|
||||||
lines: [
|
lines: [
|
||||||
{
|
{
|
||||||
qty: 1,
|
qty: 1,
|
||||||
|
|
|
@ -41,6 +41,8 @@ export class OrderComponent implements OnInit{
|
||||||
total:0,
|
total:0,
|
||||||
totalZec: 0,
|
totalZec: 0,
|
||||||
paid: false,
|
paid: false,
|
||||||
|
externalInvoice: '',
|
||||||
|
shortCode: '',
|
||||||
lines: [
|
lines: [
|
||||||
{
|
{
|
||||||
qty: 1,
|
qty: 1,
|
||||||
|
|
|
@ -11,5 +11,7 @@ export interface Order {
|
||||||
total: number,
|
total: number,
|
||||||
totalZec: number,
|
totalZec: number,
|
||||||
lines: LineItem[],
|
lines: LineItem[],
|
||||||
paid: boolean
|
paid: boolean,
|
||||||
|
externalInvoice: string,
|
||||||
|
shortCode: string
|
||||||
}
|
}
|
||||||
|
|
|
@ -63,6 +63,8 @@ export class OrderService {
|
||||||
total: 0,
|
total: 0,
|
||||||
totalZec: 0,
|
totalZec: 0,
|
||||||
paid: false,
|
paid: false,
|
||||||
|
externalInvoice: '',
|
||||||
|
shortCode: '',
|
||||||
lines: [
|
lines: [
|
||||||
{
|
{
|
||||||
qty: 1,
|
qty: 1,
|
||||||
|
@ -164,6 +166,8 @@ export class OrderService {
|
||||||
price: 0,
|
price: 0,
|
||||||
total: 0,
|
total: 0,
|
||||||
paid: false,
|
paid: false,
|
||||||
|
externalInvoice: '',
|
||||||
|
shortCode: '',
|
||||||
lines: [lineItem]
|
lines: [lineItem]
|
||||||
};
|
};
|
||||||
let obs = this.http.post<{message: string, order: Order}>(this.beUrl+'api/order', {payload: order}, { headers: this.reqHeaders });
|
let obs = this.http.post<{message: string, order: Order}>(this.beUrl+'api/order', {payload: order}, { headers: this.reqHeaders });
|
||||||
|
@ -191,6 +195,8 @@ export class OrderService {
|
||||||
totalZec: 0,
|
totalZec: 0,
|
||||||
price: 0,
|
price: 0,
|
||||||
paid: false,
|
paid: false,
|
||||||
|
externalInvoice: '',
|
||||||
|
shortCode: '',
|
||||||
lines: [
|
lines: [
|
||||||
{
|
{
|
||||||
qty: 1,
|
qty: 1,
|
||||||
|
@ -224,6 +230,8 @@ export class OrderService {
|
||||||
total: 0,
|
total: 0,
|
||||||
totalZec: 0,
|
totalZec: 0,
|
||||||
paid: false,
|
paid: false,
|
||||||
|
externalInvoice: '',
|
||||||
|
shortCode: '',
|
||||||
lines: [
|
lines: [
|
||||||
{
|
{
|
||||||
qty: 1,
|
qty: 1,
|
||||||
|
|
|
@ -52,6 +52,8 @@ export class ReceiptService {
|
||||||
total: 0,
|
total: 0,
|
||||||
totalZec: 0,
|
totalZec: 0,
|
||||||
paid: false,
|
paid: false,
|
||||||
|
externalInvoice: '',
|
||||||
|
shortCode: '',
|
||||||
lines: [
|
lines: [
|
||||||
{
|
{
|
||||||
qty: 1,
|
qty: 1,
|
||||||
|
|
|
@ -25,6 +25,8 @@ export class ReceiptComponent implements OnInit {
|
||||||
total: 0,
|
total: 0,
|
||||||
totalZec: 0,
|
totalZec: 0,
|
||||||
paid: false,
|
paid: false,
|
||||||
|
externalInvoice: '',
|
||||||
|
shortCode: '',
|
||||||
lines: [
|
lines: [
|
||||||
{
|
{
|
||||||
qty: 1,
|
qty: 1,
|
||||||
|
|
Loading…
Reference in a new issue