dear all..i have this data inside DB:
line model serial
fa01 kd-g335ud 105x0001
fa01 kd-g335ud 105x0002
fa01 kd-g335ud 105x0003 //up to 20pcs or regardless of the number of goods in the db
fa02 kd-r311ed 105x0001
fa02 kd-r311ed 105x0002 //up to 20pcs or regardless of the number of goods in the db
i want if every "model" have reached 20 pcs or regardless of the number of goods in the db, the data will appear at quantity page like:
line model qty
fa01 kd-g335ud 20
fa02 kd-r311ed 20
please help, thanks before :-)