I am trying to use the console API for Vendor invoices to set up our
initial inventory. The script below fails with:
You are logged out! <p><a href=login.pl target=_top>Login</a>
---------
./ir.pl "
path=bin/mozilla&
login=william&
password=my_passwd&
action=Post&
vc=vendor&
type=invoice&
vendor=My Company&
oldvendor=My Company--24092&
vendor_id=24092&
AP=2100--Accounts Payable&
currency=USD&
defaultcurrency=USD&
invnumber=123&
transdate=01-25-2007&
duedate=01-25-2007&
runningnumber_1=1&
partnumber_1=RZ22-4&
description_1=Ring, Terminal, 26-22&
qty_1=1&
sellprice_1=14.92&
oldcurrency=USD&
id_1=10713&
notes=Invoice posted from the command line&
AP_paid=1060--Checking Account&
paidaccounts=1&
datepaid_1="01-25-2007"&
rowcount=2
"
-------
Any ideas about what is wrong?
Thanks,
Wm
|