Invoice purchase invoices (Command Line Utility)

Via the GENERATEPURCHASEINVOICE action you can create purchase invoices for the local environments based on the sales invoices.

Note:

This command line will only be available if the Central invoicing condition is present in your licence.

Data

 

Action:

GENERATEPURCHASEINVOICE

General options:

Default.

Extra parameters:

/S"Number of days": from invoice date, optional

/E"Number of days": to invoice date, optional

/N"Invoice number": from invoice number, optional

/Y"Invoice number": to invoice number, optional

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

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

/I"Identification number": bakery from number, optional: only for Central invoicing

/J"Identification number": bakery to number, optional: only for Central invoicing

 

Examples:

Create purchase invoices for all the invoices for which no purchase invoice has been created:

"C:\Program files (x86)\Profit\AFAS Windows\Kernel\Bin\AFASCMD.EXE"/O"Environment name " /G"Username" /W"Password" /L"C:\logfile.txt" LOGISTICS /P"GENERATEPURCHASEINVOICE" /S"0" /E"0"

Create purchase invoices for all of the past week's invoices:

"C:\Program files (x86)\Profit\AFAS Windows\Kernel\Bin\AFASCMD.EXE"/O"Environment name " /G"Username" /W"Password" /L"C:\logfile.txt" LOGISTICS /P"GENERATEPURCHASEINVOICE" /D"1" /S"-7" /E"0"

Also see