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

Re: Updating Invoice header and item Table

$
0
0

Hi Annie,

 

For Each classItems As DraftClass In itemsData

 

                    oInvoice.Lines.SetCurrentLine(classItems.VisOrder)     '<-- Before update, set the line first

                    oInvoice.Lines.ItemCode = classItems.itemCode

                    oInvoice.Lines.Price = classItems.PriceBefDi

                    oInvoice.Lines.PriceAfterVAT = classItems.PriceAfVat

                    oInvoice.Lines.LineTotal = classItems.LineTotal

                    oInvoice.Lines.GrossBuyPrice = classItems.GrossProfit

                    'oInvoice.Lines.Add()     <--- updating line, no need to add, unless you want to add a new line

 

                

                Next

 

 

                lRetCode = oInvoice.Update()

 

 

Regards
Edy


Viewing all articles
Browse latest Browse all 9190

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>