Esempio n. 1
0
        public override void Annul()
        {
            if (!CheckIsNewFormat())
            {
                return;
            }

            string error;
            string warning;

            if (BusinessDomain.CanAnnulOperation(this, out error, out warning))
            {
                LoadDetails();
                ClearDetails();
                Commit(GetPriceGroup(-1, locationId), true);
            }
            else if (warning != null)
            {
                BusinessDomain.RequestOperationAnnul(this);
            }
        }