Invoice processing (Command Line Utility)

A group of commands allows you to perform the processing of invoices in central invoicing as a 'black box'. You can choose between performing the direct invoices or the weekly invoices.

Before executing the command line, first determine which invoice date you want to include as a parameter for invoicing.

In the call for the command lines, the log file name should be unique for each call (by using a date), as a result of which the command line will check if any errors have occurred after performing a step (a log file will then have been created).

The following steps are checked:

  • correct reading and processing of the master data
  • recalculating and reporting the packing slips ready
  • invoicing

If any of these steps has failed, the following steps are not performed.

Step and description

Command line

1. Read and process master data

COMMRECEIVE /M" <ID>" /C"CBP"

COMMPROCESS /T"OBP"

COMMPROCESS /T"BBP"

COMMPROCESS /T"TBP"

COMMPROCESS /T"RBP"

COMMSEND /M"<ID>" /C"CBP"

2. Process packing slips

COMMPROCESS /T"BCF"

3. Invoice again

SALESREINVOICE

4. Recalculate and report packing slips ready

RECALCDELIVERYNOTE /G

5. Invoice

Direct invoices:

GENERATESALESINVOICE /C"<date>" /V"0"

Weekly invoices:

GENERATESALESINVOICE /C"<date>" /V"1"

6. Print and mail invoices

PRINT /I /F"<debtor number>" /H"<debtor number>"

Print extra reports and invoices per debtor according to batch

7. Prepare and send 'EDI' invoices

 

 

7. Prepare and send invoices

QUEUEINVOICES /T"B"

See also