3.0.1.3 Requirements

This commit is contained in:
Andy Howard
2025-03-02 19:08:41 +00:00
parent 80b085cf29
commit 6e23b091cf
45 changed files with 1420 additions and 681 deletions
@@ -202,6 +202,19 @@ namespace Sarand.BusinessMgr.Net.Core.Web.Components
return value.Format("d-MMM-yy HH:mm", SessionCulture).TrimAll();
}
// Display data - Numeric.
public string FormatNumberForDisplay(decimal value, ushort decimals)
{
return value.ToString($"N{decimals}", SessionCulture);
}
// Display data - Money.
public string FormatMoneyForDisplay(decimal? value, ushort decimals)
{
if (value == null) return "";
return ((decimal)value).ToString($"N{decimals}", SessionCulture);
}
//-------------------------------------------------------------------
// Form data - Dates.
// Format may depend on locale, but as long as these methods are used consistently,