Add pre_hold_offset. hook quantity + item scheduler.
[order_line_extra.git] / haxe / ItemScheduler.hx
index fb2cd4746a38d0a36a87f5010630288bf56f2019..db133cd21a1502cde39f5bfa7db2ba7f71019d3e 100644 (file)
@@ -200,7 +200,7 @@ class ItemScheduler {
                        php.Lib.print(hold_until);
                        php.Lib.print(date);
                        if(hold_until == null) hold_until = FA.sql2date(order.delivery_date);
-                       if(hold_until.getTime() > date.getTime()) {
+                       if((hold_until.getTime() - FA.preHoldOffset())  > date.getTime()) {
                                classes.push('early');
                        }
                        else {