Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents

Simple Script to capture the Code into a UDID:

//Cost Allocation Code

var x=UserPnrData.UserBooking.CostAllocations.Allocation.Code;

...

{out.print("5.Z*UD61 " + x);}}

Simple Script to capture the Name into a UDID:  NOTE: if you have a Parent/Child relationship, we can ONLY capture the Child Name.

//Cost Allocation Name

var x=UserPnrData.UserBooking.CostAllocations.Allocation.Name;

...

{out.print("5.Z*UD62 " + x);}}


Sample of a Nested Cost Allocation: Project Number = Parent and Task Number = Child or Nested Allocation

//UDID 3 - Project Number (Placeholder)

...

{out.print("5.S*UD4 PENDING DEEM" + "\n" + "5H-UD4 PENDING DEEM" );}}

 

Sample of a Non-Nested/Single Cost Allocation field:

 //UD 5 Project Cost Allocation/Project Code

...

{out.print("5.S*UD5 " + w );}

Non-Nested/Single Cost allocation field using UDID or using Remark

Sample of a Cost Allocation Project Code

//Cost Allocation/Project Code

...

{out.print("5.S*UD1 " + x);}}   

 Sample of a Project Code Remark

//Cost Allocation/Project Code remark

...

if(((UserPnrData.DataType=="new")||(UserPnrData.DataType=="purchase_hold"))&&(e!=undefined)){out.print("5H-UD1 " + e);} 

Cost Allocation Name and Code written to 1 script:

 //UD18/UD145  Project Cost Allocation/Project Code & Name

...