我知道如何使用PHP在发票中添加付款或收款,效果很好,但是我尝试在无法正常工作的帐户上添加付款,以下是我尝试执行的代码,我知道是否有某些东西忘记
$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";
}
请任何人都可以帮助我