本文整理汇总了PHP中Line::setBusinessIdentificationNo方法的典型用法代码示例。如果您正苦于以下问题:PHP Line::setBusinessIdentificationNo方法的具体用法?PHP Line::setBusinessIdentificationNo怎么用?PHP Line::setBusinessIdentificationNo使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Line
的用法示例。
在下文中一共展示了Line::setBusinessIdentificationNo方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: CreateTaxRequestForBINo
private function CreateTaxRequestForBINo($bino)
{
$request = new GetTaxRequest();
//Set origin Address
$origin = new Address();
$origin->setLine1("Avalara");
$origin->setLine2("900 winslow way");
$origin->setLine3("Suite 100");
$origin->setCity("Bainbridge Island");
$origin->setRegion("WA");
$origin->setPostalCode("98110-1896");
$origin->setCountry("USA");
$request->setOriginAddress($origin);
//Set destination address
$destination = new Address();
$destination->setLine1("3130 Elliott");
$destination->setCity("Seattle");
$destination->setRegion("WA");
$destination->setPostalCode("98121");
$destination->setCountry("USA");
$request->setDestinationAddress($destination);
//Set line
$line = new Line();
$line->setNo("1");
//string // line Number of invoice
$line->setBusinessIdentificationNo("LL123");
$line->setItemCode("Item123");
//string
$line->setQty(1.0);
//decimal
$line->setAmount(1010.0);
$request->setLines(array($line));
$request->setCompanyCode('DEFAULT');
// Your Company Code From the Dashboard
$request->setDocCode("DocTypeTest");
$request->setBusinessIdentificationNo($bino);
$request->setDocDate(date_format(new DateTime(), "Y-m-d"));
$request->setCustomerCode("TaxSvcTest");
//string Required
$request->setSalespersonCode("");
// string Optional
$request->setDetailLevel(DetailLevel::$Tax);
//Summary or Document or Line or Tax or Diagnostic
return $request;
}