Skip to content

Commit

Permalink
Update BOMs_SingleLevel.php
Browse files Browse the repository at this point in the history
Add changes to match SVN commit 7952.
  • Loading branch information
TurboPT authored Mar 1, 2018
1 parent 1918333 commit c296fa1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions BOMs_SingleLevel.php
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ function DisplayBOMItems($UltimateParent, $Parent, $Component,$Level, $db) {

$result = DB_query($sql,$ErrMsg,$DbgMsg);
$msg = _('Details for') . ' - ' . $SelectedComponent . ' ' . _('have been updated') . '.';
UpdateCost($db, $SelectedComponent);
UpdateCost($SelectedComponent);

} elseif ($InputError !=1 AND ! isset($SelectedComponent) AND isset($SelectedParent)) {

Expand Down Expand Up @@ -352,7 +352,7 @@ function DisplayBOMItems($UltimateParent, $Parent, $Component,$Level, $db) {

$result = DB_query($sql,$ErrMsg,$DbgMsg);

UpdateCost($db, $_POST['Component']);
UpdateCost($_POST['Component']);
$msg = _('A new component part') . ' ' . $_POST['Component'] . ' ' . _('has been added to the bill of material for part') . ' - ' . $SelectedParent . '.';

} else {
Expand Down Expand Up @@ -389,7 +389,7 @@ function DisplayBOMItems($UltimateParent, $Parent, $Component,$Level, $db) {
WHERE parent='" . $SelectedParent ."'";
$ComponentResult = DB_query($ComponentSQL);
$ComponentArray = DB_fetch_row($ComponentResult);
UpdateCost($db, $ComponentArray[0]);
UpdateCost($ComponentArray[0]);

prnMsg(_('The component part') . ' - ' . $SelectedComponent . ' - ' . _('has been deleted from this BOM'),'success');
// Now reset to enable New Component Details to display after delete
Expand Down Expand Up @@ -964,4 +964,4 @@ function arrayUnique($array, $preserveKeys = false)
}

include('includes/footer.inc');
?>
?>

0 comments on commit c296fa1

Please sign in to comment.