project QadFinancials > class BDInvoice > method DefaultValuesTaxPointDate

Description

Called from UI when the Tax point date changes


Parameters


icCurrencyCodeinputcharacter
itDInvoicePostingDateinputdate
icOwnVatCurrencyCodeinputcharacter
itDInvoiceTaxPointDateinputdate
odDInvoiceExchangeRateoutputdecimal
odDInvoiceRateScaleoutputdecimal
odDInvoiceVatExchangeRateoutputdecimal
odDInvoiceVatRateScaleoutputdecimal
oiReturnStatusoutputintegerReturn status of the method.


Internal usage


unused


program code (program3/bdinvoice.p)

if itDInvoicePostingDate = ? or itDInvoiceTaxPointDate = ?
then return.

<M-56 run DefaultValuesCurrency
   (input  icCurrencyCode (icCurrencyCode), 
    input  ? (iiCurrencyId), 
    input  itDInvoicePostingDate (itDInvoicePostingDate), 
    input  icOwnVatCurrencyCode (icOwnVatCurrencyCode), 
    input  itDInvoiceTaxPointDate (itDInvoiceTaxPointDate), 
    output odDInvoiceExchangeRate (odDInvoiceExchangeRate), 
    output odDInvoiceRateScale (odDInvoiceRateScale), 
    output odDInvoiceVatExchangeRate (odDInvoiceVatExchangeRate), 
    output odDInvoiceVatRateScale (odDInvoiceVatRateScale), 
    output viFcReturnSuper (oiReturnStatus)) in BDInvoice>
if viFcReturnSuper < 0 or (viFcReturnSuper > 0 and oiReturnStatus = 0)
then assign oiReturnStatus = viFcReturnSuper.
if viFcReturnSuper < 0
then return.