Exemple #1
0
 public void RemoveOrderItem(SupplyOrderItem orderItem) {
   orderItem.Status = OrderStatus.Deleted;
   orderItem.Save();
 }
 static internal int WriteSupplyOrderItem(SupplyOrderItem o) {
   var op = DataOperation.Parse("writeSNMSupplyOrderItem", o.Id, o.Order.Id,
                                o.OrderItemTypeId, o.SupplyPoint.Id, o.Concept, o.ApplicationItemTypeId,
                                o.ApplicationItemId, o.Commissioner.Id, o.RequestedDate, o.PromisedDate,
                                o.DeliveryTime, o.Product.Id, o.Quantity, o.PresentationUnit.Id, o.IdentificationTag,
                                o.DutyEntryTag, o.ExpirationDate, o.PriceRuleId, (char) o.PriceType,
                                o.DiscountRuleId, (char) o.DiscountType, o.RepositionValue, o.ProductUnitPrice,
                                o.Order.Currency.Id, o.ProductSubTotalInBaseCurrency, o.ProductSubTotal,
                                o.ProductDiscount, o.ProductTaxes, o.ProductTotal, o.ShippingSubTotal,
                                o.ShippingDiscount, o.ShippingTaxes, o.ShippingTotal, o.PriceAuthorizationId,
                               o.Keywords, o.ParentItem.Id, o.PostedBy.Id, o.PostingTime, (char) o.Status);
   return DataWriter.Execute(op);
 }