Originally Posted by
top hatt
Hi:
Can someone help me with this problem?
Am I the only person that has this problem on the Orders/Edit screen?
Dave H.
Identifying it as a "problem" is a bit of a point of view. I believe I had posted something in another thread where it was proposed that the issue described above was or was possibly the fault of a payment module. That said and based on the information provided with regards to what is presented where has allowed identifying what is happening and what can be done to modify the view. The question somewhat becomes though if it is still "right" regardless...
I say this because, this is the only screen where it seems like it is possible to see what the then current conversion rate was that the store used... It doesn't say that it is right or wrong, but it is the only place that ties the money collected to the proposed cost of the item. Heaven forbid the conversion rate be way off (not updated in many years for example) and the amount collected not even closely relate to the cost.
If you search for the following text in admin/orders.php:
you should find at or around line 604 the following text:
Code:
' <td align="right" class="'. str_replace('_', '-', $order->totals[$i]['class']) . '-Amount">' . $currencies->format($order->totals[$i]['value'], false) . '</td>' . "\n" .
if you were to compare that with similar text from admin/invoice.php
Code:
' <td align="right" class="'. str_replace('_', '-', $order->totals[$i]['class']) . '-Amount">' . $order->totals[$i]['text'] . '</td>' . "\n" .
you would see the difference in how the "amount" is displayed. In the orders file it is by currency conversion using the value of the orders line item, in the invoice it is by the text that was captured related to the price. This difference in presentation is what is being seen on the orders page and can be "corrected" or made the same as all of the other pages by the following:
Code:
' <td align="right" class="'. str_replace('_', '-', $order->totals[$i]['class']) . '-Amount">' . $order->totals[$i]['text'] . '</td>' . "\n" .
Me personally, while not perfect I'd rather show both if there is a condition that identifies a difference, such as:
Code:
' <td align="right" class="'. str_replace('_', '-', $order->totals[$i]['class']) . '-Amount">' . $order->totals[$i]['text'] . ($order->totals[$i]['text'] <> $currencies->format($order->totals[$i]['value'], false) ? ':' . $currencies->format($order->totals[$i]['value'], false) : '') . '</td>' . "\n" .
(note, 0.00 in one currency will be identified as different than 0.00 in another. So even though the numerical value is the same between the two they will show adjacent to another (currency symbol is a factor of the comparison). The same would be true if two currencies are an unlikely 1 for 1 conversion to each other.
So, this "problem" that has been identified... Are you sure that you want to always see just the currency that was used to make the purchase from the store or is there possibly some information that may be good to have for view/review? More over, is the desire to have everything converted to Canadian currency on the orders screen, or only those items that were purchased using Canadian currency?
Bookmarks