f0f1f2.studio Template reference
English
Open application
Class

TemplateBaseCore

Definition

Namespace
Resto.Front.PrintTemplates.Cheques.Razor

Base class for RazorEngineCore print templates. Model contains the document data of type T. Provides formatting and markup output methods.

TemplateBaseCore<T>

Members

NameTypeDescription
CalculatePercentdecimalCalculates the percentage represented by a part of a total.
CreateComparerIEqualityComparer<TObject>Creates an equality comparer backed by an equality delegate and a constant hash code.
FormatAmountstringFormats an item quantity with zero or three decimal places.
FormatDatestringFormats a numeric date without a time.
FormatDateTimeCustomstringFormats a date/time using a standard or custom .NET format string.
FormatFoodValueItemstringFormats a nutritional value with at most one decimal place.
FormatFullDateTimestringFormats a day, abbreviated month name and time without a year.
FormatLongDateTimestringFormats a date and time with a numeric date and minute precision.
FormatLongTimestringFormats a time including seconds.
FormatMoneystringFormats money using the current currency precision and minimum denomination.
FormatMoneyFractionalstringFormats money using the current currency precision without denomination rounding.
FormatMoneyInWordsstringSpells out an amount using the engine's currency language resources.
FormatMoneyMinstringFormats money without a fractional part when currency rounding produces an integer.
FormatPercentstringFormats a percentage value and appends a percent sign.
FormatTimestringFormats a time with hours and minutes.
FormatTimeSpanstringFormats an elapsed duration as total hours and minutes, optionally including seconds.
GetSumInAdditionalCurrencydecimalConverts an amount into an additional currency and rounds it down to that currency precision.
GetVatSumdecimalExtracts VAT already included in a gross amount.
Resources—Print template text resources. The terminal language determines the value when printing.