private void MapHeaderToEntity(ARINVOICE_HEADER entity, sptyx_DMSARInvoice_Result row) { entity.CompanyCode = row.Company; entity.DocNum = row.Docnum.ToString(); entity.CustomerCode = row.CustomerCode; entity.SalesmanCode = row.SalesmanCode; entity.TotalAmount = row.TotalAmount; entity.InvoiceDate = row.InvoiceDate; entity.Type = row.Type.ToString(); entity.Remarks = row.Remarks; entity.SO_DocNum = row.SO_Docnum; entity.CreatedBy = this.epicorUserID; entity.LastUpdatedBy = this.epicorUserID; entity.CreatedDateTime = DateTime.Now; entity.LastUpdatedDateTime = DateTime.Now; }
private void MapDetailToEntity(ARINVOICE_DETAIL entity, sptyx_DMSARInvoice_Result row) { entity.CompanyCode = row.Company; entity.DocNum = row.Docnum.ToString(); entity.LineNum = row.Linenum.ToString(); entity.ProductCode = row.Productcode; entity.UoM = row.UOM; entity.Quantity = row.OurShipQty; entity.Price = row.Price; entity.Discount_Amount = row.Discount_Amount; entity.Discount_Percent = row.Discount_Percent; entity.Amount = row.Amount; entity.CreatedBy = this.epicorUserID; entity.LastUpdatedBy = this.epicorUserID; entity.CreatedDateTime = DateTime.Now; entity.LastUpdatedDateTime = DateTime.Now; }