I am making a form to input Products to warehouse, So, the condition that i want is:
When I type and enter a value in Quantity box (Blue circle), I want that value shown to another 10 input boxes pallet list (red circle), But it has to be 69 Pcs in each box ( 69 is only total that actually fit on the pallet in real warehouse ) and if it still have rest, put the last rest in the last box. This is the illustration that might help :
Say, I have produce 630 PCS items, and when I put 630 to the Quantity Box, It should be shown 69 PCS in every pallet list, 69 until it cannot be divided again. The rest of the divide, have to be placed on the last box.
Example :
Quantity : 630 PCS
Pallet 1: 69
Pallet 2: 69
Pallet 3: 69
Pallet 4: 69
Pallet 5: 69
Pallet 6: 69
Pallet 7: 69
Pallet 8: 69
Pallet 9: 69
Pallet 10: 9 (The rest have to be on the last pallet)
Can someone help me? Thank you, Terima Kasih.