Skip to content

YP Analysis

Historical reference for Young Poong / ypScale integration planning. Source-of-truth contracts now live in .agents/rules/.

Source Systems

System Shape Relevance
yp PHP web app controller/model/view PHP, jTable, MySQL Business workflow comparison and module gap analysis.
ypScale Java desktop Swing, serial port scale, JDBC Scale portal replacement target.

YP Functional Areas

Area Source concepts CTC target modules
Local purchase / production local purchase, bale, production OMS inbound, WMS inventory
Export / outbound export orders, containers, shipping line OMS outbound, TMS booking
Scale serial scale capture, ticket print YMS scale, BMS scale-ticket
Rates commodity/freight rates BMS rate
Billing AP/AR style transaction data BMS transaction/invoice
Brokerage 3PL broker flows future CRM/TMS extension

Integration Value

  • Replace desktop scale dependency with web scale portal.
  • Reuse CTC tenant/module platform instead of porting YP structure directly.
  • Map rate, commodity, purchase, export, and ticket concepts into existing CTC modules.
  • Preserve auditable writes and tenant scope.

Risks

  • Scale hardware integration may require local browser/device bridge work.
  • Desktop direct DB writes must not be copied into the web app.
  • YP table names and status values should be normalized into CTC canonical tables.
  • Migration must not bypass module guard or CLIENT_ID rules.

Migration Implications

  • Keep scale portal as a pilot module, not a framework rewrite.
  • Treat YP data as input to CTC module contracts.
  • Use BMS/YMS ownership split: weight capture belongs to YMS scale; billing validation belongs to BMS scale-ticket.

Sources

  • Product model: docs/PRODUCT.md; target design: docs/DESIGN.md
  • API contracts: .agents/rules/API_CONTRACTS.md
  • DB ownership: .agents/rules/DB_SCHEMA.md
  • Current migration status: .agents/rules/API_V2_CONTRACT_INVENTORY.md
  • Future migration order: docs/ROADMAP.md P2/P5 Tasks

---

Source: .agents/reference/YP_ANALYSIS.md — ctc repository · This page is an English translation of the source document. Identifiers, file paths and code symbols are unchanged.