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

Re: Change Payment Method in AR Invoice

$
0
0

Hi Nilesh,

You can use this code to get an existing invoice and update the payment method

 

            SAPbobsCOM.Documents oINV = (SAPbobsCOM.Documents)B1WizardBase.B1Connections.diCompany.GetBusinessObject(BoObjectTypes.oInvoices);            oINV.GetByKey(8665);            oINV.PaymentMethod = "ABC";            int lErr = oINV.Update();            if (lErr != 0)            {                System.Windows.Forms.MessageBox.Show( B1WizardBase.B1Connections.diCompany.GetLastErrorDescription());            }

 

Note that payment method is update-able only as long as the invoice doc status is 'Open'

 

Regards

Edy


Viewing all articles
Browse latest Browse all 8526

Trending Articles



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