GrishinEV
19th March 2012, 15:27
Hello All,
baan has a library and functions which can translate cuni of items from one cuni to another.
can somebody tell me the name of this function.
Thanks!
zardoz
23rd March 2012, 12:30
In LN there is that function:
tcibd.dll0003.conv.factor()
en@frrom
27th March 2012, 15:52
Function extern domain tcconv tcibd.dll0003.conv.factor(
domain tcitem i.item,
domain tccitg i.item.group,
domain tccuni i.unit,
domain tccuni i.main.unit,
...)
{
DllUsage
Expl.: For a given (customized) item the Conversion Factor is returned.
On three levels the conversion can be present. This routine
will search as follows:
1. item level
2. itemgroup level
3. general level
Input: - project (mandatory if it concerns a customized item)
- itemcode (mandatory if you want to search on item level)
- itemgroup (not mandatory but it will speed up things)
- base unit (not mandatory but it will speed up things,
mandatory if you don't fill in itemcode)
- Unit (mandatory)
If you don't specify itemgroup or base unit this routine will
read these fields from the item table or unit/parameter table.
- Other available arguments:
Number of args | Meaning
---------------+-------------------------------------------
5 | arg. 6 will be assumed to be true.
6 | When no Conv. Factor has been found and this
| flag = true; '0' will be returned else '1'
11 | arg. 6 - 11 : all record fields (tcibd003) are
| returned; in sequence : item,
| citg, basu, cuni, conv.factor, rpow.
12 | arg. 6 -11 are the same as above.
| arg. 12 has the same meaning as argument '6'
Output: 0 if no Factor is found else the conv. has been found.
EndDllUsage