PAGOS RECIBIDOS (CHEQUES) DI API SAPB1

Code with Edd

COMO CREAR UN PAGO RECIBIDO CON EL MEDIO DE PAGO CHEQUES EN SAPB1 USANDO LA DI API (9.3 PL14)

SAPbobsCOM.Payments oDocto;
oDocto = (SAPbobsCOM.Payments)oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oIncomingPayments);

oDocto.DocDate = DateTime.Now.Date;
oDocto.CardCode = document.cardCode;

oDocto.CheckAccount = "11102001";
                        
oDocto.Checks.DueDate = DateTime.Now.Date;
oDocto.Checks.CheckAccount = "11102001";
oDocto.Checks.CheckSum = document.docTotal;
oDocto.Checks.CheckNumber = 1;
oDocto.Checks.CountryCode = "MX";
oDocto.Checks.BankCode = "";
oDocto.Checks.AccounttNum = "";
oDocto.Checks.Trnsfrable = BoYesNoEnum.tNO;
oDocto.Checks.ManualCheck = SAPbobsCOM.BoYesNoEnum.tNO;


oDocto.Invoices.SetCurrentLine(0);
oDocto.Invoices.DocEntry = Convert.ToInt32(document.docEntry);
oDocto.Invoices.SumApplied = document.sumApplied;
oDocto.Invoices.InvoiceType = BoRcptInvTypes.it_Invoice;


int lRetCode = oDocto.Add();

Referencia: SAP Business One SDK – Help Center

https://help.sap.com/viewer/product/SAP_BUSINESS_ONE/9.3/es-ES

PAGOS RECIBIDOS (CHEQUES) DI API SAPB1
Web | + posts

Full Stack Web Developer && SDK SAPB1 Developer.

Melómano, Gamer (Xbox), Comprador compulsivo de Amazon y Posiblemente con TDAH.

Scroll hacia arriba