| icDraftReference | input | character | Description for the draft instance. This parameter will have a value when creating a draft instance. |
| icDraftFormName | input | character | This parameter will have a value when creating a draft instance. |
| ilDraftIsShared | input | logical | This parameter will have a value when creating a draft instance. |
| oiReturnStatus | output | integer | Return status of the method. |
<ANCESTOR-CODE>
if viCurrentDraftInstanceId = 0
then for each tDCollection where
tDCollection.tc_Status = "N":U and
tDCollection.DCollectionNumber <> 0 and
tDCollection.DCollectionNumber <> ?:
assign vhFcComponent = ?.
if icDraftReference = "":U
then do:
<M-3 run ReleaseNumber
(input tDCollection.Company_ID (iiCompanyId),
input tDCollection.DCollectionYear (iiNumbrYear),
input 'DCOL':U (icNumbrType),
input tDCollection.DCollectionNumber (iiNumbr),
input viFcCurrentInstanceId (iiInstanceId),
input vcFcComponentName (icClassName),
output viFcReturnSuper (oiReturnStatus)) in BNumber>
end.
else do:
<M-4 run StoreNumber (input tDCollection.Company_ID (iiCompanyID),
input tDCollection.DCollectionYear (iiNumbrYear),
input 'DCOL':U (icNumbrType),
input tDCollection.DCollectionNumber (iiNumbr),
output viFcReturnSuper (oiReturnStatus)) in BNumber>
end.
if viFcReturnSuper < 0 or
oiReturnStatus = 0
then assign oiReturnStatus = viFcReturnSuper.
if oiReturnStatus < 0
then return.
end.