The work order materials widget, by default, allows users to issue inventory items to the work order from storerooms they have access to.  


Opqo 26.04.0 adds the ability to record materials used against a work order, however this is disabled by default.


The work order materials widget behaviour can be modified via configuration, by adding a configuration map to the moduleconfig section of the STAUTOSCRIPT.STAMCONFIG automation script with the following properties:


Property NameValue
moduleWorkDetailMaterialsTileModule
allowIssueSet this to false to disable the ability to issue inventory items and record material usage.

The default value is true
allowIssueInventorySet this to false to disable the ability to issue inventory items.

The default value is true
allowIssueMaterialsSet this to true to enable the ability to record material usage.

The default value is false.
materialsGlDebitAccountSpecifies a GL account for all material usage to be charged to.

If this is not specified, no GL account will be specified on the material usage transaction, and Maximo and the work order must be configured appropriately.



Disable all issue functions


To disable the ability to issue inventory and record material usage, add a module configuration like this:


appConfig = {
  ...
  "moduleconfig": [
    ...
    {
      "module": "WorkDetailMaterialsTileModule",
      "allowIssue": false
    }
  ]
}


Disable the ability to issue inventory items


To disable the ability to issue inventory items, add a module configuration like this:


appConfig = {
  ...
  "moduleconfig": [
    ...
    {
      "module": "WorkDetailMaterialsTileModule",
      "allowIssueInventory": false
    }
  ]
}


Enable the ability to record material usage


To enable the ability to record material usage, add a module configuration like this:


appConfig = {
  ...
  "moduleconfig": [
    ...
    {
      "module": "WorkDetailMaterialsTileModule",
      "allowIssueMaterials": true
    }
  ]
}


By default, Opqo does not specify a GL debit account for material usage transactions.  This means that Maximo and/or the work order must be configured appropriately.  This typically means having a fully specified GL account on the work order, or disabling GL validation in Maximo.


Alternatively, Opqo supports the ability to specify a single GL debit account to use for all material usage transactions, via the materialsGlDebitAccount property:


appConfig = {
  ...
  "moduleconfig": [
    ...
    {
      "module": "WorkDetailMaterialsTileModule",
      "allowIssueMaterials": true,
      "materialsGlDebitAccount": "......"
    }
  ]
}





Note: For more information on Opqo configuration and the role and contents of the STAUTOSCRIPT.STAMCONFIG script, see the Configuration Overview article.



If you have questions please do not hesitate to contact us or create a support ticket for more assistance.