Solved

Add info to sales order details grid

  • 7 October 2021
  • 5 replies
  • 234 views

I want to add info to the bottom of the Sales Order - Details grid based on the selected row’s inventory ID. Need to be able to display the last sale price and discount fields for the order’s customer and the line’s item. Is this possible? I drew in where I would like for the info to go.. Thanks in advance

 

 

icon

Best answer by Naveen Boga 7 October 2021, 02:45

View original

5 replies

Userlevel 7
Badge +17

Hi @ryanmoon32  Yes, it is possible with small customization. 

Please find the sample code below.

 

public virtual void SOLine_Availability_FieldSelecting(PXCache sender, PXFieldSelectingEventArgs e, PXFieldSelecting invokeBaseHandler)
{
invokeBaseHandler(sender, e);

// add logic to bring the Sales Price

//var lastSalesPriceValue = GetLastSalesPrice();

e.ReturnValue = "Last Sales Price" + lastSalesPriceValue;

}

 

Yes this is exactly what I was looking for thank you very much @Naveen B 

And inside of the GetLastSalesPrice method, is there a way to do a direct SQL call or am I forced to do a PXSelect type command?

Userlevel 2
Badge

Hi @ryanmoon32  Yes, it is possible with small customization. 

Please find the sample code below.

 

public virtual void SOLine_Availability_FieldSelecting(PXCache sender, PXFieldSelectingEventArgs e, PXFieldSelecting invokeBaseHandler)
{
invokeBaseHandler(sender, e);

// add logic to bring the Sales Price

//var lastSalesPriceValue = GetLastSalesPrice();

e.ReturnValue = "Last Sales Price" + lastSalesPriceValue;

}

 

@Naveen Boga i have similar ideas, can you share more about how to make it happen, how do i use the code.

 

Thank you 

Userlevel 7
Badge +17

@jay13  Can you please explain what is the requirement?

If it is the same as above, you can extend the SOOrderEntry Graph, and add the above so that information will be displayed on the Grid Footer.

 

Userlevel 2
Badge

@jay13  Can you please explain what is the requirement?

If it is the same as above, you can extend the SOOrderEntry Graph, and add the above so that information will be displayed on the Grid Footer.

 

@Naveen Boga sorry i am quite new to customization, do you here ? (ingore the project name)

 

 

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved