project QadFinancials > class BCInvoice > method DefaultWHTDataBasedOnCInvoiceSpecific

Description

DefaultWHTDataBasedOnCInvoiceSpecific: This method is a sub-method of DefaultWHTDataBasedOnCInvoice and can be used to implement specific calculation of the fields in the instanceless input-output temp-table tDefaultWHTData.
At the moment this method is executed you have exactly 1 tDefaultWHTData records available as well as all other data that you might need to do calculations and change the values of the fields in the record.


Parameters


oiReturnStatusoutputintegerReturn status of the method.


Internal usage


QadFinancials
method BCInvoice.DefaultWHTDataBasedOnCInvoice


program code (program6/bcinvoice.p)

    
    /* ================================================================================================================================ */
    /* DefaultWHTDataBasedOnCInvoiceSpecific: This method is a sub-method of DefaultWHTDataBasedOnCInvoice and can be used to implement */
    /* specific calculation of the fields in the instanceless input-output temp-table tDefaultWHTData.                                  */
    /* At the moment this method is executed you have exactly 1 tDefaultWHTData records available as well as all other data that you    */
    /* might need to do calculations and change the values of the fields in the record.                                                 */
    /* This method won't contain any program-code by default                                                                            */
    /* ================================================================================================================================ */
    /* Available records (no find or for-each on these table should be done in this method):                                            */
    /*  - tDefaultWHTData: Record of the instanceless input-output temp-table of the parent-method with all fields already filled       */
    /*  - CInvoiceForWHTDefaulting: Record holding the main data of the invoice itself and one of its underlaying CInvoiceWHT records   */
    /*                              Note that the even if the CInvoice has multiple underlaying CInvoiceWHT-records, only one           */
    /*                              CInvoiceForWHTDefaulting-record is available here.                                                  */
    /*                              Note that the data of tables Vat and Tx2_mstr in this CInvoiceForWHTDefaulting-record is only       */
    /*                              one of these records associated with this CInvoice and its CInvoiceWHT                              */
    /* ================================================================================================================================ */
    /* Available temp-tables (you still have to read the records in these temp-tables but the data is already there):                   */
    /*  - tqWHTByCInvoice: All existing WHT-records associated with this invoice                                                        */
    /* ================================================================================================================================ */