Example #1
0
 /**
  * 
  * 
  * @param string $last_datetime
  * @param boolean $first_time_running
  * @return boolean
  */
 protected static function _integrate($last_datetime, $first_datetime, $first_time_running)
 {
     // Integrator instance
     $Integrator = QuickBooks_Integrator_Singleton::getInstance();
     // Generics which *must* be present
     if ($Shipping = $Integrator->getGenericShipping()) {
         QuickBooks_Callbacks_Integrator_Callbacks::_integrateShipping($Shipping);
     }
     /*
     if ($Handling = $Integrator->getGenericHandling())
     {
     	$this->_integrateHandling($Handling);
     }
     */
     if ($Discount = $Integrator->getGenericDiscount()) {
         QuickBooks_Callbacks_Integrator_Callbacks::_integrateDiscounts($Discount);
     }
     /*
     if ($Coupon = $Integrator->getGenericCoupon())
     {
     	$this->_integrateCoupons($Coupon);
     }
     */
     //$customers = $Integrator>listNewCustomersSince($last_datetime, $first_datetime, $first_time_running);
     //QuickBooks_Callbacks_Integrator_Callbacks::_integrateNewCustomers($customers);
     //
     $orders = $Integrator->listNewOrdersSince($last_datetime, $first_datetime, $first_time_running);
     QuickBooks_Callbacks_Integrator_Callbacks::_integrateNewOrders($orders);
     //
     $estimates = $Integrator->listNewEstimatesSince($last_datetime, $first_datetime, $first_time_running);
     QuickBooks_Callbacks_Integrator_Callbacks::_integrateNewEstimates($estimates);
     //
     QuickBooks_Callbacks_Integrator_Callbacks::_pullNewAccounts($last_datetime, $first_datetime, $first_time_running);
     //
     QuickBooks_Callbacks_Integrator_Callbacks::_pullNewClasses($last_datetime, $first_datetime, $first_time_running);
     //
     QuickBooks_Callbacks_Integrator_Callbacks::_pullNewPaymentMethods($last_datetime, $first_datetime, $first_time_running);
     //
     QuickBooks_Callbacks_Integrator_Callbacks::_pullNewCustomerTypes($last_datetime, $first_datetime, $first_time_running);
     //
     QuickBooks_Callbacks_Integrator_Callbacks::_pullNewShipMethods($last_datetime, $first_datetime, $first_time_running);
     //
     QuickBooks_Callbacks_Integrator_Callbacks::_pullNewSalesTaxItems($last_datetime, $first_datetime, $first_time_running);
     //
     QuickBooks_Callbacks_Integrator_Callbacks::_pullNewSalesTaxGroupItems($last_datetime, $first_datetime, $first_time_running);
     //
     QuickBooks_Callbacks_Integrator_Callbacks::_pullNewSalesTaxCodes($last_datetime, $first_datetime, $first_time_running);
     //
     QuickBooks_Callbacks_Integrator_Callbacks::_pullNewUnitOfMeasureSets($last_datetime, $first_datetime, $first_time_running);
     //
     //QuickBooks_Callbacks_Integrator_Callbacks::_pullNewOrders($last_datetime, $first_datetime, $first_time_running);
     //
     //QuickBooks_Callbacks_Integrator_Callbacks::_pullNewEstimates($last_datetime, $first_datetime, $first_time_running);
 }