Skip to content

Commit

Permalink
Merge pull request #49 from darrick/quickbooks_company_country
Browse files Browse the repository at this point in the history
Fix Issue #48 quickbooks_company_country always defaults to AU
  • Loading branch information
agileware-justin authored Dec 7, 2023
2 parents 970863b + be0603e commit d596cb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Civiquickbooks/Page/OAuthQBO.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public function run() {
$_company_country = $companyInfo->Country;

//if getting no response, set country settings as AU company.
$_company_country = (isset($_company_country['CompanyInfo'])) ? $_company_country['CompanyInfo']['Country'] : 'AU';
$_company_country = (!empty($_company_country)) ? $_company_country : 'AU';

try {
civicrm_api3('Setting', 'create', ['quickbooks_company_country' => $_company_country]);
Expand Down

0 comments on commit d596cb7

Please sign in to comment.