Пример #1
0
 public object InsertUpdateProformaInvoice(ProformaInvoice proformaInvoice)
 {
     if (proformaInvoice.ProformaInvoiceDetailList.Count > 0)
     {
         proformaInvoice.DetailXML = _commonBusiness.GetXMLfromProformaInvoiceObject(proformaInvoice.ProformaInvoiceDetailList, "ProductID,ProductModelID,UnitCode,Qty,Rate");
     }
     if (proformaInvoice.ProformaInvoiceOtherChargeDetailList.Count > 0)
     {
         proformaInvoice.OtherChargeDetailXML = _commonBusiness.GetXMLfromProformaInvoiceOtherChargeObject(proformaInvoice.ProformaInvoiceOtherChargeDetailList, "OtherChargeCode,ChargeAmount");
     }
     return(_proforaInvoiceRepository.InsertUpdateProformaInvoice(proformaInvoice));
 }