Tally UI

OrderSyncNotices

OrderSyncNotices shows one sale's sync notices, the same ones OrdersList shows under each order, for an app's own order screen.

Import

import { OrderSyncNotices } from '@tallyui/components';

Usage

<OrderSyncNotices order={order} stuck={outbox.state.stuck}>
  {retryButton}
</OrderSyncNotices>

These are the notices OrdersList renders under each order, in the same order:

  • how long a stuck sale has gone without reaching the online store;
  • the refusal sentence, with no error code and never the store's own message;
  • a sale taken after its register closed;
  • local warnings;
  • a customer note that was not sent;
  • the customer's tax IDs, when the sale went to the store below order.create 12;
  • the order's custom fields (meta), on the same terms;
  • the lines whose edited SKU was not sent, by name (The edited SKU of <names> couldn't be sent to the store.);
  • your children (OrdersList puts its Retry button here);
  • the store's warnings.

It returns a fragment, so the notices stack in whatever container you give them.

Props

PropTypeDefaultDescription
orderPosOrderrequiredThe sale whose notices to show
stuckOutboxState['stuck']—The outbox's state.stuck; without it, no "hasn't reached the online store" line is shown
childrenReactNode—Rendered between the notes and the store's warnings, where OrdersList puts Retry

On this page