export class Order {  
    constructor(
            public orderNo:string = '',
            public userId:string = '',
            public ecmSite:string = '',
            public currCode:string = '',
            public exchRate:string = '',
            public orderDate :string = '',
            public remark:string = '',
            public divAddress:string = '',
            public billAddress:string = '',
            public amount:string = '',
            public taxAmt:string = '',
            public discAmt:string = '',
            public promoAmt:string = '',
            public netAmt:string = '',
            public wfStat:string = '',
            public wfStatDate:string = '',
            public itemCode:string = '',
            public orderStat :string = '',
            public statDate :any = '',
            public orderId:string = '',
            public orderTotal:string = '',
            public itemQuantity:string = '', 
            public itemCost:string = '',  
            public itemAttributtes:string = '',
            public itemDeliveryExpectation:string = '',
            public ecmOrderDets: OrderDetail[] = []
    ) { }
}

export class OrderDetail {
    constructor(
            public discPerc: string = '',
            public eOrderNo: string = '',
            public itemCode: string = '',
            public lineNo: string = '',
            public quantity: string = '',
            public rate: string = '',
            public statdate: string = '',
            public taxAmt : string = '',
            public netAmt : string = ''
    ) { }
}