Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Work Order Receive Cost Issue?
11-19-2018, 09:22 PM, (This post was last modified: 11-19-2018, 10:07 PM by VortecCPI.)
#1
Work Order Receive Cost Issue?
WorkOrderReceive.php

On line 248 we compare costs to determine if a change has occurred:
PHP Code:
if (($Cost $ItemCostRow['labourcost'] + $ItemCostRow['overheadcost']) != $ItemCostRow['cost']){ //the cost roll-up cost <> standard cost 

Then on line 254 we compute the difference/variance to find value:
PHP Code:
$ValueOfChange $ItemCostRow['totalqoh'] * (($Cost $ItemCostRow['labourcost'] + $ItemCostRow['overheadcost']) - $ItemCostRow['cost']); 

Then on lines 269 and 288 we write the difference to a GL entry:
PHP Code:
'" . _('Cost roll on release of WO') . '' . $_POST['WO'] . ' ' . $_POST['StockID'] . ' ' . _('cost was') . ' ' . $ItemCostRow['cost'] . ' ' . _('changed to') . ' ' . $Cost . ' ' . _('Quantity on hand of') . ' ' . $ItemCostRow['totalqoh'] . "'

Note we write the GL entry using $Cost but above we use $Cost + $ItemCostRow['labourcost'] + $ItemCostRow['overheadcost'].

Should not the GL entry be $Cost + $ItemCostRow['labourcost'] + $ItemCostRow['overheadcost']?

Something appears to be out of sync here...
https://www.linkedin.com/in/eclipsepaulbecker
Reply
11-19-2018, 11:24 PM,
#2
RE: Work Order Receive Cost Issue?
I have been testing this all morning and I believe lines 268 and 288 should be:

PHP Code:
'" . _('Cost roll on release of WO') . '' . $_POST['WO'] . ' ' . $_POST['StockID'] . ' ' . _('cost was') . ' ' . $ItemCostRow['cost'] . ' ' . _('changed to') . ' ' . ($Cost + $ItemCostRow['labourcost'] + $ItemCostRow['overheadcost']) . ' ' . _('Quantity on hand of') . ' ' . $ItemCostRow['totalqoh'] . "'
https://www.linkedin.com/in/eclipsepaulbecker
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)