- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Customize default Cash Sale
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-12-2011 11:00 AM
I'm using MAS90 version 4.4
In the S/O Invoice Data Entry - Is it possible to use a VB script to set the Invoice Type to defualt to "Cash Sale Invoice"? If so how can this be done? Has anybody created a script for this?
Note: The default values at the Next Invoice No., Invoice Date, Invoice Type, and Ship Date fields are not saved for future sessions.
Thanks!!
Re: Customize default Cash Sale
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-12-2011 01:41 PM
Hello and thank you for your question!
Depending on the method, it is possible. Try using the Business Object Interface to initiate the SO Invoice Object. When doing this, you can set as many values as you want. Examples are citied in the Sage MAS 90/200 Business Object Interface Manual. For that matter, I believe there is an SO Invoice example.
Does this help?
If you have more questions or need specific information, do not hesitate to contact us at solutions@blytheco.com or by visiting http:://www.blytheco.com. You can access our MAS 90 page from here as well by clicking on 'Products'.
Best of luck to you,
Blytheco Team
solutions@blytheco.com
(800) 425-9843 x2500
Re: Customize default Cash Sale
[ Edited ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-14-2011 10:18 AM - last edited on 01-14-2011 10:34 AM
Hello Glad, glad you asked :-)
I assumed you want to change/default the InvoiceType$ on new invoices only so I put the oBusObj.EditState condition on your example:
If oBusObj.EditState=2 Then ' new records only
oBusObj.SetValue "InvoiceType$","CA"
End If
I just attached this script to the "Table - Post-Read" event for the SO Invoice Header table.
That's it!
(oh, and I had to use the File Layouts to find the correct data value (below) for "Cash Sale Invoice" type)
3 InvoiceType 2 SYN Invoice Type - Valid:CM,DM,IN,AD,FC,CA,XD
Notes: CM=Credit Memo, DM=Debit Memo, IN=Invoice, AD=Adjustment,
FC=Finance Charge, CA=Cash, XD=Deleted
Hope this helps!
Sage


