private bool ShouldFrozen(PhysicalOrder openOrder) { return(this.PhysicalTradeSide != PhysicalTradeSide.Delivery && openOrder.PhysicalTradeSide == PhysicalTradeSide.Deposit && openOrder.PhysicalValueMatureDay > 0); }
private Transaction CreateNewInstalmentTran(decimal remainLot, Transaction oldTran, PhysicalOrder oldOrder, ExecuteContext context) { var command = AddPhysicalTransactionCommandFactory.Default.CreateInstalmentTransaction(oldTran.Owner, (PhysicalTransaction)oldTran, oldOrder.Id, oldOrder, true, true, remainLot); var instalmentCommand = (AddPhysicalInstalmentTransactionCommand)command; instalmentCommand.BaseTime = context.ExecuteTime; command.Execute(); return(command.Result); }
internal InstalmentDetailManager(PhysicalOrder order, Instalment instalment) { _order = order; _instalment = instalment; }