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

Re: Import Invoice Freights using Di Add-on

$
0
0

I think Freight are additional expense in header. You may try the code below:

 

            Dim oInvoice As SAPbobsCOM.Documents

            oInvoice = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices)

            With oInvoice

                .CardCode = "Customer Code"

                .DocDate = Date.Today

 

 

                oInvoice.Lines.ItemCode = "ItemCode"

                oInvoice.Lines.Price = 100.0

 

 

                oInvoice.Expenses.ExpenseCode = 0

                oInvoice.Expenses.LineTotal = 100.0

                oInvoice.Expenses.Add()

 

 

            End With

 

 

You can get the expense code here: OEXD


Viewing all articles
Browse latest Browse all 3354

Trending Articles



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