Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SelectCreditItems.php Posting Cost
11-29-2016, 12:39 AM
Post: #1
SelectCreditItems.php Posting Cost
I am trying to post the cost of an item when posting a credit I know this is odd but we have some free items that we give a credit for and do no know the cost until we post the credit.
Here is what I have so far
Around line 586 I have added this line
$StandardCost = filter_number_format($_POST['StandardCost_' . $LineItem->LineNumber]);
And around line 700 I have added
<th>' . _('Cost') . '</th>

And around line 742
<td><input type="text" class="number" name="StandardCost_' . $LineItem->LineNumber . '" size="8" maxlength="10" value="' . locale_number_format($LineItem->StandardCost,$_SESSION['CreditItems'.$identifier]->CurrDecimalPlaces) . '" /></td>

It post the standardcost in the line if the item has a standardcost but I will not updated the standardcost.
Any help would be greatly appreciated.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


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