Tuesday, July 21, 2015

Major change in Cash Sale Document Numbering in version 5.

Hi Everyone,

If you were using Cash Sale screen in AR module in versions below 5.XX, you may have noticed that running number for the Document was generated based on AR Payment ID sequence.

Starting from version 5 the numbering sequence had changed to be AR Invoice ID Numbering for that type of document.

However, if you still wish to retain the existing order for your document numbers, you need to apply а customization below.

1. Create public class under your customization project for CashSales screen:




2. Change the field attribute to use the above class:


3. Save and Publish the customization.

From now on, Cash Sale Numbering will be taken from ARPayment sequence, as it was before.


Please note the same approach can be used for any AutoNumbering customizations in Acumatica.

All the best,

Sergey.

Monday, July 20, 2015

Debug in version 5.1. Finally it works!

Hi Guys,

Quick post today.
It seems that application debugging in version 5+ is not an easy task.

What to do to achieve it:

1. Make sure Application pool is in Classic mode, not Managed Pipeline Mode.

2. Make sure you added below highlighted in Red setting in web.config:

<compilation debug="True" defaultLanguage="c#" numRecompilesBeforeAppRestart="9999" targetFramework="4.5.1">

3. Also add this key to web.config into appsettings section:

<add key="UseRuntimeCompilation" value="False" /> 

4. Make sure you have installed Visual Studio 2012, .NET 4.5.1, and .NET 4.5.1 Multi Targeting Pack

5. No need to install Acumatica Framework :)

6. Create New Extension Library (Dummy One) under Customization Project Editor. This will create a solution link for Visual Studio.

7. Open Visual Studio. Navigate to App_Code/Caches.

Here we are :) Attach to the process and Enjoy.

All the best,

Sergey.