CloverExamplePOS.POSOrderDiscount.Value C# (CSharp) Méthode

Value() public méthode

public Value ( POSOrder order ) : long
order POSOrder
Résultat long
        public long Value(POSOrder order)
        {
            if (AmountOff > 0)
            {
                return AmountOff;
            }
            else
            {
                return (int)(order.PreTaxSubTotal * PercentageOff);
            }
        }