Development notes

Two changes were done in the LS One 2019 SP2 that developers should look at specifically.

The development pack for LS One 2019 has been updated to include all of the changes done for LS One 2019 SP1 and SP2

ONE-9970 - Error when selecting to do line discount % in some cases

When working on this issue we found that the caching mechanism in LS One is vulnerable when a "temporary connection" is created and used in the POS functionality. In the standard functionality this is done in TransactionService -> ConcludeTransaction (line 211). The change that was done is done in line 264 where the data connection associated with the cache is reset to be the "normal" database connection.

 

Any time a customization that requires a temporary connection to be created this resetting of the database connection in the cache needs to be done as well

 

ONE-9966/LSTS-6634 - Added transaction parameter to TenderService -> IsTenderAllowed to allow for better customization of tender restrictions.

The function IsTenderAllowed now also has the current transaction as a parameter. This does not affect the standard functionality of this function but was added to assist with any customizations needed when doing calculations for tender restrictions.