Преглед изворни кода

Merge branch 'issue161' into development

Neal Wilson пре 6 година
родитељ
комит
147e12c4e0
Signed by: neal <neal@typica.us> GPG Key ID: D6F25C90DD5819DF
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1
    1
      config/Reports/inventory.xml

+ 1
- 1
config/Reports/inventory.xml Прегледај датотеку

@@ -82,7 +82,7 @@
82 82
                 output.writeEndElement();
83 83
                 output.writeStartElement("tbody");
84 84
                 var query = new QSqlQuery();
85
-                var q = "SELECT name, (quantity / :conversion)::numeric(12,2) AS quantity, (quantity / (SELECT conversion FROM lb_bag_conversion WHERE item = id))::numeric(12,2) AS sacks, (SELECT cost * :conversion2 FROM purchase WHERE item = id)::numeric(12,2) AS cost, (quantity * (SELECT cost FROM purchase WHERE item = id))::numeric(12,2) AS stock_cost, (SELECT rate / :conversion3 FROM coffee_history WHERE coffee_history.id = items.id)::numeric(12,2) AS rate, (SELECT out FROM coffee_history WHERE coffee_history.id = items.id) AS out FROM items WHERE quantity > 0 ";
85
+                var q = "SELECT name || ' (' || id || ')', (quantity / :conversion)::numeric(12,2) AS quantity, (quantity / (SELECT conversion FROM lb_bag_conversion WHERE item = id))::numeric(12,2) AS sacks, (SELECT cost * :conversion2 FROM purchase WHERE item = id)::numeric(12,2) AS cost, (quantity * (SELECT cost FROM purchase WHERE item = id))::numeric(12,2) AS stock_cost, (SELECT rate / :conversion3 FROM coffee_history WHERE coffee_history.id = items.id)::numeric(12,2) AS rate, (SELECT out FROM coffee_history WHERE coffee_history.id = items.id) AS out FROM items WHERE quantity > 0 ";
86 86
                 switch(sortBox.currentIndex)
87 87
                 {
88 88
                     case 0:

Loading…
Откажи
Сачувај