Show the status of Vault compared to ERP

Introduction

The status of the data between Vault and the ERP system can be displayed in the BomWindow.

The icon on the left ("Name" column) shows the status of the BOM-Header while the icon on the right ("Status" column) side shows the status of the BomRow.

The status of the BOMs and their BomRows can be modified during the "Check" and "Transfer" operations. The same applies to the according Items in the "Items" tab.

Updating States

function Check-Boms($boms) {
foreach($bom in $boms) {
$bom |Update-BomWindowEntity -Status Error
}
}
 

  • For BomRows, the same commandlet can be used on the $row object.
function Check-Boms($boms) {
foreach($bom in $boms) {
foreach($row in $bom.Children) {
$row | Update-BomWindowEntity -Status Unknown
}
}
}
 

Updating Status Details

  • The status details for BOM-Headers and BomRows can be displayed by hovering the mouse over the corresponding status icon. For items and bomrows the status details are also displayed in the Status Details column.
The status details column doesn't work for BOM headers. BOM headers only have a mouse over tooltip! 

 

function Check-Boms($boms) {
foreach($bom in $boms) {
$bom | Update-BomWindowEntity -Status 'New' -StatusDetails "BomHeader Tooltip"
foreach($row in $bom.Children){
$row | Update-BomWindowEntity -Status 'Different' -StatusDetails "BomRow StatusDetails"
}
}
}
Text

 

 

Possible States

 

  • In order to mark the BomRow as "Identical" between Vault and ERP, set its status to identical:
function Check-Boms($boms) {
foreach($bom in $boms) {
foreach($row in $bom.Children) {
$row | Update-BomWindowEntity -Status Identical -StatusDetails "The Row is identical in ERP!"
}
}
}
Text

 

 

  • BomRows marked as "New" do not exist on the ERP side and will be added when clicking "Transfer"
function Check-Boms($boms) {
foreach($bom in $boms) {
foreach($row in $bom.Children) {
$row | Update-BomWindowEntity -Status New -StatusDetails "The Row will be added to the BOM in ERP!"
}
}
}
Text

 

 

  • BomRows marked as "Remove" do not exist on Vault side and will be removed when clicking "Transfer"
function Check-Boms($boms) {
foreach($bom in $boms) {
foreach($row in $bom.Children) {
$row | Update-BomWindowEntity -Status Remove -StatusDetails "The Row will be removed from the BOM in ERP"
}
}
}
Text

 

 

  • BomRows that are different between Vault and ERP can be marked as "Different" and will be updated on ERP side
function Check-Boms($boms) {
foreach($bom in $boms) {
foreach($row in $bom.Children) {
$row | Update-BomWindowEntity -Status Different -StatusDetails "Position is different!`r`nVault:'31'`r`nERP:'13'"
}
}
}
Text

 

  • When failures occur during the "Check" operation on the ERP side, the according BomRows can be marked as "Error"
function Check-Boms($boms) {
foreach($bom in $boms) {
foreach($row in $bom.Children) {
$row | Update-BomWindowEntity -Status Error -StatusDetails "The row cannot be added to ERP!"
}
}
}
 

See Also