Exemplo n.º 1
0
	/**
	 * Constructor
	 *
	 * Base constructor
	 *
	 * @access public
	 * @param array $spool The formatted spool array that we are working with
	 * @param object $accounting The accounting object
	 * @param bool $isResponse TRUE to specify thatb this service is a response, FASLE for a request. Default is FALSE
	 * @return void
	 */
	public function __construct($spool, $accounting, $isResponse=false)
	{
		parent::__construct($spool, $accounting, $isResponse);

		$this->type = "productlevel";
		$this->disableAutoRecordReference = true;
	}
Exemplo n.º 2
0
	/**
	 * Constructor
	 *
	 * Base constructor
	 *
	 * @access public
	 * @param array $spool The formatted spool array that we are working with
	 * @param object $accounting The accounting object
	 * @param bool $isResponse TRUE to specify thatb this service is a response, FASLE for a request. Default is FALSE
	 * @return void
	 */
	public function __construct($spool, $accounting, $isResponse=false)
	{
		parent::__construct($spool, $accounting, $isResponse);

		$this->entityAPI = new ISC_ENTITY_CUSTOMER();
		$this->type = "customer";
		$this->referenceDataExternalKey = "ListID";
	}
	/**
	 * Constructor
	 *
	 * Base constructor
	 *
	 * @access public
	 * @param array $spool The formatted spool array that we are working with
	 * @param object $accounting The accounting object
	 * @param bool $isResponse TRUE to specify thatb this service is a response, FASLE for a request. Default is FALSE
	 * @return void
	 */
	public function __construct($spool, $accounting, $isResponse=false)
	{
		parent::__construct($spool, $accounting, $isResponse);

		$this->entityAPI = new ISC_ENTITY_PRODUCTVARIATION();
		$this->type = "productvariation";
		$this->referenceDataExternalKey = "ListID";
	}
Exemplo n.º 4
0
	/**
	 * Constructor
	 *
	 * Base constructor
	 *
	 * @access public
	 * @param array $spool The formatted spool array that we are working with
	 * @param object $accounting The accounting object
	 * @param bool $isResponse TRUE to specify that this service is a response, FASLE for a request. Default is FALSE
	 * @return void
	 */
	public function __construct($spool, $accounting, $isResponse=false)
	{
		parent::__construct($spool, $accounting, $isResponse);

		$this->customerAPI = new ISC_ENTITY_CUSTOMER();
		$this->productAPI = new ISC_ENTITY_PRODUCT();
		$this->productVariationAPI = new ISC_ENTITY_PRODUCTVARIATION();

		$this->entityAPI = new ISC_ENTITY_ORDER();
		$this->type = "order";
		$this->referenceDataSetup = array(
						"TxnID",
						"EditSequence",
						"TimeCreated",
						"TimeModified"
		);

		$this->customerSyncAPI = new ACCOUNTING_QUICKBOOKS_SERVICE_CUSTOMERSYNC(array(), $this->accounting, $isResponse);
		$this->productSyncAPI = new ACCOUNTING_QUICKBOOKS_SERVICE_PRODUCTSYNC(array(), $this->accounting, $isResponse);
		$this->productVariationSyncAPI = new ACCOUNTING_QUICKBOOKS_SERVICE_PRODUCTVARIATIONSYNC(array(), $this->accounting, $isResponse);

		$this->referenceDataExternalKey = "TxnID";
	}