Wed, 23 Oct 2019 14:20:50 +0200
Added the product divide scripts. All parts have all the volumes and weights divided, including the master record. Splitted batches have their own records with the product code formatted as code-n. From this design, we can rebuild the print and checklist.
498
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
1 | <?php |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
2 | require_once($_SERVER['DOCUMENT_ROOT'].'/includes/global.inc.php'); |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
3 | page_header('Product splitsen', 'prod_divide'); |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
4 | ?> |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
5 | |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
6 | <div id="MainPanel"> |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
7 | <div style="overflow: hidden;" id='divide_table'> |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
8 | <table style='width: 100%; padding: 10px;'> |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
9 | <tr><th colspan="4">Splits product</th></tr> |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
10 | <tr><td colspan="4"> </td></tr> |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
11 | <tr> |
499
4f14a18b581e
Finished the logic in the split batch screen
Michiel Broek <mbroek@mbse.eu>
parents:
498
diff
changeset
|
12 | <td align="right" style="vertical-align: top;">Product naam:</td> |
498
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
13 | <td align="left" style="vertical-align: top; padding: 3px;"><input id="name" readonly /></td> |
499
4f14a18b581e
Finished the logic in the split batch screen
Michiel Broek <mbroek@mbse.eu>
parents:
498
diff
changeset
|
14 | <td align="right" style="vertical-align: top;">Huidige brouw fase:</td> |
498
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
15 | <td align="left" style="vertical-align: top; padding: 3px;"><input id="stage" readonly /></td> |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
16 | </tr> |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
17 | <tr> |
499
4f14a18b581e
Finished the logic in the split batch screen
Michiel Broek <mbroek@mbse.eu>
parents:
498
diff
changeset
|
18 | <td align="right" style="vertical-align: top;">Product code:</td> |
498
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
19 | <td align="left" style="vertical-align: top; padding: 3px;"><input id="code" readonly /></td> |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
20 | <td align="right" style="vertical-align: top;">Splits moment:</td> |
499
4f14a18b581e
Finished the logic in the split batch screen
Michiel Broek <mbroek@mbse.eu>
parents:
498
diff
changeset
|
21 | <td align="left" style="vertical-align: top; padding: 3px;"><div id='divide_type'></div></td> |
4f14a18b581e
Finished the logic in the split batch screen
Michiel Broek <mbroek@mbse.eu>
parents:
498
diff
changeset
|
22 | </tr> |
4f14a18b581e
Finished the logic in the split batch screen
Michiel Broek <mbroek@mbse.eu>
parents:
498
diff
changeset
|
23 | <tr> |
4f14a18b581e
Finished the logic in the split batch screen
Michiel Broek <mbroek@mbse.eu>
parents:
498
diff
changeset
|
24 | <td align="right" style="vertical-align: top;">Beschikbaar L:</td> |
4f14a18b581e
Finished the logic in the split batch screen
Michiel Broek <mbroek@mbse.eu>
parents:
498
diff
changeset
|
25 | <td align="left" style="vertical-align: top; padding: 3px;"><div id="available"></div></td> |
4f14a18b581e
Finished the logic in the split batch screen
Michiel Broek <mbroek@mbse.eu>
parents:
498
diff
changeset
|
26 | <td align="right" style="vertical-align: top;">Blijft over L:</td> |
4f14a18b581e
Finished the logic in the split batch screen
Michiel Broek <mbroek@mbse.eu>
parents:
498
diff
changeset
|
27 | <td align="left" style="vertical-align: top; padding: 3px;"><div id='leftover'></div></td> |
498
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
28 | </tr> |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
29 | <tr><td colspan="4"> </td></tr> |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
30 | <tr> |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
31 | <td align="center" colspan="4"><div id="splitGrid"></div></td> |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
32 | </tr> |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
33 | </table> |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
34 | <div style="float: right; margin-top: 10px; margin-bottom: 5px;"> |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
35 | <input style="margin-right: 100px;" type="button" id="Save" value="Save" /> |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
36 | <input style="margin-right: 520px;" type="button" id="Cancel" value="Cancel" /> |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
37 | </div> |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
38 | </div> |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
39 | </div> |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
40 | |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
41 | <?php |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
42 | page_footer(); |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
43 | ?> |