Magento version 2.4.6-p3
TaxJar extension version 2.2.0 (current release)
Viewing an admin order and then going to 'TaxJar Information' should show 'Last synced at {date}' if an order has synced. Instead, it always shows "This order has not been synced to TaxJar."
Steps to reproduce
- Have a completed synced order
- Go to Admin > Sales > Orders and view the order
- See that the Information tab shows "Synced to TaxJar" with a sync date
- Click the TaxJar Information tab, and open the Sync Status section
- See that it shows "This order has not been synced to TaxJar."
Tech details
The issue is related to
|
$formattedDate = $block->getFormattedSyncDate($order); |
There's no such getFormattedSyncDate method in the block. That causes the template to fail to obtain the sync date, and decide the order is unsynced.
It should be easily fixed by adding getFormattedSyncDate to https://github.com/taxjar/taxjar-magento2-extension/blob/ece47270a7e6b319031e95529c303c5317797a0a/Block/Adminhtml/Order/View/Tab/Taxjar/View/Info/Sync.php .
Magento version 2.4.6-p3
TaxJar extension version 2.2.0 (current release)
Viewing an admin order and then going to 'TaxJar Information' should show 'Last synced at {date}' if an order has synced. Instead, it always shows "This order has not been synced to TaxJar."
Steps to reproduce
Tech details
The issue is related to
taxjar-magento2-extension/view/adminhtml/templates/order/view/tab/taxjar/info/sync.phtml
Line 21 in ece4727
There's no such
getFormattedSyncDatemethod in the block. That causes the template to fail to obtain the sync date, and decide the order is unsynced.It should be easily fixed by adding
getFormattedSyncDateto https://github.com/taxjar/taxjar-magento2-extension/blob/ece47270a7e6b319031e95529c303c5317797a0a/Block/Adminhtml/Order/View/Tab/Taxjar/View/Info/Sync.php .