Generate packing slips (Command Line Utility)

Command line for converting sales orders to packing slips.

Note:

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

If you are not using Multiple warehouses, the M parameter is skipped.

Data

 

Action:

GENERATEDELIVERYNOTE

General options:

Default.

Extra parameters:

/A“Date”: from delivery date, optional

/B“Date”: to delivery date, optional

/C“Date”: packing slip date, optional

/D“Number of days”: packing slip date, optional

/E“Number of days”: to delivery date in relation to current date, optional

/F“From debtor number”: from debtor number, optional

/G: immediately report ready, optional

/H“To debtor number”: to debtor number, optional

/I"Priority to”: optional

/K“Delivery type ID to”: delivery type to, optional

/L“Delivery type ID from”: delivery type from, optional

/M“Warehouse”: a warehouse from the table of warehouses

/N: Ignore/skip zero lines, optional; by default zero lines are not skipped.

/O: copy lines already delivered, optional

/S“Number of days”: from delivery date in relation to current date, optional

/U"Priority from”: optional

/V“Number of days”: from order date in relation to current date, optional

/W“Number of days”: to order date in relation to current date, optional

/X“Date”: from order date, optional

/Y“Date”: to order date, optional

/Z: copy undeliverable lines, optional

Example:

Generate packing slips for entire warehouse:
"C:\Program files (x86)\Profit\AFAS Windows\Kernel\Bin\AFASCMD.EXE"/O"Environment name " /G"Username" /W"Password" /L"C:\logfile.txt" LOGISTICS /P"GENERATEDELIVERYNOTE" /M"01"

Generate packing slips with priority 1 to 10, also copy undeliverable lines and immediately report packing slips ready:
"C:\Program files (x86)\Profit\AFAS Windows\Kernel\Bin\AFASCMD.EXE"/O"Environment name " /G"Username" /W"Password" /L"C:\logfile.txt" LOGISTICS /P"GENERATEDELIVERYNOTE" /M"01" /U"1" /I"10" /Z /G

Error handling / Checks:

The warehouse specified must exist, otherwise you will get the error message:

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

The delivery type specified must exist, otherwise you will get the error message:

Delivery type <X> unknown in the environment. The process could not be started.

See also