on 06-01-2011 7:51 AM
Hi Experts,
I am Using below code i can Create Only One Credit Note But my scenario I need multiple Credit Notes creations
While (oMatrix.RowCount > i)
ocrdiet = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oCreditNotes)
ocrdiet.DocDate = Now()
ocrdiet.DocDueDate = Now()
ocrdiet.DocType = SAPbobsCOM.BoDocumentTypes.dDocument_Service
ocrdiet.CardCode = oMatrix.Columns.Item("V_3").Cells.Item(i).Specific.String
ocrdiet.Lines.AccountCode = oMatrix.Columns.Item("V_11").Cells.Item(i).Specific.String
ocrdiet.Project = oForm.Items.Item("9").Specific.Value
ocrdiet.Lines.LineTotal = Convert.ToDouble(oMatrix.Columns.Item("V_4").Cells.Item(i).Specific.Value)
ocrdiet.Lines.TaxCode = "AP EXMPT"
ocrdiet.Lines.LocationCode = 1
ocrdiet.Lines.Add()
ocrdiet.Lines.SetCurrentLine(lno)
lno = lno + 1
count = count + 1
ocrdiet.Add()
i = i + 1
End While
Please Suggest me
Thanks
Sandeep
Yes Solved This Issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
please put
ocrdiet.Add() After While .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
110 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.