Diagnostic: apspin - Log to detect when blank invoice numbers are generated
This diagnostic is used to log information to try and ascertain if/when AP Invoice Posting outputs a zero value transaction with no invoice number.
Viewer Information
A maximum of two lines of information per transaction are shown in the viewer. 
The first line is generated at the time that the routine to start inserting information into the database is initiated. It will be written for all types of transactions i.e. credit notes, invoices etc. It contains the following information:
Routine = XXXXXX  (indicates the COBOL paragraph that the program was in when the log was created)
D-S-FR-MG: XXXXXX (contents of D-S-FR-MSG when the log was created)
Invoice: XXXXXX (invoice number associated with the transaction)
Supplier: XXXXXX (supplier associated with the transaction)
Amt: 9999.99 (value of the transaction)
Restab: Y or N (indicates if re-establishing an invoice)
On hold: Y or N (indicates if invoice has been placed on hold)
Transaction: X (indicates the transaction type of the transaction e.g. Invoice, Credit note)
The second line is generated immediately prior to the invoice being written to the database. It is only created for 'invoice' transactions. It contains the following information:
Routine = XXXXXX  (indicates the COBOL paragraph that the program was in when the log was created)
D-S-FR-MG: XXXXXX (contents of D-S-FR-MSG when the log was created)
Invoice: XXXXXX (contents of the field 'Invoice' on the ApInvoice table)
Supplier: XXXXXX (contents of the field 'Supplier' on the ApInvoice table)
Jnl: 999999 (contents of the field 'Journal' on the ApInvoice table)
Amt: 9999.99 (contents of the field 'OrigInvValue' on the ApInvoice table)