0 — Receipt note (r/n)
1 — Return from customer (rfc)
4 — Delivery note (d/n)
5 — Return to supplier (rts)
8 — Collation statement (c/s)
10 — Processing note (p/n)
11 — Internal transfer (i/t)
12 — Complectation (c)
13 — Decomplectation (d/c)
To determine which types of invoices were selected in the filter, the method shown below is used. In this example, we write all the selected types to the FDocTypestring variable; <ExpFifoFilter. "GDoc_TypeMask"> is a field containing a note types mask:
if (<ExpFifoFilter."GDoc_TypeMask"> and 1) = 1 then FDocType := FDocType + 'r/n';
if (<ExpFifoFilter."GDoc_TypeMask"> and 2) = 2 then FDocType := FDocType + IIF(FDocType='','rfc',', rfc');
if (<ExpFifoFilter."GDoc_TypeMask"> and 16) = 16 then FDocType := FDocType + IIF(FDocType='','d/n',', d/n');
if (<ExpFifoFilter."GDoc_TypeMask"> and 32) = 32 then FDocType := FDocType + IIF(FDocType='','rts',', rts');
if (<ExpFifoFilter."GDoc_TypeMask"> and 256) = 256 then FDocType := FDocType + IIF(FDocType='','c/s',', c/s');
if (<ExpFifoFilter."GDoc_TypeMask"> and 1024) = 1024 then FDocType := FDocType + IIF(FDocType='','p/n',', p/n');
if (<ExpFifoFilter."GDoc_TypeMask"> and 2048) = 2048 then FDocType := FDocType + IIF(FDocType='','i/t',', i/t');
if (<ExpFifoFilter."GDoc_TypeMask"> and 4096) = 4096 then FDocType := FDocType + IIF(FDocType='','c',', c');
if (<ExpFifoFilter."GDoc_TypeMask"> and 8192) = 8192 then FDocType := FDocType + IIF(FDocType='','d/c',', d/c');
0 — Internal (the internal request can be a child)
1 — External
2 — Return
0 — Payment receipt document (rpd)
1 — Payment expenditure document (dpd)
0 — With the supplier (supp)
1 — With the customer (cust)
0 — Purchase
1 — Monday
2 — Tuesday
3 — Wednesday
4 — Thursday
5 — Friday
6 — Saturday
0 — Sunday
1 — calculate food energy
2 — use the scales for inventory
4 — alcoholic beverages
8 — certified goods
16 — do not start the movement to create an alcohol declaration
32 — start the movement to create an alcohol declaration
64 — a set is required
0 — sales
1 — losses
2 — internal counterparty
3 — external counterparty
0 — undefined
1 — alcohol producer
2 — alcohol importer
3 — alcohol supplier
0 — legal entity
1 — individual
2 — special correspondent
0 — up to zero
1 — up to min. stock
2 — up to max. stock
0 — do not group
1 — by departments
2 — by legal entities
3 — by enterprises
0 — do not group
1 — by goods groups
2 — by categories
3 — by acc. categories
4 — by types of alc. products
0 — do not group
1 — by sale locations
0 — any
1 — > 0
2 — = 0
3 — < of min. margin
4 — >= min. margin
5 — <= max. margin
6 — > of max. margin
7 — acc. margin rules
8 — not acc. margin rules
0 — created, modified, deleted
1 — created for the period
2 — deleted for the period