Invoice sales invoices (Command Line Utility)

Via the GENERATESALESINVOICE action you can invoice the packing slips reported ready.

Note:

This command line is only available if Profit Order management is included in your licence.

Data

 

Action:

GENERATESALESINVOICE

General options:

Default.

Extra parameters:

/D"Number of days": invoice date

/S"Number of days": packing slip from date, optional

/E"Number of days": packing slip to date, optional (when using E, you must also use S)

/A"Number": packing slip from date, optional

/B"Number": packing slip to date, optional

/N"Number": packing slip from number, optional

/Y"Number": packing slip to number, optional

/F:"From debtor number": from debtor number, optional

/H"To debtor number": to debtor number, optional

/V"Method": Collection method, optional; everything will be invoiced if you do not enter a collection method.

Examples:

Invoice all the packing slips up until today, with today as the invoice date:
"C:\Program files (x86)\Profit\AFAS Windows\Kernel\Bin\AFASCMD.EXE"/O"Environment name " /G"Username" /W"Password" /L"C:\logfile.txt" LOGISTICS /P"GENERATESALESINVOICE" /D"0"

Invoice all of the past week's packing slips, with tomorrow as the invoice date, using collection method 10:
"C:\Program files (x86)\Profit\AFAS Windows\Kernel\Bin\AFASCMD.EXE"/O"Environment name " /G"Username" /W"Password" /L"C:\logfile.txt" LOGISTICS /P"GENERATESALESINVOICE" /P"INVOICE" /D"1" /S"-7" /E"0" /V"10"

Error handling / checks:

The collection method entered must exist, otherwise you will get the error message:

Collection method <X> unknown in the environment. The process could not be started.

See also