Message Boards

how to find work order no associated with a GL labor posting

Stephen Lee, modified 3 Years ago.

how to find work order no associated with a GL labor posting

Post Date: 11/7/18 (Bronze, 17 Posts) Recent Posts
Labor and Burden entries to the GL do not identify the Work Order Number.  How to get that easily?
2017/05 5/1/2017 SYSTEM/0000002991 100 VAR-POST 14348  
Francis Malengier, modified 7 Years ago.

Re: how to find work order no associated with a GL labor posting

Post Date: 11/8/18 (Bronze, 13 Posts) Recent Posts

Hi,

This is what I did in a browse (gl916, unposted transaction browse), but it can also be applied to all gl entries.

In the browse I defined a function in the local variables :

Function GetReferringDoc returns character (input  parTransType as character, input parReference as character).
define variable returnDoc as character.
returnDoc = "N/A".

if parTransType = "WO" then do:

  for first opgl_det no-lock where opgl_domain = global_domain and opgl_gl_ref = parReference,
       first op_hist no-lock where opgl_domain = op_domain and opgl_trnbr = op_trnbr:
    returnDoc = op_wo_nbr.  
  end.
end.
if parTransType = "IC" then do:
  for first trgl_det no-lock where trgl_domain = global_domain and trgl_gl_ref = parReference,
       first tr_hist no-lock where trgl_domain = tr_domain and trgl_trnbr = tr_trnbr:
    returnDoc = tr_nbr.  
  end.
end.
     
return returnDoc.
end function.

then I added a caclulated field using this function :

GetReferringDoc (glt_tr_type, glt_ref)

 

I hope this can help you.

 

kr,

Francis

 

thumbnail
Phill Norrey, modified 7 Years ago.

Re: how to find work order no associated with a GL labor posting

Post Date: 11/8/18 (Yoda, 1010 Posts) Recent Posts
Labor and burden transactions are stored in the op_hist.  Have you tried running Operations Accounting Report?  Depending upon which version of QAd you are using it will either be at menu 17.13.10 or in EE it will be at 16.20.13.10

Message place holder