Exemple #1
0
        /// <summary>
        /// Change purchase order status. Can change from:
        /// PENDING to OPEN, which will populate Due (OnOrder) values in stock levels,
        /// OPEN to DELIVERED, which will consolidate Due values in stock levels
        /// PARTIAL to DELIVERED, which will consolidate Due values in stock levels
        /// </summary>
        /// <param name="changeStatusParameter">Class that represents the parameters for Changing the Purchase Order Status</param>
        /// <returns>Returns the Purchase Order Header for the Purchase Order</returns>
        public PurchaseOrderHeader Change_PurchaseOrderStatus(Change_PurchaseOrderStatusParameter changeStatusParameter)
        {
            var response = GetResponse("PurchaseOrder/Change_PurchaseOrderStatus", "changeStatusParameter=" + JsonFormatter.ConvertToJson(changeStatusParameter) + "");

            return(JsonFormatter.ConvertFromJson <PurchaseOrderHeader>(response));
        }
 public static PurchaseOrderHeader Change_PurchaseOrderStatus(Change_PurchaseOrderStatusParameter changeStatusParameter, String ApiToken, String ApiServer)
 {
     return Newtonsoft.Json.JsonConvert.DeserializeObject<PurchaseOrderHeader>(Factory.GetResponse("PurchaseOrder/Change_PurchaseOrderStatus", "changeStatusParameter=" + Newtonsoft.Json.JsonConvert.SerializeObject(changeStatusParameter) + "", ApiToken, ApiServer), new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore });
 }
Exemple #3
0
 public static PurchaseOrderHeader Change_PurchaseOrderStatus(Change_PurchaseOrderStatusParameter changeStatusParameter, String ApiToken, String ApiServer)
 {
     return(Newtonsoft.Json.JsonConvert.DeserializeObject <PurchaseOrderHeader>(Factory.GetResponse("PurchaseOrder/Change_PurchaseOrderStatus", "changeStatusParameter=" + Newtonsoft.Json.JsonConvert.SerializeObject(changeStatusParameter) + "", ApiToken, ApiServer), new JsonSerializerSettings {
             NullValueHandling = NullValueHandling.Ignore
         }));
 }
Exemple #4
0
        /// <summary>
        /// Change purchase order status. Can change from:
        /// PENDING to OPEN, which will populate Due (OnOrder) values in stock levels,
        /// OPEN to DELIVERED, which will consolidate Due values in stock levels
        /// PARTIAL to DELIVERED, which will consolidate Due values in stock levels
        /// </summary>
        /// <param name="changeStatusParameter">Class that represents the parameters for Changing the Purchase Order Status</param>
        /// <returns>Returns the Purchase Order Header for the Purchase Order</returns>
        public PurchaseOrderHeader Change_PurchaseOrderStatus(Change_PurchaseOrderStatusParameter changeStatusParameter)
        {
            var response = GetResponse("PurchaseOrder/Change_PurchaseOrderStatus", "changeStatusParameter=" + System.Net.WebUtility.UrlEncode(JsonFormatter.ConvertToJson(changeStatusParameter)) + "");

            return(JsonFormatter.ConvertFromJson <PurchaseOrderHeader>(response));
        }