Exemplo n.º 1
0
        /// <summary>
        /// Update purchase order header, only if status is not Delivered. Returns modified/recalculated purchase order header
        /// </summary>
        /// <param name="updateParameter">Update purchase order header class</param>
        /// <returns>Returns modified/recalculated purchase order header</returns>
        public PurchaseOrderHeader Update_PurchaseOrderHeader(Update_PurchaseOrderHeaderParameter updateParameter)
        {
            var response = GetResponse("PurchaseOrder/Update_PurchaseOrderHeader", "updateParameter=" + JsonFormatter.ConvertToJson(updateParameter) + "");

            return(JsonFormatter.ConvertFromJson <PurchaseOrderHeader>(response));
        }
Exemplo n.º 2
0
        /// <summary>
        /// Update purchase order header, only if status is not Delivered. Returns modified/recalculated purchase order header
        /// </summary>
        /// <param name="updateParameter">Update purchase order header class</param>
        /// <returns>Returns modified/recalculated purchase order header</returns>
        public PurchaseOrderHeader Update_PurchaseOrderHeader(Update_PurchaseOrderHeaderParameter updateParameter)
        {
            var response = GetResponse("PurchaseOrder/Update_PurchaseOrderHeader", "updateParameter=" + System.Net.WebUtility.UrlEncode(JsonFormatter.ConvertToJson(updateParameter)) + "");

            return(JsonFormatter.ConvertFromJson <PurchaseOrderHeader>(response));
        }
Exemplo n.º 3
0
 public static PurchaseOrderHeader Update_PurchaseOrderHeader(Update_PurchaseOrderHeaderParameter updateParameter, String ApiToken, String ApiServer)
 {
     return Newtonsoft.Json.JsonConvert.DeserializeObject<PurchaseOrderHeader>(Factory.GetResponse("PurchaseOrder/Update_PurchaseOrderHeader", "updateParameter=" + Newtonsoft.Json.JsonConvert.SerializeObject(updateParameter) + "", ApiToken, ApiServer), new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore });
 }
Exemplo n.º 4
0
 public static PurchaseOrderHeader Update_PurchaseOrderHeader(Update_PurchaseOrderHeaderParameter updateParameter, Guid ApiToken, String ApiServer)
 {
     return(Newtonsoft.Json.JsonConvert.DeserializeObject <PurchaseOrderHeader>(Factory.GetResponse("PurchaseOrder/Update_PurchaseOrderHeader", "updateParameter=" + Newtonsoft.Json.JsonConvert.SerializeObject(updateParameter, serializerSettings) + "", ApiToken, ApiServer), new JsonSerializerSettings {
         NullValueHandling = NullValueHandling.Ignore
     }));
 }