Post Reply 
 
Thread Rating:
  • 0 Votes - 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.)
Post: #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
Visit this user's website Find all posts by this user
Quote this message in a reply
11-19-2018, 11:24 PM
Post: #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
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)