MODSEL - SELECTIVITY MANAGEMENT IN ASYCUDA++
Ó UNCTAD - SITE (V1.15)
6.24
Selection Criteria Syntax
See the Appendix A to this Document Taxation Management - Syntax and Reference
for an explanation of selectivity rules syntax and for examples of use.
Note: the look up screens within your current version of module MODSEL list all
Functions, Keywords and Variables useable within Selection Criteria and Value
Controls.
Within Selectivity (Criteria)
Functions
Function
Usage
RoundInf(x)
if N _ x < N + 1 then N
RoundSup(x)
if N < x _ N + 1 then N + 1
Round(x)
if N _ x < N + 0.5 then N else N + 1
Min(x, y)
if x < y then x else y
Max(x, y)
if x > y then x else y
Sqr(x)
Square x * x
Abs(x)
Absolute value of x
JulianDate(s)
Convert date to julian number
ValStr
Converts string to numeric value
SubStrFnd(x)
SubStrFnd(String, SubStr, Index, Length, option)
GetLength
Get Length(String)
SetWrkDate(x)
Sets working date (x julian date )
TaxMP(s, t)
Get ("TaxCod", "MP")
TaxBasisVal(x)
Get ("TaxCod")
TaxRate(x)
Get ("TaxCod")
TaxAmount(x)
Get ("TaxCod")
CurRate(s)
Exchange Rate for currency s
DisplayErr(s)
Display the string on the screen
InListOr(x)
In List Or ("List name")
InListAnd(x)
In List And ("List name")
InListTar(x)
In List Tariff ("List name")
InListDec(x)
In List Declarant ("List name")
InListCom(x)
In List Company ("List name")
InListFin(x)
In List Financial ("List name")
InListCty(x)
In List Country ("List name")
InListCtyPD(x)
In List Country Prov/dest ("List name")
InListBoL(x)
In List Bill of Lading (List name)
DisplayErrStop(s)
Display error and stop validation