import * as _ from 'lodash' ; import { StockItem } from './stockitem' ; export class InvoiceItem { id ? : number ; invoiceId ? : number ; stockitemId ? : number ; stockitemData ? : StockItem ; taxable ? : boolean ; quantity ? : number ; cost ? : number ; realData ? : any ; promoApplyId ? : string ; constructor ( initializer ? ) { if ( ! initializer ) { return ; } this . id = initializer . id ; this . invoiceId = initializer . invoiceId ; this . stockitemId = initializer . stockitemId ; this . stockitemData = initializer . stockitemData ; this . cost = initializer . cost ; this . taxable = initializer . taxable ; this . quantity = initializer . quantity ; this . promoApplyId = initializer . promoApplyId ; } }