projects
/
order_line_extra.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
56ff0bf
)
Fix quantity not taking into account quantity invoiced.
author
Maxime Bourget
<bmx007@gmail.com>
Sun, 2 Jun 2013 23:25:24 +0000
(
00:25
+0100)
committer
Maxime Bourget
<bmx007@gmail.com>
Sun, 2 Jun 2013 23:25:24 +0000
(
00:25
+0100)
haxe/ItemScheduler.hx
patch
|
blob
|
history
diff --git
a/haxe/ItemScheduler.hx
b/haxe/ItemScheduler.hx
index 8ac7f6ced256c3605df2655bb810d71a92b59400..ab4e9ac83f78fd623696335ff6021d176cdb0b04 100644
(file)
--- a/
haxe/ItemScheduler.hx
+++ b/
haxe/ItemScheduler.hx
@@
-232,7
+232,7
@@
return cast(locations(), Array<Dynamic>);
private function loadOrders() {
var tb : String = untyped __php__('TB_PREF');
private function loadOrders() {
var tb : String = untyped __php__('TB_PREF');
- var sql : String = "SELECT * , d.priority AS pp
+ var sql : String = "SELECT * , d.
quantity as qty, d.
priority AS pp
FROM "+tb+"denorm_order_details_queue d
JOIN "+tb+"sales_order_details od ON (od.id = d.id)
JOIN "+tb+"sales_orders so ON (so.order_no = d.order_id)
FROM "+tb+"denorm_order_details_queue d
JOIN "+tb+"sales_order_details od ON (od.id = d.id)
JOIN "+tb+"sales_orders so ON (so.order_no = d.order_id)
@@
-252,6
+252,7
@@
function orders():Array<Order> {
var a:Dynamic = php.Lib.objectOfAssociativeArray(row);
var order:Order = a;
order.priority = Date.fromString(a.pp);
var a:Dynamic = php.Lib.objectOfAssociativeArray(row);
var order:Order = a;
order.priority = Date.fromString(a.pp);
+ order.quantity = a.qty;
orderList.push(order);
};
orderList.push(order);
};