Sage MAS 90 and 200 Sage MAS 500 blogs Product Feedback Support Training
Reply
Contributor
glad
Posts: 46
Registered: 02-01-2009
0

Customize default Cash Sale

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!!

Sage MAS Partner
CNAPUE
Posts: 1
Registered: 01-12-2011
0

Re: Customize default Cash Sale

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

www.facebook.com/blythecollc

www.twitter.com/blythecollc

solutions@blytheco.com

(800) 425-9843 x2500


 

Sage Employee
bretR
Posts: 57
Registered: 10-28-2008
0

Re: Customize default Cash Sale

[ Edited ]

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!

Bret Richion
Sage