Skip to content

Commit

Permalink
CIVIQBO-107 Prevent undefined index warning for account_type_code
Browse files Browse the repository at this point in the history
  • Loading branch information
agileware-fj committed Oct 16, 2023
1 parent 4bf559d commit 189e6c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Civiquickbooks/Invoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ protected function mapToAccounts($db_contribution, $accountsID, $SyncToken, $qb_
// We will use account type code to get state tax code id for US companies
$tax_types[$line_item['financial_type_id']] = [
'sale_tax_acctgCode' => $tmp,
'sale_tax_account_type_code' => htmlspecialchars_decode($entityFinancialAccount['financial_account_id.account_type_code']),
'sale_tax_account_type_code' => htmlspecialchars_decode($entityFinancialAccount['financial_account_id.account_type_code'] ?? NULL),
];

$tax_codes[] = $tmp;
Expand Down

0 comments on commit 189e6c3

Please sign in to comment.