Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8451

Re: Cannot add row without complete selection of batch/serial numbers while Inventory transfer with Serialwise

$
0
0

Hi Pradeep

 

 

                                    for (int i = 1; i <= oMat.VisualRowCount; i++)                                    {                                        // ostock.Lines.SetCurrentLine(j);                                        if (i == rowcount)                                        {                                            // ostock.Lines.SetCurrentLine(j);                                            ostock.Lines.ItemCode = oMat.Columns.Item("V_1").Cells.Item(i).Specific.Value;                                            ostock.Lines.FromWarehouseCode = oForm.Items.Item("edtFwCd").Specific.Value;                                            ostock.Lines.WarehouseCode = oForm.Items.Item("edtTwCd").Specific.Value;                                            ostock.Lines.Quantity = 1;                                            ostock.Lines.SerialNumbers.InternalSerialNumber = oMat.Columns.Item("V_4").Cells.Item(i).Specific.Value;                                        }                                        else                                        {                                            // ostock.Lines.SetCurrentLine(j);                                            ostock.Lines.ItemCode = oMat.Columns.Item("V_1").Cells.Item(i).Specific.Value;                                            ostock.Lines.FromWarehouseCode = oForm.Items.Item("edtFwCd").Specific.Value;                                            ostock.Lines.WarehouseCode = oForm.Items.Item("edtTwCd").Specific.Value;                                            ostock.Lines.Quantity = 1;                                            ostock.Lines.SerialNumbers.InternalSerialNumber = oMat.Columns.Item("V_4").Cells.Item(i).Specific.Value;                                            ostock.Lines.Add();                                        }                                    }

 

Regards

Edy


Viewing all articles
Browse latest Browse all 8451

Trending Articles