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> for each tBill where tBill.tc_Status = "N":U and tBill.BillNumber <> 0 and tBill.BillNumber <> ? : assign vhFcComponent = ?. if icDraftReference = "":U then do: <M-35 run ReleaseNumber (input tBill.Company_ID (iiCompanyId), input tBill.BillYear (iiNumbrYear), input 'BILLING' (icNumbrType), input tBill.BillNumber (iiNumbr), input viFcCurrentInstanceId (iiInstanceId), input vcFcComponentName (icClassName), output viFcReturnSuper (oiReturnStatus)) in BNumber> end. else do: <M-37 run StoreNumber (input tBill.Company_ID (iiCompanyID), input tBill.BillYear (iiNumbrYear), input 'BILLING' (icNumbrType), input tBill.BillNumber (iiNumbr), output viFcReturnSuper (oiReturnStatus)) in BNumber> end. if viFcReturnSuper < 0 or (viFcReturnSuper > 0 and oiReturnStatus = 0) then assign oiReturnStatus = viFcReturnSuper. if oiReturnStatus < 0 then return. End.