public function __construct() { // Setup the required variables for the module parent::__construct(); $this->_id = 'accounting_quickbooks'; $this->_name = GetLang('QuickBooksName'); $this->_description = GetLang('QuickBooksDesc'); $this->_help = GetLang('QuickBooksHelp'); $this->_url = 'http://www.quicken.com.au'; $this->_file = basename(__FILE__); // Details for the QBWC file $this->getSetupVariable($password, 'password'); $this->getSetupVariable($username, 'username'); $this->getSetupVariable($fileid, 'fileid'); $this->_appname = GetLang('QuickBooksApplicationName'); $this->_appdesc = GetLang('QuickBooksApplicationDescription'); $this->_appurl = GetConfig('ShopPathSSL') . '/accountinggateway.php?accounting=' . $this->getid(); $this->_appsupporturl = GetConfig('ShopPathSSL') . '/accountinggateway.php?action=ShowSupport&accounting=' . $this->getid(); $this->_supporturl = 'http://www.viewkb.com/categories/Shopping+Cart/Support+and+Technical+Questions/Shopping+Cart/Accounting+Settings/Intuit+QuickBooks/'; $this->_ownerid = '0749cafc-62f5-102b-83a8-001a4d0000c0'; $this->_qbtype = 'QBFS'; $this->_password = $password; $this->_username = $username; $this->_fileid = $fileid . substr($this->_ownerid, 8); $this->_permissionset = array('customer' => array('create' => 1, 'edit' => 2, 'delete' => 4), 'product' => array('create' => 8, 'edit' => 16, 'delete' => 32), 'order' => array('create' => 64, 'edit' => 128, 'delete' => 256)); $this->_initdata = array(array('type' => 'account', 'service' => 'add', 'data' => array('Name' => GetLang('QuickBooksIncomeAccountName'), 'AccountType' => 'Income')), array('type' => 'account', 'service' => 'add', 'data' => array('Name' => GetLang('QuickBooksCOGSAccountName'), 'AccountType' => 'CostOfGoodsSold')), array('type' => 'account', 'service' => 'add', 'data' => array('Name' => GetLang('QuickBooksAssetAccountName'), 'AccountType' => 'FixedAsset'))); // Setup the custom variables $this->setCustomVars(); // Load saved variables from the database $this->loadAccountingVars(); }
public function __construct() { // Setup the required variables for the module parent::__construct(); $this->_id = 'accounting_stoneedge'; $this->_name = GetLang('StoneEdgeName'); $this->_description = GetLang('StoneEdgeDesc'); $this->_help = sprintf(GetLang('StoneEdgeHelp'),$GLOBALS['ShopPathSSL']); }
public function __construct() { // Setup the required variables for the module parent::__construct(); $this->name = GetLang("QuickBooksName"); $this->description = GetLang("QuickBooksDesc"); $this->help = GetLang("QuickBooksHelp"); // Details for the QBWC file $this->password = $this->getSetupVariable("password"); $this->username = $this->getSetupVariable("username"); $this->fileId = $this->getSetupVariable("fileid"); $this->fileId .= substr(self::ownerId, 8); // Edit the help so we can display the download link and password for the QBWC file if (ModuleIsConfigured($this->getid())) { $this->help .= sprintf(GetLang('QuickBooksPasswordSection'), $this->password); } $this->supportURL = GetConfig("ShopPathSSL") . "/accountinggateway.php?action=showSupportQuickBooks"; $this->initData = array( array( "Name" => GetLang("QuickBooksIncomeAccountName"), "Desc" => GetLang("QuickBooksIncomeAccountDesc"), "Service" => "Account", "Type" => "income", "AccountType" => "Income" ), array( "Name" => GetLang("QuickBooksCOGSAccountName"), "Desc" => GetLang("QuickBooksCOGSAccountDesc"), "Service" => "Account", "Type" => "cogs", "AccountType" => "CostOfGoodsSold" ), array( "Name" => GetLang("QuickBooksAssetAccountName"), "Desc" => GetLang("QuickBooksAssetAccountDesc"), "Service" => "Account", "Type" => "fixed", "AccountType" => "FixedAsset" ), array( "Name" => GetLang("QuickBooksTaxItem"), "Desc" => GetLang("QuickBooksTaxItemDesc"), "Service" => "ItemOtherCharge", "Type" => "tax" ), array( "Name" => GetLang("QuickBooksShippingItem"), "Desc" => GetLang("QuickBooksShippingItemDesc"), "Service" => "ItemOtherCharge", "Type" => "shipping" ), array( "Name" => GetLang("QuickBooksDiscountItem"), "Desc" => GetLang("QuickBooksDiscountItemDesc"), "Service" => "ItemOtherCharge", "Type" => "discount" ), array( "Name" => GetLang("QuickBooksParentTypeCustomerNormal"), "Desc" => GetLang("QuickBooksParentTypeCustomerNormalDesc"), "Service" => "Customer", "Type" => "normal", ), array( "Name" => GetLang("QuickBooksParentTypeCustomerGuestCheckout"), "Desc" => GetLang("QuickBooksParentTypeCustomerGuestCheckoutDesc"), "Service" => "Customer", "Type" => "guestcheckout" ), array( "Name" => GetLang("QuickBooksParentTypeProductNormal"), "Desc" => GetLang("QuickBooksParentTypeProductNormalDesc"), "Service" => "ItemInventory", "Type" => "normal" ), array( "Name" => GetLang("QuickBooksParentTypeProductVariations"), "Desc" => GetLang("QuickBooksParentTypeProductVariationsDesc"), "Service" => "ItemInventory", "Type" => "productvariation" ), ); $this->qbInvalidCharMap = array( "8482" => "2122", "169" => "00A9", "174" => "00AE" ); $this->qbInvalidRefMap = array( "8482" => "153" ); // Setup the custom variables $this->setCustomVars(); // Load saved variables from the database $this->loadCustomVars(); }