Importing Invoices from the Command Line

You can run the Import Invoices function from the command line, which enables you (for example) to run it from a batch file or scheduling program.

Note: Command-line parameters are not provided for the Import Invoices function's Update Comment Data option.

To import from the command line, run the following command:

gblware /import -p "keyword=value;keyword=value"

Parameters (in double-quotes following –p) are optional. They are described in the section below.

Parameters

You can specify parameters that are the equivalent of the options for importing. Y means selected; N means not selected.

Option Keyword Values Default Value (if not specified)

Mark all invoices posted to GL

Posted

Y or N

N

Mark all invoices paid in full

Paid

Y or N

N

Error checking on duplicate invoice numbers

Dupes

Y or N

N

Error checking on invoices in a closed period

Closed

Y or N

N

Store NOACCT for invalid customers

Noacct

Y or N

N

Store NOPROV for invalid providers

Noprov

Y or N

N

Store group data

Group

Y or N

N

Address from account ID or comments

Address

A or C

A

File location

Path

valid path

...\Gblware\db (you indicated where the Gblware folder should be located when you installed GlobalWare)

Send report to file format (ASCII or RTF)

Log

A or R

R

Allow Group Segment Updates

GSeg

Y or N

N

Allow Invoice Segment Updates

ASeg

Y or N

N

Allow Invoice VOIDs

Void

Y or N

N

Add New Bookings

Add

Y or N

N

Update Existing Bookings

Update

Y or N

N

Do not Update with Zero

Zero

Y or N

N

Two other parameters are available for command line only:

Keyword Values Default Function

ShowParams

Y or N

N

Displays a window with values that will be used (if specified; otherwise, the default) before processing begins.

ShowComplete

Y or N

N

Displays a "complete" message when the processing has finished.

For example:

gblware /import -p "group=y;address=c;log=a"

This command line will store group data, get passenger address from comment lines 106-109, and generate the import log files in ASCII format.

Notes