- πΊπΈUnited States TomTech
Automatically closed because Drupal 7 security and bugfix support has ended β as of 5 January 2025. If the issue verifiably applies β to later versions, please reopen with details and update the version.
If same DocCode is passed to Avatax API for tax amount, it is returning an error "DocStatus is invalid for this operation". This will be a problem if user enters different Shipping address for same order.
File: commerce_avatax/includes/commerce_avatax_calc.inc
$request_body = array(
'Client' => 'DrupalCommerce-CommerceGuys,4.3',
'CompanyCode' => $ava_args['company_code'],
'DetailLevel' => 'Tax',
'Commit' => $ava_args['commit'],
'CurrencyCode' => $ava_args['currency_code'],
'DocType' => 'SalesInvoice',
'DocCode' => $ava_args['doc_code_prefix'] . '-' . $order->order_id . '',
'DocDate' => date("Y-m-d", $ava_args['doc_date']),
'CustomerCode' => $ava_args['user_id'],
'CustomerUsageType' => $ava_args['avatax_exemption_code'],
So on every new request we need to send a unique code with $order_id.
Closed: outdated
4.3
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Automatically closed because Drupal 7 security and bugfix support has ended β as of 5 January 2025. If the issue verifiably applies β to later versions, please reopen with details and update the version.