尝试向订单添加人工付款。首先很难显示订单项目,当我对其进行硬编码时 - 它可以显示订单项目。
更大的问题是付款也没有适用?
if ($myApp->cfgCon("ds")) {
//$date = $myApp->infuDate(date("Y-m-d"));
$date = $myApp->infuDate(date('Ymd\TH:i:s'));
$invoiceId = $myApp->blankOrder($contactID,"Product A", $date, 0, 0);
$currentDate = date('Ymd\TH:i:s');
$odate = new DateTime($currentDate);
$iresult = $myApp->addOrderItem($invoiceId, 60, 4, 9.95, 1, "Product A", "Product A");
//$iresult = $myApp->addOrderItem($invoiceId, $infprodid, 4, $prodPrice, 1, $prodName, $prodName);
//$pDate = $myApp->infuDate(date("Y-m-d"));
// $presult = $myApp->manualPmt(intval($invoiceId),$prodPrice,$odate,'Credit Card','paid by Credit Card',false);
$presult = $myApp->manualPmt(intval($invoiceId),9.95,$odate,'Credit Card','paid by Credit Card',false);