Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Negative line item unit price via API

Status
Not open for further replies.

pauls22

Programmer
Dec 6, 2009
2
CA
Hi,

I have some VBA code that inserts an invoice into ACCPAC. Everything has worked fine for several years. Now there is a requirement for adding a line item that is a rebate/credit (negative amount).

Is there a means of setting a negative amount as the unit price via the API? When I try to pass a negative number, an error occurs.

Ideally, the line item details show up as a negative "unit price" with a quantity of 1/one.

Thanks.
 
Duh! That's not an invoice, that's a credit note.

You need to be working with the OECRD* views, not the OEINV* views.

 
Hi Tuba2007,

Thanks for taking the time to reply. I might be wrong in the views that I am using but I need to issue an invoice as the "credit" can only be applied to new purchases. On the invoice they would like the existing credit displayed as a negative amount. This will allow the subtraction to be shown.

Is this possible in an invoice only? Or are you saying that I will need to create both an invoice and credit?

Thanks.
 
Record a macro of the process that you're trying to accomplish. Then review the code and go from there and 99% of the time you'll have the code you need.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top