Project

General

Profile

Actions

Development #7114

open

Feature #7106: Product & Master Data Sync (M02)

Build Cashier unified master-data receiver & processor

Added by Kyle Chong 3 months ago. Updated 3 months ago.

Status:
New
Assignee:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Complete Date:

Description

Refer to: docs/planning/modules/M02_Product_Data_Sync.md

Implement the Cashier-side master-data synchronization service.

Cashier must be able to receive the same master-data event regardless of whether it arrives through Kafka or LAN.

Scope:

  • Receive events from configured Kafka or LAN transport.
  • Convert/pass received messages into the common M02 processing pipeline.
  • Validate Event ID, Entity, Operation and Version.
  • Process Add/Create.
  • Process Update.
  • Process Delete/Deactivate.
  • Update the local Cashier database/SQLite.
  • Prevent duplicate processing.
  • Prevent older events from overwriting newer local data.
  • Preserve historical transaction data when master records are deleted/deactivated.
  • Record processing success/failure.
  • Perform synchronization in the background without unnecessarily blocking cashier operation.

Expected design:

Kafka Receiver ─┐
├→ Master Data Processor → Local SQLite
LAN Receiver ───┘

Done when: Cashier correctly updates its local master data through either Kafka or LAN using the same processing logic.

Actions

Also available in: Atom PDF