mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-20 01:34:24 +08:00
add comments
This commit is contained in:
@@ -168,6 +168,7 @@ var allCurrencyNames = map[string]bool{
|
||||
"ZWL": true, //Zimbabwe Dollar
|
||||
}
|
||||
|
||||
// ValidCurrency returns whether the given currency is valid
|
||||
func ValidCurrency(fl validator.FieldLevel) bool {
|
||||
if value, ok := fl.Field().Interface().(string); ok {
|
||||
if value == ParentAccountCurrencyPlaceholder {
|
||||
|
||||
Reference in New Issue
Block a user