Ejemplo n.º 1
0
        /// <summary>
        /// Deliver purchase order item. This will affect current stock level according to the delivered quantity.
        /// You can specify the total number of delivered items. If all items are delivered, the purchase order status will be changed to delivered
        /// </summary>
        /// <param name="deliverItemParameter">Class that represents parameters for Deliver Purchase Item</param>
        /// <returns>Purchase order header and affected purchase order item records</returns>
        public Update_PurchaseOrderItemResponse Deliver_PurchaseItem(Deliver_PurchaseItemParameter deliverItemParameter)
        {
            var response = GetResponse("PurchaseOrder/Deliver_PurchaseItem", "deliverItemParameter=" + JsonFormatter.ConvertToJson(deliverItemParameter) + "");

            return(JsonFormatter.ConvertFromJson <Update_PurchaseOrderItemResponse>(response));
        }
Ejemplo n.º 2
0
 public static Update_PurchaseOrderItemResponse Deliver_PurchaseItem(Deliver_PurchaseItemParameter deliverItemParameter, String ApiToken, String ApiServer)
 {
     return Newtonsoft.Json.JsonConvert.DeserializeObject<Update_PurchaseOrderItemResponse>(Factory.GetResponse("PurchaseOrder/Deliver_PurchaseItem", "deliverItemParameter=" + Newtonsoft.Json.JsonConvert.SerializeObject(deliverItemParameter) + "", ApiToken, ApiServer), new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore });
 }
Ejemplo n.º 3
0
 public static Update_PurchaseOrderItemResponse Deliver_PurchaseItem(Deliver_PurchaseItemParameter deliverItemParameter, String ApiToken, String ApiServer)
 {
     return(Newtonsoft.Json.JsonConvert.DeserializeObject <Update_PurchaseOrderItemResponse>(Factory.GetResponse("PurchaseOrder/Deliver_PurchaseItem", "deliverItemParameter=" + Newtonsoft.Json.JsonConvert.SerializeObject(deliverItemParameter) + "", ApiToken, ApiServer), new JsonSerializerSettings {
             NullValueHandling = NullValueHandling.Ignore
         }));
 }
Ejemplo n.º 4
0
        /// <summary>
        /// Deliver purchase order item. This will affect current stock level according to the delivered quantity.
        /// You can specify the total number of delivered items. If all items are delivered, the purchase order status will be changed to delivered
        /// </summary>
        /// <param name="deliverItemParameter">Class that represents parameters for Deliver Purchase Item</param>
        /// <returns>Purchase order header and affected purchase order item records</returns>
        public Update_PurchaseOrderItemResponse Deliver_PurchaseItem(Deliver_PurchaseItemParameter deliverItemParameter)
        {
            var response = GetResponse("PurchaseOrder/Deliver_PurchaseItem", "deliverItemParameter=" + System.Net.WebUtility.UrlEncode(JsonFormatter.ConvertToJson(deliverItemParameter)) + "");

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