TemplateBase
Definition
- Namespace
- Resto.Front.PrintTemplates.Cheques.Razor
Base class for Legacy Razor print templates. Model contains the document data of type T. Provides formatting and markup output methods.
TemplateBase<T>
Members
| Name | Type | Description |
|---|---|---|
| CalculatePercent | decimal | Calculates the percentage represented by a part of a total. |
| CreateComparer | IEqualityComparer<TObject> | Creates an equality comparer backed by an equality delegate and a constant hash code. |
| FormatAmount | string | Formats an item quantity with zero or three decimal places. |
| FormatDate | string | Formats a numeric date without a time. |
| FormatDateTimeCustom | string | Formats a date/time using a standard or custom .NET format string. |
| FormatFoodValueItem | string | Formats a nutritional value with at most one decimal place. |
| FormatFullDateTime | string | Formats a day, abbreviated month name and time without a year. |
| FormatLongDateTime | string | Formats a date and time with a numeric date and minute precision. |
| FormatLongTime | string | Formats a time including seconds. |
| FormatMoney | string | Formats money using the current currency precision and minimum denomination. |
| FormatMoneyFractional | string | Formats money using the current currency precision without denomination rounding. |
| FormatMoneyInWords | string | Spells out an amount using the engine's currency language resources. |
| FormatMoneyMin | string | Formats money without a fractional part when currency rounding produces an integer. |
| FormatPercent | string | Formats a percentage value and appends a percent sign. |
| FormatTime | string | Formats a time with hours and minutes. |
| FormatTimeSpan | string | Formats an elapsed duration as total hours and minutes, optionally including seconds. |
| GetSumInAdditionalCurrency | decimal | Converts an amount into an additional currency and rounds it down to that currency precision. |
| GetVatSum | decimal | Extracts VAT already included in a gross amount. |
| Resources | — | Print template text resources. The terminal language determines the value when printing. |