//include_once("includes/item_scheduler.inc");
include_once("hincludes/lib/php/Boot.class.php");
include_once("includes/db_order_lines.inc");
+include_once("includes/picking.inc");
include_once("config.php");
-$page_security = 'SA_ORDERLINEX_EDIT';
+$page_security = 'SA_ORDERLINEX_SCHEDULE';
add_access_extensions();
$_SESSION['page_title'] = _($help_context = "Item schedule");
background: pink;
}
+
tr.location {
+ font-weight: normal;
+ background: #bbb;
+}
+tr.picked {
font-weight: normal;
background: #8f8;
}
tr.late {
background: #fc8;
}
+tr.early {
+ background: #def;
+ color: blue;
+}
tr.soldout {
background: pink;
}
+tr.expired td:nth-child(7) {
+ background: #444;
+ color: white;
+}
+
tr.tDnD_whileDrag {
background: #ccc;
border: 2px solid black;
color: transparent;
background: transparent;
}
+
+span.picked {
+ color: black;
+ font-weight: bold;
+}
+
+tr.partial span.pickable {
+ background: #cfc;
+}
+span.partial {
+ background: transparent;
+}
</style>
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="js/jquery.tablednd.0.8.min.js"></script>
<script text="text/javascript">
- console.log('hello')
/** add table DnD as behavior **/
function onDragStart (table, row) {
console.log(table)
}
+ function onPick(element) {
+ /* horible hack but it works */
+ /* in the way it call an Ajax request */
+ var row = $(element).closest('tr')[0];
+ var table = $(element).closest('table')[0];
+ onDrop(table, row);
+
+ }
+
var inserts = {
'#item_schedule table': function (e) {
$(e).tableDnD({onDragStart: onDragStart, onDrop: onDrop})