Receive Date for Purchase Orders

adaml
Mega Expert

I'm trying to figure out how to enhance the Asset Receiving Form when receiving items from a PO. I'd love to be be able to specify the 'Received Date' in this form, so that I don't have to go back into the Assets once they've been created and update the Received Date to the *actual* dates they were received. This page seems to be dynamically generated and therefore difficult to track down/understand where to even begin modifying it to capture the received date.

find_real_file.png

Does anyone have any pointers on modifying this page?

6 REPLIES 6

Community Alums
Not applicable

Adam,


Just to be clear, you are talking about updating the Received value on the Purchase Order Line, correct? There isn't a similar value on the Asset itself. Is this something that comes up for you quite often, needing to set a different date received than the current date? The Receive page is a UI Page, and it is not very pleasant to update, so I'm curious if you see this a lot or if it is something where an alternate approach might be a better fit.


Thanks,


Ben


Hi Ben, thanks for the reply. There is a field on alm_asset labeled "Order Received" (delivery_date). This is the field that ideally we'd want to set on the Asset itself via the same form that we would specify the Asset Tag and Serial Number.This would allow us to track the date that that Asset was received.



Hopefully that makes sense?



Thanks!


Community Alums
Not applicable

Ok. I found it. It does not display by default. A couple quick thoughts here as I look at this:


  • Do you have a need to enter a different date than the current date? For example, are you entering receipt in the system on different days than you actually receive the items? If no, there shouldn't be a need to have this information added separately.
  • There is a field that does display by default in the Financial form section that shows the Received date from the Receiving Line on the PO. This gives you the information you are looking for without essentially duplicating it in another field on the asset record.
  • If you still want to use the Order Received field and you are working off the current date, you could create a quick Business Rule to copy the Received date to the Order Received field. I have a feeling this does not display, though, because it was deprecated in favor of the Received information directly on the PO.


Ben


Hey Ben, thanks again. To your first and third bullet points, Yes -- the actual received date may not be the same date that is is marked received in SN, so we wanted to be able to edit it at time of receiving. I think given the information you provided a Business Rule wouldn't work, because the the Date of the Receiving Line is the current date, and that's not always what we want.



Any idea what the UI Page is called? When I look at the UI Action for the "Receive" button, I see the following:



function openPOReceivePage() {


  var poSysid = g_form.getUniqueValue()



  var url = new GlideURL('$po_receive.do');


  url.addParam('sysparm_stack', 'proc_po.do?sys_id='+poSysid);


  url.addParam('sysparm_po_sysid', poSysid);


  url.addParam('sysparm_nostack', 'true');


  window.location.href = url.getURL();


}



But doesn't indicate the UI Page. This UI Action seems highly abstracted to me, I can't seem to get to the bottom of where I'd even begin to add the field I'm looking for.