project QadFinancials > class BCInvoice > method DefaultValuesTaxEnv

Description

default the tax environment


Parameters


icShipToTaxZoneinputcharacterTax Zone of the Ship To Address
icShipFromTaxZoneinputcharacterTax Zone of the Supplier Address
icTaxClassinputcharacterTax Class of the supplier
ocTxenvTaxEnvoutputcharactertax environment
oiReturnStatusoutputintegerReturn status of the method.


Internal usage


unused


program code (program3/bcinvoice.p)

if icShipFromTaxZone = ?
then assign icShipFromTaxZone = "":U.

if icShipToTaxZone = ?
then assign icShipToTaxZone = "":U.

if icTaxClass = ?
then assign icTaxClass = "":U.

assign vhFcComponent = ?.

<M-1 run GetTaxEnvironment
   (input  true (ilStartAndOpenPGTM), 
    input  icShipFromTaxZone (icShipFromTaxZone), 
    input  icShipToTaxZone (icShipToTaxZone), 
    input  icTaxClass (icTxclTaxCls), 
    output ocTxenvTaxEnv (ocTxenvTaxEnv), 
    output viFcReturnSuper (oiReturnStatus)) in BVAT>

if viFcReturnSuper < 0 or
   oiReturnStatus  = 0
then assign oiReturnStatus = viFcReturnSuper.