- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
VI add a line to AP invoice after import
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
07-26-2010 12:58 PM
Hi all...
I am importing into AP Invoice entry. this is for commissions (to non-employees) of sales through a different system. some of the payees receive a standard advance (set amount). to minimize work (and prevent overpayment) my thought was to add a line to the payee's invoice created in MAS with a negative amount. but how can I do that? that data is not on the import file.
any thoughts?
IT Manager
Granitize Products inc
Re: VI add a line to AP invoice after import
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
07-26-2010 01:03 PM
oops... sorry sent this twice
IT Manager
Granitize Products inc
Re: VI add a line to AP invoice after import
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
07-28-2010 11:29 AM
Answered in previous thread...copied here too.
If you want to do this through the import it would have to be in the file.
The other option would be to go into AP Invoice Data Entry after the import and manually add the negative amount.
MAS200 Ver. 4.4 PU6
Re: VI add a line to AP invoice after import
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
08-02-2010 04:23 PM
JOE-B,
If you are running v4.40 this is possible using User-defined scripts in Custom Office. See the sticky post at the top of this board for some video demonstrations. Not knowing exactly what you are trying to do, you have the ability to tie some VB script to an event called PreTotals() at the table level for the AP_InvoiceHeader table. In here you could check for whatever condition triggers the need to add the line. By condition, I mean it could be if the Vendor code (payee) is a certain type or code, or maybe if the MAS user logon is the one setup to run the VI job then invoke the logic to add a new line. Also not sure where the amount comes from, but perhaps it could be stored in a User-Defined table, if it is always the same hard coded amount, then this could be put right into the script.
By putting this script against the PreTotals() event, it would fire in data entry as well since it happens against the business object. This is the reason you would need to condition when the logic to add the new line fires, unless of course you wanted this logic to fire even during data entry.
Hope this helps.
Steve


