Exemple #1
0
        public override void VisitAddPhysicalOrderCommand(AddOrderCommandBase command)
        {
            var instalmentOrderCommand = (AddInstalmentOrderOrderCommand)command;

            this.ParseCommon(instalmentOrderCommand);
            command.CreateOrder();
            command.Result.CopyHitInfoFrom(instalmentOrderCommand.OldOrder);
        }
        protected void CreateOrder(AddOrderCommandBase command)
        {
            Order order = command.CreateOrder();

            if (!order.IsOpen)
            {
                this.CreateOrderRelation(order, command);
            }
        }