Wrong logic in export for “VAT number valid” column
-
The detailed export to CSV logic looks broken to me. The logic is:
'VAT number valid' => empty($order['vatno_valid']) ? __('n/a', 'woocommerce-eu-vat-compliance') :
($order['vatno_valid'] ? __('Yes', 'woocommerce-eu-vat-compliance') : __('No', 'woocommerce-eu-vat-compliance')),But the field $order[‘vatno_valid’] can be equal to “false”, to the export will return Yes while it should return No.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this topic.