Printing Actual Date on Item Label

Sometimes it is needed to print current date on the Item Label (for example when food is sold). This solution is applicable to Basic PDF Layout. 

Solution
  1. Create Item Field
    1. Navigate to Customization Lists, records, & Fields Item Fields New
    2. Label: Enter Label
      Example: Current Date
    3. ID:Enter ID
      Example: _current_date
    4. Field Type:Select Free-Form Text
    5. Store Value:Remove Checkmark
    6. Show in List:Enter Checkmark
    7. Click Applies To
      • Relevant Item Types:Enter Checkmark
    8. Click Display
      • Subtab: Select Main
      • Display Type:Select Normal
    9. Click Validation & Defaulting
      • Default Value:Enter to_char(current_date,’mm/dd/yyyy’)
      • Formula: Enter Checkmark
    10. Click Save
  2. Add Item Field to Basic PDF Layout
    1. Navigate to Customization Forms Transactions Form PDF Layouts
    2. Standard Item Label Layout:Click Customize
    3. Click Add Custom Element
    4. Element Name:Enter Date
    5. Show Label:Enter Checkmark if the element should be printed on label
    6. Element text area: Enter {‌custitem_current_date}
      Note1: Or ID given in step 1.3.
      Note2: You can also find the field in the list of fields on the left side.
    7. Click OK
    8. Adjust the position of the element by drag and drop feature
    9. Layout Is Preferred: Enter Checkmark
    10. Click Save

Leave a comment

Your email address will not be published. Required fields are marked *