FormatsAccountingAccount(String, Int32, Boolean) Method
Converts a count to the set format, with the maximum number of digits.
Namespace: Aliquo.CoreAssembly: Aliquo.Core (in Aliquo.Core.dll) Version: 5.0.9179.22651
public static string AccountingAccount(
string account,
int digits,
bool addTrailingZeros
)
Public Shared Function AccountingAccount (
account As String,
digits As Integer,
addTrailingZeros As Boolean
) As String
- account String
- Accounting account to format.
- digits Int32
- Number of digits to format.
- addTrailingZeros Boolean
- Add zeros until the countable digits are complete.
StringString with the a count to the set format, with the maximum number of digits.
Ex. 430.1 will return 43000001.
Ex. 43 will return 43000000.
If addTrailingZeros = false is set, the only thing it will format is a dotted account - Ex. 430.1 will return 43000001