
var i = 0;
var j = 0;
var k = 0;
var temp1;
var x;
var y;
var length = Form.bdyMain.frmTableBlock.tblRemarkRowTable.rowItem.all.length;
for i = 0 upto length - 1 do
x = concat( Form.bdyMain.frmTableBlock.tblRemarkRowTable.rowItem[i].tblInnerTable.rowItem.colStorageBin,
Form.bdyMain.frmTableBlock.tblRemarkRowTable.rowItem[i].tblInnerTable.rowItem.colMaterialID
for j = i + 1 upto length - 1 do
y = concat( Form.bdyMain.frmTableBlock.tblRemarkRowTable.rowItem[j].tblInnerTable.rowItem.colStorageBin,
Form.bdyMain.frmTableBlock.tblRemarkRowTable.rowItem[j].tblInnerTable.rowItem.colMaterialID
if ( x < y ) then
//Item No column
temp1 = Form.bdyMain.frmTableBlock.tblRemarkRowTable.rowItem[j].tblInnerTable.rowItem.colItemID;
Form.bdyMain.frmTableBlock.tblRemarkRowTable.rowItem[j].tblInnerTable.rowItem.colItemID = Form.bdyMain.frmTableBlock.tblRemarkRowTable.rowItem[i].tblInnerTable.rowItem.colItemID;
Form.bdyMain.frmTableBlock.tblRemarkRowTable.rowItem[i].tblInnerTable.rowItem.colItemID = temp1;
temp1 = "";
//Do this activity for all the fields present in output layout.
for i = 0 upto length1 - 1 do
k = Form.bdyMain.frmTableBlock.tblRemarkRowTable.rowItem[i].tblInnerTable.rowItem.colDeliveryQuantity1;
for j = i + 1 upto length1 - 1 do
if (( Form.bdyMain.frmTableBlock.tblRemarkRowTable.rowItem[i].tblInnerTable.rowItem.colMaterialID == Form.bdyMain.frmTableBlock.tblRemarkRowTable.rowItem[j].tblInnerTable.rowItem.colMaterialID )
and ( Form.bdyMain.frmTableBlock.tblRemarkRowTable.rowItem[i].tblInnerTable.rowItem.colStorageBin == Form.bdyMain.frmTableBlock.tblRemarkRowTable.rowItem[j].tblInnerTable.rowItem.colStorageBin ) ) then
Form.bdyMain.frmTableBlock.tblRemarkRowTable.rowItem[j].tblInnerTable.rowTotal.frmTotal.Total_Quantity = k + Form.bdyMain.frmTableBlock.tblRemarkRowTable.rowItem[j].tblInnerTable.rowItem.colDeliveryQuantity;
//Sum up the total quantity for this condition.
//Place the total quantity field at the end of this combination.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
7 | |
3 | |
3 | |
2 | |
2 | |
2 | |
2 | |
2 | |
2 | |
1 |