Serial selection dialog. Different ordering  Topic is solved

Discussions relating to Jiwa 7 plugin development, and the Jiwa 7 API.

Serial selection dialog. Different ordering

Postby DannyC » Thu Dec 02, 2021 10:39 am

Pretty sure the current serial selection dialog is sorted by DateIn by default.

Is it possible to sort by other fields, ideally Expiry Date?
But I can see possibilities for BinLocationDesc, Quantityleft, LCostIn.

How could we do this?
User avatar
DannyC
Senpai
Senpai
 
Posts: 718
Joined: Fri Mar 22, 2013 12:23 pm
Topics Solved: 31

Re: Serial selection dialog. Different ordering  Topic is solved

Postby Mike.Sheen » Wed Jan 19, 2022 3:51 pm

The serial selection dialog has a property, SerialDisplaySortOrder.

The type of that property is an enumeration:

Code: Select all
Public Enum SerialDisplaySortOrders
    e_SerialSortOrderDateIn = 0
    e_SerialSortOrderSerialNo = 1
    e_SerialSortOrderExpiryDate = 2
End Enum


Places where that dialog is displayed will set that property based on their own relevant system settings.

For example, Sales Order Entry has a property "SerialDisplaySortOrder" - it sets the serial dialogs "SerialDisplaySortOrder" to be that value.

So in sales orders, you can override the order to be Expiry order simply by:

Code: Select all
SalesOrder.SystemSettings.SerialDisplaySortOrder = e_SalesOrderSerialSortOrderExpiryDate


Or you can get the customer to change their "SerialDisplaySortOrder" on the Invoicing tab of System Configuration - this will achieve the same thing.
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2583
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 807


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 2 guests