Closed (duplicate)
Project:
Storm
Version:
6.x-1.30
Component:
Storm Invoice
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Apr 2010 at 15:03 UTC
Updated:
23 Aug 2010 at 07:24 UTC
Hi y'all,
When I add several items in an invoice, they order fine when i look at the invoice. When I press the "Print HTML" button, the order changes, messing up the invoice. Any solutions?
Thanks!
Comments
Comment #1
Steff Vanhaverbeke commentedIn storminvoice.module, the ordering should be added in the function storminvoice_getitems(), like this:
function storminvoice_getitems($invoice_vid) {
$s = "SELECT sit.* FROM {storminvoice_items} AS sit WHERE sit.invoice_vid = %d ORDER BY sit.weight ASC";
$r = db_query($s, $invoice_vid);
$items = array();
while ($i = db_fetch_object($r)) {
$items[] = $i;
}
return $items;
}
Comment #2
juliangb commentedThis needs to be posted as a patch for us to commit the change (http://drupal.org/patch/create).
Comment #3
tchurch commentedThere is a general issue with ordering of invoice items. This would only fixed part of it.
Issue #887638: Invoice Items not in correct order is created to cover all these issues. I have marked this one as closed (duplicate).