Re: Add Sort Order to purchase orders
Posted: Mon Jun 04, 2018 6:54 pm
Hi Danny,
Here's what I did for purchase orders that should fix your issue, if and when you need to use multiple fields.
I would also add in hours, minutes and seconds as you suggested which should allow duplicates for the same day to work.
Here's what I did for purchase orders that should fix your issue, if and when you need to use multiple fields.
- Code: Select all
purchaseorder.SortOrders.Add(new JiwaFinancials.Jiwa.JiwaApplication.IJiwaNavigable.SortKey {
Description = "Creditor Name",
FieldName = "CR_Main.Name+PO_Main.OrderNo",
SortFieldValueMethod = delegate() { return purchaseorder.Creditor.Name + purchaseorder.OrderNo; }
});
I would also add in hours, minutes and seconds as you suggested which should allow duplicates for the same day to work.