added product import and billing integration
This commit is contained in:
@@ -79,15 +79,19 @@ final catalogueSourceProvider = Provider<CatalogueSource>((ref) {
|
||||
// ------------------------------------------------------------------- Sync
|
||||
/// How this terminal reaches the back office.
|
||||
///
|
||||
/// Defaults to the simulated route so a fresh install is usable with no broker
|
||||
/// and no endpoint; Settings re-points it.
|
||||
/// Defaults to this store's live HTTP endpoint, so importing works out of the
|
||||
/// box against real products rather than the offline demo catalogue.
|
||||
/// Settings → Connectivity & sync → Configure re-points it to a different
|
||||
/// store, endpoint, or transport without a rebuild.
|
||||
///
|
||||
/// Store and terminal ids always come from this device's own identity, never
|
||||
/// from a literal — two terminals publishing on the same topic is the failure
|
||||
/// this exists to prevent.
|
||||
/// Terminal id always comes from this device's own identity, never from a
|
||||
/// literal — two terminals publishing on the same topic is the failure this
|
||||
/// exists to prevent.
|
||||
final syncConfigProvider = StateProvider<SyncConfig>((ref) {
|
||||
final terminal = ref.watch(terminalIdentityProvider);
|
||||
return SyncConfig(
|
||||
transport: TransportKind.http,
|
||||
httpBaseUrl: 'https://fiesta.nearle.app/live/api/v1/pos',
|
||||
storeId: terminal.storeId,
|
||||
terminalId: terminal.code,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user