QBO PHP上传参考名称

时间:2018-09-21 01:45:49

标签: php quickbooks-online dataservice

您好,我尝试了以下所有组合。我似乎无法设置字段可附加的Ref。不管我做什么,它都会创建附件,但不会将Attachable ref设置为NULL

$randId = rand();
$entityRef = new IPPReferenceType(array('value'=>'119', 
'type'=>'Invoice'));
 $attachableRef = new IPPAttachableRef(array('value'=>'119', 
'type'=>'estimate'));
$objAttachable = new IPPAttachable();
$objAttachable->FileName = $randId.".jpg";
$objAttachable->AttachableRef = $attachableRef;
$objAttachable->Category = 'Image';
$objAttachable->PlaceName = "1035";
$objAttachable->Tag = 'Tag_' . $randId;
$objAttachable->AttachableRef = "Test";

AttachableRef [0..n]: 可选的 AttachableRef 指定此可附加文件要链接到的事务对象。 子属性 EntityRef: 可选的 ReferenceType,可过滤 该附件链接到的对象引用。 设置EntityRef.value以及查询时在其响应主体中返回的目标对象的ID。 使用目标对象的特定类型设置EntityRef.type。例如发票,账单,物料等。

0 个答案:

没有答案