Quantcast
Viewing all articles
Browse latest Browse all 8065

Re: sap business one creating invoice zero cost -5002

Hi,

 

     I've created a Invoice with ZERO Cost. And I don't receive any error. Here's my sample code.

 

            With oInvoice

                .CardCode = "C00001"

                .DocDueDate = Now

 

 

                .DocType = SAPbobsCOM.BoDocumentTypes.dDocument_Items

 

 

                With .Lines

                    .ItemCode = "120001"

                    .WarehouseCode = "HW0001"

                    .CostingCode = "01"

                    .CostingCode2 = "0101"

 

 

                    .Add()

                End With

 

 

                If Not .Add = 0 Then

                    SAP_APP.SetMessage(oCompany.GetLastErrorDescription, SAPbouiCOM.BoStatusBarMessageType.smt_Error)

                End If


Viewing all articles
Browse latest Browse all 8065

Trending Articles