Skip to Content

How to add outgoing payment on account in PHP, SAP B1?

Hi all,

I know how to add outgoing or incoming payment with Invoices in PHP it works fine, but I tried to add outgoing payment on account it does not work, below is my codes I tried to do I do know if there is something I forget

$oIncoming=$mycomp->GetBusinessObject(46);
$oIncoming->CardCode="303000";
$oIncoming->DocDate="2019-02-07";
$oIncoming->TaxDate="2019-02-07";
$oIncoming->BPLId=4;
$oIncoming->Series=78;

$oIncoming->CashSum=1000;
$oIncoming->CashAccount="561100";

$oIncoming->AccountPayments->AccountCode = "303000";
$oIncoming->AccountPayments->SumPaid = 1000;
$oIncoming->AccountPayments->OcrCode="AB";
$RetCode=$oIncoming->AccountPayments->Add;

$RetCode=$oIncoming->Add;
if ($RetCode==0)
{
echo"Added";
}
else
{
echo"Not added";
}

Please anyone can help me

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Feb 07 at 06:15 PM

    Hi Rurangwa Schadrack,

    Check the following thread:

    outgoing payments(account) via DI API SDK

    Kind regards,

    ANKIT CHAUHAN

    SAP Business One Support

    Add comment
    10|10000 characters needed characters exceeded