Skip to content

Admin order sync status is incorrect #369

@rhoerr

Description

@rhoerr

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

  1. Have a completed synced order
  2. Go to Admin > Sales > Orders and view the order
  3. See that the Information tab shows "Synced to TaxJar" with a sync date
  4. Click the TaxJar Information tab, and open the Sync Status section
  5. 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 .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions