Update lot attribute templates from hierarchy
Lot attribute templates of multiple items or item categories can be updated from a lot attribute hierarchy template in a single run. The allowed values of the hierarchy attribute lines can be refreshed, a different hierarchy template can be assigned, or the hierarchy template can be removed, without opening the Lot Attribute Template page of each item or item category.
Prerequisites
Before updating lot attribute templates from a hierarchy template:
- Set up the lot attribute hierarchy template. For more information, see Set up lot attribute hierarchy templates.
- For a refresh, apply the hierarchy template to the items or item categories. For more information, see Apply hierarchy templates to item or item category lots.
- Make sure that the items are lot tracked. Items that are not lot tracked are skipped.
Update lot attribute templates
-
Select the Search icon
, enter Update Lot Attribute Templates from Hierarchy, and then choose the related link.
The Update Lot Attribute Templates from Hierarchy page opens. -
On the Options FastTab, enter the required information in the following fields:
Field Description Update Select whether the lot attribute templates of items or of item categories are updated. The available options are Item and Item Category. Update Lot Attribute Hierarchy Code Turn on this toggle to assign a hierarchy template to the selected records or to remove the hierarchy template from them. Leave the toggle turned off to refresh each selected record from the hierarchy template that the record already uses. Hierarchy Code Select the level 1 hierarchy template to assign to the selected records. This field is available only when the Update Lot Attribute Hierarchy Code toggle is turned on. Leave the field blank to remove the hierarchy code and the hierarchy attribute lines from the selected records. -
Set a filter for the records to update:
- If the Update field value is set to Item, set a filter in the No. field on the Filter: Item FastTab.
- If the Update field value is set to Item Category, set a filter in the Code field on the Filter: Item Category FastTab.
If no filter is set, the error You must specify a filter for the [Item or Item Category] before you run the report. occurs.
-
Select the OK button.
A confirmation message describes what the run does for the selected options. -
Select the Yes button.
A message summarizes the number of records that were updated and skipped.
Refresh from the hierarchy template
Each selected record is refreshed from the hierarchy template that it already uses if the Update Lot Attribute Hierarchy Code toggle is turned off. The refresh does the following:
- Removes the hierarchy attribute lines whose hierarchy code is no longer part of the hierarchy template.
- Creates the levels that were added to the hierarchy template.
- Updates the allowed values of each line, level by level.
- Keeps a fixed value as long as the hierarchy template still includes the value for that line. Otherwise, the fixed value is cleared. A fixed value on level 1 is never cleared.
- Keeps the priorities of the lot attribute values that remain allowed.
If the hierarchy template defines no allowed value for a lower-level line under the fixed values of the higher levels, the Allowed Values field of that line is empty instead of listing all values of the lot attribute.
When the Update field value is set to Item Category, the items of the selected item categories that inherit the hierarchy template from the category are refreshed as well.
Assign a hierarchy template
When the Update Lot Attribute Hierarchy Code toggle is turned on and a hierarchy template is selected in the Hierarchy Code field:
- A record without a hierarchy template receives the hierarchy attribute lines of the selected hierarchy template.
- A record that already uses the selected hierarchy template is refreshed, as described in the previous section.
- A record that uses another hierarchy template is moved to the selected hierarchy template, and its hierarchy attribute lines are recreated. The record is skipped if a hierarchy attribute line has a fixed value.
Only level 1 hierarchy templates can be selected in the Hierarchy Code field.
Lot attribute template lines that are not part of a hierarchy, but use a lot attribute contained in the selected hierarchy template, are deleted from the template without further confirmation.
Remove the hierarchy template
When the Update Lot Attribute Hierarchy Code toggle is turned on and the Hierarchy Code field is blank, the hierarchy code and all hierarchy attribute lines, including the lines with a fixed value, are removed from the selected records after confirmation. Items that inherit the hierarchy template from their item category are skipped.
- The Update Lot Attribute Templates report is unchanged. It adds a lot attribute to a template but does not add an allowed value to an existing line. For more information, see Update lot attribute templates.
- The Update from Hierarchy Template action on the Lot Attribute Template page is unchanged. It clears and recreates the hierarchy attribute lines of the open item or item category.
- The hierarchy template itself is not changed by the report.
- Lot attribute values that are already stored on posted lots or open item ledger entries are not changed.
- A run for items does not change an item that inherits its hierarchy template from an item category. That item is updated through a run for the item category.