srprks
19th January 2018, 10:47
Hi Experts,
Can I know which type of code it is? is it a function? hook?
function long handle.dependent.objects(
long i.mode,
boolean i.before)
{
FunctionUsage
Expl.: The purpose of this function is to concentrate dependent
actions when creating, updating and destroying so called
"dependent objects". These actions are initiated from the
"after save object" and "before destroy object".
List of tdpur413 dependent objects:
ID Description Integration?
--------------------------------------------
PIT PIT for material supply lines is updated when orderline
receives status 'Executed'.
Pre: Record tdpur413 is current
Post: Dependent objects are, if applicable, updated.
Input: i.mode -> DAL_NEW and DAL_UPDATE
Is possible for "before save object" and
"after save object".
-> DAL_DESTROY
Is possible for "before destroy object" and
"after destroy object".
i.before -> true
Is possible for "before save object" and
"before destroy object".
-> false
Is possible for "after save object".
WARNING:
Argument i.before must be removed in case no object actions
must be done in the "before save object" and
"after destroy object"!
Output: N.A.
Return: 0/DALHOOKERROR
EndFunctionUsage
|#MSL-PEGn2.so
| |#SUB-NK.sn
| RETIFNOK(handle.dependent.object.material.supply.line.pit(
| i.mode,
| i.before)) |#SUB-NK.en
|#MSL-PEGn2.eo
return(0)
}
Thanks,
Sam
Can I know which type of code it is? is it a function? hook?
function long handle.dependent.objects(
long i.mode,
boolean i.before)
{
FunctionUsage
Expl.: The purpose of this function is to concentrate dependent
actions when creating, updating and destroying so called
"dependent objects". These actions are initiated from the
"after save object" and "before destroy object".
List of tdpur413 dependent objects:
ID Description Integration?
--------------------------------------------
PIT PIT for material supply lines is updated when orderline
receives status 'Executed'.
Pre: Record tdpur413 is current
Post: Dependent objects are, if applicable, updated.
Input: i.mode -> DAL_NEW and DAL_UPDATE
Is possible for "before save object" and
"after save object".
-> DAL_DESTROY
Is possible for "before destroy object" and
"after destroy object".
i.before -> true
Is possible for "before save object" and
"before destroy object".
-> false
Is possible for "after save object".
WARNING:
Argument i.before must be removed in case no object actions
must be done in the "before save object" and
"after destroy object"!
Output: N.A.
Return: 0/DALHOOKERROR
EndFunctionUsage
|#MSL-PEGn2.so
| |#SUB-NK.sn
| RETIFNOK(handle.dependent.object.material.supply.line.pit(
| i.mode,
| i.before)) |#SUB-NK.en
|#MSL-PEGn2.eo
return(0)
}
Thanks,
Sam