agileware / au.com.agileware.civiquickbooks

A CiviCRM extension which integrates CiviCRM with QuickBooks Online
https://agileware.com.au
Other
6 stars 9 forks source link

Fix for localized installation #24

Closed samuelsov closed 3 years ago

samuelsov commented 3 years ago

In localized installation, when pushing contributions to quickbooks, we receive errors like:

Failed to store 27 with error AccountInvoice object for 3 is empty.

This is due to the fact that getoptions return labels by default. It's fine for CiviCRM installation where the labels are just an capitalized version of the machine name. For all other installation, this fix is required.

context = "validate" force the api to return the name instead of the (localized) label.

agileware-justin commented 3 years ago

@samuelsov thanks very much for the PR, I'll get @agileware-fj to review