project QadFinancials > class BDInvoice > method PostTaxCommit


Parameters


oiReturnStatusoutputintegerReturn status of the method.


Internal usage


unused


program code (program1/bdinvoice.p)

assign oiReturnStatus = 0.

if viPGTM10ID = 0 or
   viPGTM10ID = ?
then do:   
    <I-63 {bFcStartAndOpenInstance
         &CLASS                = "PGTM"}> 
end.
else do:
    <I-31 {bFcOpenInstance
         &CLASS           = "PGTM"}> 
end.

<M-7 run PostTaxCommit
   (input  tDInvoiceAvaPostTaxRequest (tAvaPostTaxRequest), 
    output tDinvoiceAvaReturnMessage (tAvaReturnMessage), 
    output viFcReturnSuper (oiReturnStatus)) in PGTM> 

if viFcReturnSuper <> 0
then assign oiReturnStatus = viFcReturnSuper.
    
<I-12 {bFcCloseInstance
     &CLASS           = "PGTM"}>