Cane Agency · Change Proposal (ACCEPTED — applied graph-first, spec v10.0)สถาบันอ้อย · ข้อเสนอการเปลี่ยนแปลง (อนุมัติแล้ว — นำเข้า graph แล้ว spec v10.0)
| The claim todayข้ออ้างในปัจจุบัน | Why it is wrongทำไมจึงผิด | The correctionการแก้ |
|---|---|---|
| C1 "Faster settlement — 14 → 3 days from delivery to payment" (SPEC-PRD Section 2; echoed on the website)"ปิดงวดจ่ายเงินเร็วขึ้น — 14 → 3 วัน จากส่งมอบถึงจ่ายเงิน" (SPEC-PRD ข้อ 2; ซ้ำบนเว็บไซต์) | The Sugarcane & Sugar Act mandates the schedule. A mill cannot — and legally may not — pay in 3 days. Payment is split in two and tied to the factory's fixed payment cycle. The platform cannot accelerate a statutory schedule; promising to is misleading and non-compliant.พ.ร.บ. อ้อยและน้ำตาลทราย กำหนดตารางการจ่ายไว้ โรงงานจ่ายภายใน 3 วันไม่ได้และตามกฎหมายก็ห้าม การจ่ายแบ่งเป็นสองงวดและผูกกับรอบจ่ายเงินคงที่ของโรงงาน platform เร่งตารางที่กฎหมายกำหนดไม่ได้ การสัญญาเช่นนั้นทำให้เข้าใจผิดและไม่เป็นไปตามกฎหมาย | Model the statutory two-installment scheduleจำลองการจ่ายสองงวดตามกฎหมาย and sell certainty & transparency, not speed (Section 3, Section 5).และขายความแน่นอนและความโปร่งใส ไม่ใช่ความเร็ว (ข้อ 3, ข้อ 5) |
| C2 "CCS visible to the farmer within 24 h — 100%", from an on-site mill lab that "publishes per-truck CCS the same day" (SPEC-PRD Section 2; SPEC-*-MILL; graph quality)"ชาวไร่เห็นค่า CCS ภายใน 24 ชม. — 100%" จากแล็บในโรงงานที่ "ประกาศ CCS รายคันรถวันเดียวกัน" (SPEC-PRD ข้อ 2; SPEC-*-MILL; graph quality) | CCS is measured by the government agency (สอน.) that performs the juice measurement, and reaches the farmer on a re-note the farmer must read in person at the factory. It is not same-day, and the delivery↔CCS match is done manually by a human today.ค่า CCS วัดโดยหน่วยงานรัฐ (สอน.) ที่ทำการวัดค่าน้ำอ้อย และถึงมือชาวไร่ผ่านรีโน้ต (re-note) ที่ชาวไร่ต้องไปอ่านเองที่โรงงาน ไม่ใช่ภายในวันเดียว และการจับคู่การส่งมอบกับ CCS ปัจจุบันทำด้วยมือโดยคน | Split the two factsแยกข้อเท็จจริงสองส่วน: tonnage is known instantly at weigh-out; CCS appears as soon as the re-note data is received, auto-matched — no trip to the factory (Section 4).รู้น้ำหนัก (ตัน) ทันทีตอนชั่งออก; CCS ปรากฏทันทีที่ได้รับข้อมูลรีโน้ต จับคู่อัตโนมัติ ไม่ต้องไปโรงงาน (ข้อ 4) |
Both corrections make the product more compelling, not less. C1 turns a false speed promise into a real one — the farmer sees exactly which two dates money arrives and exactly how much, up front, computed from the mill's payment cycle and every deduction explained. C2 turns a broken "24-hour lab" claim into two honest ones — instant tonnage, and CCS delivered to the phone the moment the government's re-note lands, replacing an in-person trip and a manual match.
การแก้ทั้งสองทำให้ผลิตภัณฑ์น่าเชื่อถือขึ้น ไม่ใช่ลดลง C1 เปลี่ยนคำสัญญาเรื่องความเร็วที่ผิดให้เป็นสิ่งที่จริง — ชาวไร่เห็นสองวันที่เงินจะเข้าอย่างชัดเจนและยอดที่จะได้รับล่วงหน้า คำนวณจากรอบจ่ายของโรงงานพร้อมอธิบายทุกการหัก C2 เปลี่ยนคำอ้าง "แล็บ 24 ชั่วโมง" ที่ไม่จริง ให้เป็นสองข้อที่ซื่อตรง — รู้ตันทันที และ CCS ส่งถึงมือถือทันทีที่รีโน้ตของภาครัฐเข้าระบบ แทนการเดินทางไปโรงงานและการจับคู่ด้วยมือ
Both claims are load-bearing — they appear as headline goals, as domain-model assumptions, and as public marketing copy. The correction therefore reaches every layer.
ข้ออ้างทั้งสองเป็นแกนหลัก — ปรากฏทั้งในเป้าหมายหลัก สมมติฐานของแบบจำลองโดเมน และข้อความการตลาดสาธารณะ การแก้จึงต้องไปถึงทุกชั้น
| Whereที่ใด | Current text (paraphrased)ข้อความปัจจุบัน (สรุป) | C1/C2 |
|---|---|---|
| SPEC-PRD Section 2 (goals)(เป้าหมาย) | "Faster settlement — 14 → 3 days"; "CCS visible within 24 h — 100%""ปิดงวดเร็วขึ้น 14 → 3 วัน"; "เห็น CCS ภายใน 24 ชม. 100%" | C1 · C2 |
| SPEC-PRD-CFC Section metricsข้อ ตัวชี้วัด | "CCS visible to the farmer within 24 h — 100%""ชาวไร่เห็น CCS ภายใน 24 ชม. 100%" | C2 |
| SPEC-PRD-GOV Section metricsข้อ ตัวชี้วัด | "Per-truck CCS visible to สอน. within 24 h of sampling""CCS รายคันรถที่ สอน. เห็นภายใน 24 ชม. หลังเก็บตัวอย่าง" | C2 |
| graph quality / QualityTest | "on-site lab, a juice sample from EVERY truck, per-truck results published same day""แล็บในโรงงาน เก็บน้ำอ้อยทุกคันรถ ประกาศผลรายคันรถวันเดียวกัน" | C2 |
| SPEC-ERD/DDD/PWF-MILL | "my on-site lab's per-truck result, published same day"; WF-04 "post CCS same day""ผลรายคันรถจากแล็บของฉัน ประกาศวันเดียวกัน"; WF-04 "ลง CCS วันเดียวกัน" | C2 |
| delivery state machine (SPEC-PWF Section 7)(SPEC-PWF Section 7) | single accepted → settled on one PaymentPosted eventaccepted → settled ครั้งเดียวด้วย event PaymentPosted เดียว | C1 |
| web/ — index, how-it-works, for/farmer, for/mill, for/quota, learn/faq | "get paid faster", 3-day / 14-day proof stats, "CCS within 24 h""รับเงินเร็วขึ้น" สถิติ 3 วัน / 14 วัน "CCS ภายใน 24 ชม." | C1 · C2 |
| drafts/prop-007-* wireframeswireframe | "3 วัน / เดิม 14 วัน", "เห็นเงินใน 3 วัน — ไม่ใช่ 3 สัปดาห์""3 วัน / เดิม 14 วัน", "เห็นเงินใน 3 วัน — ไม่ใช่ 3 สัปดาห์" | C1 |
The Sugarcane & Sugar Act fixes when a mill pays for delivered cane. On delivery of cane to the factory with the delivery note, the payment is made in two parts against the factory's own fixed payment cycle:
พ.ร.บ. อ้อยและน้ำตาลทราย กำหนดเวลาที่โรงงานต้องจ่ายค่าอ้อยที่ส่งมอบ เมื่อส่งอ้อยถึงโรงงานพร้อมใบส่งอ้อย (delivery note) การจ่ายจะทำเป็นสองส่วน อิงกับรอบจ่ายเงินคงที่ของโรงงานเอง:
Worked example (Angvian Sugar Factory). Angvian runs two scheduled payment days each month — the 7th and the 22nd. A farmer who delivers on 1 February receives:
ตัวอย่างจริง (โรงงานน้ำตาล Angvian). Angvian มีวันจ่ายเงินตามกำหนดสองวันต่อเดือน — วันที่ 7 และวันที่ 22 ชาวไร่ที่ส่งอ้อยวันที่ 1 กุมภาพันธ์ จะได้รับ:
So the honest promise is not "3 days" — it is: "deliver on 1 Feb, and you will receive 50% on 7 Feb and the balance on 7 Mar — both dates and both amounts shown the moment your delivery is accepted." The platform's job is to compute those dates from the mill's schedule, show them up front, and explain every deduction on each installment — never to shorten them.
ดังนั้นคำสัญญาที่ซื่อตรงจึงไม่ใช่ "3 วัน" แต่คือ: "ส่งวันที่ 1 ก.พ. รับ 50% วันที่ 7 ก.พ. และส่วนที่เหลือวันที่ 7 มี.ค. — เห็นทั้งสองวันและทั้งสองยอดทันทีที่การส่งมอบได้รับการตรวจรับ" หน้าที่ของ platform คือคำนวณวันเหล่านั้นจากรอบจ่ายของโรงงาน แสดงล่วงหน้า และอธิบายทุกการหักในแต่ละงวด ไม่ใช่ทำให้เร็วขึ้น
The two installments are on the initial price (ราคาขั้นต้น); the final price is trued up before next season. The 50 / 50 split is computed on the สอน. initial price. The final price (ราคาขั้นสุดท้าย) is settled separately, before the next season begins: if final − initial is positive, the factory pays the farmer the difference; if negative, the Cane & Sugar Fund (กองทุนอ้อยและน้ำตาลทราย, กอน.) owes the factory and arranges payment subject to fund availability. This year-end true-up is a third, separate payment — not one of the two timing installments — modelled as FinalPriceSettlement (Section 6).
สองงวดคำนวณจากราคาขั้นต้น; ราคาขั้นสุดท้ายสรุปก่อนฤดูถัดไป การแบ่ง 50 / 50 คำนวณจากราคาขั้นต้นของ สอน. ส่วนราคาขั้นสุดท้ายสรุปแยกต่างหาก ก่อนเริ่มฤดูถัดไป: ถ้า ราคาสุดท้าย − ราคาขั้นต้น เป็นบวก โรงงานจ่ายส่วนต่างให้ชาวไร่; ถ้าลบ กองทุนอ้อยและน้ำตาลทราย (กอน.) เป็นหนี้โรงงานและจัดการจ่ายตามสภาพเงินในกองทุน การสรุปปลายปีนี้เป็นการจ่ายที่สาม แยกต่างหาก — ไม่ใช่หนึ่งในสองงวดด้านเวลา — จำลองเป็น FinalPriceSettlement (ข้อ 6)
Deductions spread across cycles. เงินเกี๊ยว / loan repayment offsets are taken from the first installment, spread across multiple payment-cycle dues rather than all at once, so a single payout is never wiped out (FR-07).
การหักกระจายข้ามรอบ การหักกลบเงินเกี๊ยว / สินเชื่อ หักจากงวดแรก โดยกระจายข้ามหลายรอบจ่าย ไม่ใช่หักครั้งเดียว เพื่อไม่ให้การจ่ายรอบใดถูกหักจนหมด (FR-07)
Two different facts are being wrongly bundled into one "24-hour on-site lab" claim. Separated, they are both true and both valuable:
มีข้อเท็จจริงสองเรื่องที่ถูกยัดรวมผิด ๆ เป็นข้ออ้าง "แล็บ 24 ชั่วโมง" เดียว เมื่อแยกออกมา ทั้งสองเป็นจริงและมีคุณค่าทั้งคู่:
The opportunity. This manual, in-person process is exactly what the platform should automate — a concrete benefit to both the farmer and the factory. As soon as the re-note data is received, the platform ingests it, auto-matches each CCS line to the delivery, and surfaces it online — on the mobile app for farmers, and on the portal for quota farmers — so no one drives to the factory to read a slip, and no one matches rows by hand. The claim becomes: "see your tonnage the instant you deliver, and your CCS the instant the government data arrives" — honest about the source and the timing, while still removing the real friction.
โอกาส กระบวนการที่ต้องทำด้วยมือและไปด้วยตนเองนี้ คือสิ่งที่ platform ควรทำให้อัตโนมัติ — เป็นประโยชน์ที่จับต้องได้ทั้งต่อชาวไร่และโรงงาน ทันทีที่ได้รับข้อมูลรีโน้ต platform จะนำเข้าข้อมูล จับคู่ค่า CCS แต่ละบรรทัดกับการส่งมอบโดยอัตโนมัติ และแสดงออนไลน์ — บนแอปมือถือสำหรับชาวไร่ และบน portal สำหรับหัวหน้าโควต้า — จึงไม่มีใครต้องขับรถไปอ่านสลิปที่โรงงาน และไม่มีใครต้องจับคู่รายการด้วยมือ ข้ออ้างจึงกลายเป็น: "เห็นน้ำหนักทันทีที่ส่งมอบ และเห็น CCS ทันทีที่ข้อมูลจากภาครัฐเข้าระบบ" — ซื่อตรงทั้งแหล่งที่มาและเวลา ในขณะที่ยังขจัดความยุ่งยากที่มีอยู่จริง
| Goal (SPEC-PRD Section 2)เป้าหมาย (SPEC-PRD ข้อ 2) | Corrected metricตัวชี้วัดที่แก้แล้ว | Targetเป้า |
|---|---|---|
| Faster settlement — 14 → 3 daysปิดงวดเร็วขึ้น 14 → 3 วัน On-time, transparent settlementจ่ายตรงกำหนด โปร่งใส | Installments posted on the statutory cycle date; both dates + amounts shown at acceptanceจ่ายแต่ละงวดตรงวันตามกฎหมาย; แสดงทั้งสองวันและยอดตั้งแต่ตอนตรวจรับ | 100% |
| Instant tonnageรู้น้ำหนักทันที | Net tonnage visible to the farmer at weigh-out (real time)ชาวไร่เห็นน้ำหนักสุทธิตอนชั่งออก (เรียลไทม์) | 100% |
| CCS within 24 hCCS ภายใน 24 ชม. CCS online on receiptCCS ออนไลน์เมื่อได้รับ | CCS auto-matched & visible online once the government re-note is received (no in-person trip)CCS จับคู่อัตโนมัติและเห็นออนไลน์เมื่อได้รับรีโน้ตของรัฐ (ไม่ต้องไปเอง) | 100% |
The removed metric — "days from delivery to payment: 14 → 3" — is deleted, not re-baselined. Speed is set by law, so it is not a product KPI. The new value proposition is certainty (you know both dates and amounts in advance) and transparency (every deduction on every installment is explained).
ตัวชี้วัดที่ถอดออก — "จำนวนวันจากส่งมอบถึงจ่ายเงิน 14 → 3" — ถูกลบ ไม่ใช่ตั้งฐานใหม่ ความเร็วกำหนดโดยกฎหมาย จึงไม่ใช่ KPI ของผลิตภัณฑ์ คุณค่าใหม่คือความแน่นอน (รู้ทั้งสองวันและยอดล่วงหน้า) และความโปร่งใส (อธิบายทุกการหักในทุกงวด)
Four new entities and a handful of attribute changes carry both corrections. The settlement pieces sit in the settlement context; the CCS piece in quality (per the Section 4 resolution — provisional + confirmed coexist).
entity ใหม่สี่ตัวและการแก้แอตทริบิวต์ไม่กี่จุดรองรับการแก้ทั้งสอง ส่วนการเงินอยู่ในบริบท settlement; ส่วน CCS อยู่ใน quality (ตามข้อสรุป ข้อ 4 — ค่าเบื้องต้นและค่ายืนยันอยู่ร่วมกัน)
| EntityEntity | Attributesแอตทริบิวต์ | Notesหมายเหตุ |
|---|---|---|
| MillPaymentSchedule ตารางจ่ายเงินของโรงงาน MPS-#### |
schedule_id, mill_id, season_id, cycle_days[], first_pct, second_offset_days, effective_from | The mill's fixed payment cycle (e.g. cycle_days = [7, 22]). first_pct = 50, second_offset_days = 30 seed the statutory defaults but are stored so a compliant variation is representable. Drives due-date computation (Section 3). Context settlement.รอบจ่ายคงที่ของโรงงาน (เช่น cycle_days = [7, 22]) first_pct = 50, second_offset_days = 30 เป็นค่าตั้งต้นตามกฎหมาย แต่เก็บไว้เพื่อให้รองรับความต่างที่ยังชอบด้วยกฎหมาย ใช้คำนวณวันครบกำหนด (ข้อ 3) บริบท settlement |
| PaymentInstallment งวดย่อยของการจ่าย PIN-######### |
installment_id, item_id, installment_no, pct, amount, batch_id, due_date, posted_at?, status | Append-only. Two per PaymentItem, computed on the initial price (ราคาขั้นต้น): installment_no 1 (50%, first cycle) and 2 (50%, +30d cycle). due_date computed from MillPaymentSchedule; batch_id links the PaymentBatch (cycle) that pays it; status: scheduled | posted. เงินเกี๊ยว / loan offsets deduct from installment 1, spread across multiple cycles (A4). PaymentItem keeps net_amt as the delivery total at initial price; the final-price true-up posts separately (FinalPriceSettlement).append-only สองงวดต่อ PaymentItem คำนวณจากราคาขั้นต้น: installment_no 1 (50% รอบแรก) และ 2 (50% รอบ +30 วัน) due_date คำนวณจาก MillPaymentSchedule; batch_id โยงกับ PaymentBatch (รอบ) ที่จ่าย; status: scheduled | posted การหักเงินเกี๊ยว / สินเชื่อ หักจากงวด 1 กระจายข้ามหลายรอบ (A4) PaymentItem เก็บ net_amt เป็นยอดรวมที่ราคาขั้นต้น; การสรุปราคาสุดท้ายลงแยกต่างหาก (FinalPriceSettlement) |
| CcsReNote รีโน้ต CCS (จากภาครัฐ) RN-25##-#### |
renote_id, mill_id, season_id, gov_ref, issued_at, received_at, source | The government (สอน.) re-note carrying authoritative CCS lines. MVP channel: the mill uploads the สอน. paper/Excel; received_at is when the platform ingested it (the moment CCS can appear online); source = gov_juice_measurement. Each measurement row is tagged %N-### (crushing line · tipper slot · queue coin) and resolves to a QualityTest via auto-match on that tag; unmatched rows fall to a manual-match queue (FR-102).รีโน้ตของรัฐ (สอน.) ที่บรรจุค่า CCS ที่เป็นทางการ ช่องทาง MVP: โรงงานอัปโหลดกระดาษ/Excel ของ สอน.; received_at คือเวลาที่ platform นำเข้า (จุดที่ CCS ปรากฏออนไลน์ได้); source = gov_juice_measurement แต่ละแถวติดแท็ก %N-### (สายการหีบ · ช่องเท · เหรียญคิว) และจับคู่กับ QualityTest อัตโนมัติด้วยแท็กนั้น; แถวที่จับคู่ไม่ได้เข้าคิวจับคู่ด้วยมือ (FR-102) |
| FinalPriceSettlement การจ่ายส่วนต่างราคาสุดท้าย FPS-25##-#### |
settlement_id, mill_id, season_id, farmer_party_id, initial_price_id, final_price_id, diff_amt, payer, status, paid_at? | Per farmer per season (A3). diff_amt = (final − initial price) × settled tonnage (+ CCS terms). payer = factory when diff_amt ≥ 0 (factory pays the farmer); payer = cane_sugar_fund (กอน.) when negative (the Fund reimburses the factory, subject to fund availability). Paid before the next season begins, separate from the two installments. Context settlement.รายชาวไร่รายฤดู (A3) diff_amt = (ราคาสุดท้าย − ราคาขั้นต้น) × ตันที่จ่ายแล้ว (+ เงื่อนไข CCS) payer = factory เมื่อ diff_amt ≥ 0 (โรงงานจ่ายชาวไร่); payer = cane_sugar_fund (กอน.) เมื่อเป็นลบ (กองทุนชดเชยให้โรงงาน ตามสภาพเงินในกองทุน) จ่ายก่อนเริ่มฤดูถัดไป แยกจากสองงวด บริบท settlement |
Attribute changes on existing entities:
การแก้แอตทริบิวต์บน entity เดิม:
| EntityEntity | Changeการเปลี่ยนแปลง |
|---|---|
| QualityTest | Add status (provisional | confirmed), renote_id?, ccs_tag? (%N-###), available_at? (when CCS became known — distinct from delivery day) and match_method (auto | manual). Correct the source note: CCS is the government agency's juice measurement delivered by re-note — remove "published same day". sampled_at stays; lab_ref is re-scoped to the measurement reference, not an on-site lab (Q1: coexist).เพิ่ม status (provisional | confirmed), renote_id?, ccs_tag? (%N-###), available_at? (เวลาที่รู้ค่า CCS — คนละวันกับวันส่งมอบ) และ match_method (auto | manual) แก้หมายเหตุแหล่งที่มา: CCS คือการวัดน้ำอ้อยของหน่วยงานรัฐ ส่งผ่านรีโน้ต — ลบ "ประกาศวันเดียวกัน" sampled_at คงไว้; lab_ref ปรับเป็นการอ้างอิงการวัด ไม่ใช่แล็บในโรงงาน (Q1: อยู่ร่วมกัน) |
| PaymentBatch | Clarify that a batch is one payment cycle (a scheduled cycle_days run). Add cycle_date (the schedule date it fulfils). A single delivery is now paid across two batches via its two PaymentInstallments.ระบุให้ชัดว่า batch คือรอบจ่ายหนึ่งรอบ (การจ่ายตาม cycle_days) เพิ่ม cycle_date (วันตามตารางที่รอบนี้ทำ) การส่งมอบหนึ่งครั้งจ่ายผ่าน สอง batch ผ่าน PaymentInstallment สองงวด |
| Delivery / QueueTicket | A new intermediate state part_settled (first installment posted). Tonnage is already on WeighTicket.net_kg — no schema change, only a requirement that it surfaces in real time (FR-101). Also capture coin_no (the queue coin), crushing_line and tipper_slot — together the %N-### tag that keys CCS auto-match (FR-104).เพิ่มสถานะกลาง part_settled (จ่ายงวดแรกแล้ว) น้ำหนักอยู่บน WeighTicket.net_kg อยู่แล้ว — ไม่แก้ schema เพียงกำหนดให้แสดงเรียลไทม์ (FR-101) บันทึกเพิ่ม coin_no (เหรียญคิว), crushing_line และ tipper_slot — รวมกันเป็นแท็ก %N-### ที่ใช้จับคู่ CCS อัตโนมัติ (FR-104) |
The single accepted → settled jump hides the statutory reality. It splits into two posted events, one per installment; settled stays terminal and is only reached when the second installment posts.
การกระโดด accepted → settled ครั้งเดียวซ่อนความจริงตามกฎหมายไว้ ต้องแยกเป็นสอง event ตามงวด; settled ยังเป็นสถานะปลายทางและถึงได้ต่อเมื่อจ่ายงวดที่สอง
| Fromจาก | EventEvent | Toไป | Guardเงื่อนไข |
|---|---|---|---|
| accepted | PaymentPosted → FirstInstallmentPosted | part_settled จ่ายงวดแรกแล้ว | First PaymentBatch (cycle) approved; installment 1 (50%) posted; repayment offsets applied to this installment.PaymentBatch (รอบ) แรกอนุมัติ; งวด 1 (50%) จ่าย; หักกลบการชำระคืนกับงวดนี้ |
| part_settled | FinalInstallmentPosted | settled จ่ายครบแล้ว (terminal)(ปลายทาง) | Second PaymentBatch (cycle) approved on/after the +30d due date; installment 2 (remaining 50%) posted; terminal.PaymentBatch (รอบ) ที่สองอนุมัติในวันครบ +30 วันหรือหลังจากนั้น; งวด 2 (50% ที่เหลือ) จ่าย; ปลายทาง |
New state part_settled (จ่ายงวดแรกแล้ว) is added to the state list; all other states and transitions are unchanged. A delivery in part_settled shows the paid first installment and the scheduled date + amount of the second.
เพิ่มสถานะ part_settled (จ่ายงวดแรกแล้ว) ในรายการสถานะ ส่วนสถานะและทรานสิชันอื่นคงเดิม การส่งมอบที่อยู่ใน part_settled จะแสดงงวดแรกที่จ่ายแล้ว พร้อมวันและยอดของงวดที่สองที่กำหนดไว้
The final-price true-up is season-level, not a delivery state. A delivery reaches settled once both initial-price installments post; the later final-price payment (Section 3, FinalPriceSettlement) is reconciled per farmer per season across all deliveries and does not reopen the terminal state.
การสรุปราคาสุดท้ายเป็นระดับฤดู ไม่ใช่สถานะของการส่งมอบ การส่งมอบถึง settled เมื่อจ่ายครบสองงวดที่ราคาขั้นต้น; การจ่ายราคาสุดท้ายภายหลัง (ข้อ 3, FinalPriceSettlement) กระทบยอดรายชาวไร่รายฤดูรวมทุกการส่งมอบ และไม่เปิดสถานะปลายทางซ้ำ
IDs are provisional — if PROP-011 (draft, FR-95…98 / NFR-27…28) is accepted first, renumber from the next free block. Existing FR-06 (quality) and FR-07 (settlement) are reworded, not replaced.
รหัสเป็นค่าชั่วคราว — หาก PROP-011 (ร่าง FR-95…98 / NFR-27…28) อนุมัติก่อน ให้เลื่อนหมายเลขจากบล็อกว่างถัดไป FR-06 (คุณภาพ) และ FR-07 (การเงิน) เดิมถูกแก้ถ้อยคำ ไม่ใช่แทนที่
| ID | Requirementข้อกำหนด | Surfacesช่องทาง |
|---|---|---|
| FR-07 rewordแก้ถ้อยคำ | Settlement follows the statutory two-installment schedule on the initial price: 50% in the mill's next payment cycle after delivery, remaining 50% 30 days later; both installments computed, scheduled and shown at acceptance with itemized deductions; เงินเกี๊ยว / loan offsets deduct from installment 1, spread across multiple cyclesการจ่ายเป็นไปตามตารางสองงวดตามกฎหมาย บนราคาขั้นต้น: 50% ในรอบจ่ายถัดไปหลังส่งมอบ อีก 50% ใน 30 วันถัดมา; คำนวณ กำหนด และแสดงทั้งสองงวดตั้งแต่ตอนตรวจรับ พร้อมรายการหัก; หักเงินเกี๊ยว / สินเชื่อจากงวด 1 กระจายข้ามหลายรอบ | portal · mobile |
| FR-06 rewordแก้ถ้อยคำ | Net tonnage is captured at the weighbridge and surfaced to the farmer in real time; CCS is captured from the government re-note (not an on-site same-day lab)บันทึกน้ำหนักสุทธิที่แท่นชั่งและแสดงต่อชาวไร่เรียลไทม์; ค่า CCS มาจากรีโน้ตของรัฐ (ไม่ใช่แล็บในโรงงานแบบวันเดียวกัน) | portal · mobile |
| FR-99 new | Statutory due-date engine: compute each installment's due_date from MillPaymentSchedule (cycle_days, first_pct, second_offset_days); the platform must not post earlier than the statutory scheduleตัวคำนวณวันครบกำหนดตามกฎหมาย: คำนวณ due_date ของแต่ละงวดจาก MillPaymentSchedule; platform ต้องไม่จ่ายก่อนกำหนดตามกฎหมาย | portal · mobile |
| FR-100 new | Mill payment-schedule configuration: a mill sets its cycle_days (e.g. 7th & 22nd) per season; statutory 50 / +30d defaults are pre-seededตั้งค่าตารางจ่ายของโรงงาน: โรงงานกำหนด cycle_days (เช่น วันที่ 7 และ 22) รายฤดู; ตั้งต้น 50 / +30 วันตามกฎหมาย | portal |
| FR-101 new | Instant tonnage: the delivered net weight is visible to the farmer (mobile) and quota farmer (portal) at weigh-out, before CCS or paymentรู้น้ำหนักทันที: น้ำหนักสุทธิที่ส่งมอบเห็นได้โดยชาวไร่ (มือถือ) และหัวหน้าโควต้า (portal) ตอนชั่งออก ก่อน CCS หรือการจ่าย | mobile · portal |
| FR-102 new | CCS re-note ingestion & auto-match: ingest the government re-note (MVP: mill upload of the สอน. paper/Excel), auto-match each row to its delivery on the %N-### tag, surface CCS online on received_at; a manual-match fallback with an audit trailนำเข้ารีโน้ต CCS และจับคู่อัตโนมัติ: นำเข้ารีโน้ตของรัฐ (MVP: โรงงานอัปโหลดกระดาษ/Excel ของ สอน.) จับคู่แต่ละแถวกับการส่งมอบด้วยแท็ก %N-### แสดง CCS ออนไลน์ ณ received_at; มีทางเลือกจับคู่ด้วยมือพร้อมร่องรอยตรวจสอบ | portal · mobile |
| FR-103 new | Final-price true-up: at season end, settle (final − initial price) × tonnage per farmer; the factory pays the farmer when positive; when negative the Cane & Sugar Fund (กอน.) reimburses the factory, subject to fund availabilityการสรุปราคาสุดท้าย: สิ้นฤดู คิดส่วนต่าง (ราคาสุดท้าย − ราคาขั้นต้น) × ตัน รายชาวไร่; เป็นบวกโรงงานจ่ายชาวไร่; เป็นลบกองทุนอ้อยและน้ำตาลทราย (กอน.) ชดเชยให้โรงงาน ตามสภาพเงินในกองทุน | portal · mobile |
| FR-104 new | CCS match-tag capture: record crushing_line, tipper_slot and the queue coin_no per delivery to form the %N-### tag used to auto-match re-note rowsเก็บคีย์จับคู่ CCS: บันทึก crushing_line, tipper_slot และเหรียญคิว coin_no ต่อการส่งมอบ เพื่อประกอบเป็นแท็ก %N-### ที่ใช้จับคู่แถวรีโน้ตอัตโนมัติ | portal |
| NFR-29 new | Legal compliance: settlement timing conforms to the Sugarcane & Sugar Act; no surface, metric or marketing claim may state or imply payment faster than the statutory scheduleความสอดคล้องทางกฎหมาย: กำหนดเวลาการจ่ายเป็นไปตาม พ.ร.บ. อ้อยและน้ำตาลทราย; ห้ามช่องทาง ตัวชี้วัด หรือข้อความการตลาดใดระบุหรือบอกเป็นนัยว่าจ่ายเร็วกว่ากำหนดตามกฎหมาย | — |
| NFR-30 new | CCS provenance: every displayed CCS records its source (gov_juice_measurement), its renote_id and its match_method; auto-matches are reproducible and manual matches are attributedที่มาของ CCS: ค่า CCS ที่แสดงทุกค่าบันทึกแหล่งที่มา (gov_juice_measurement) renote_id และ match_method; การจับคู่อัตโนมัติทำซ้ำได้ และการจับคู่ด้วยมือระบุผู้ทำ | — |
The public prototype repeats both wrong claims in farmer-facing marketing copy. Correct the copy in place — same layout, same components — replacing speed claims with certainty/transparency, and the "24-hour lab" with "instant tonnage · CCS on receipt".
ต้นแบบสาธารณะพูดซ้ำข้ออ้างที่ผิดทั้งสองในข้อความการตลาดที่ชาวไร่เห็น แก้ข้อความในที่เดิม — เค้าโครงเดิม component เดิม — เปลี่ยนข้ออ้างเรื่องความเร็วเป็นความแน่นอน/โปร่งใส และเปลี่ยน "แล็บ 24 ชั่วโมง" เป็น "รู้ตันทันที · CCS เมื่อได้รับ"
| Pageหน้า | Current (wrong)ปัจจุบัน (ผิด) | Corrected copyข้อความที่แก้แล้ว |
|---|---|---|
| index.html hero + proof statshero + สถิติ | "3 วัน / เดิม 14 วัน", "CCS ภายใน 24 ชม.""3 วัน / เดิม 14 วัน", "CCS ภายใน 24 ชม." | Keep the strong hero ("รู้ทันทีว่าจะได้เท่าไหร่"); replace proof stats with "รู้น้ำหนักทันที", "รู้ 2 วันจ่ายเงินล่วงหน้า", "CCS ออนไลน์ ไม่ต้องไปโรงงาน"คง hero ที่ดี ("รู้ทันทีว่าจะได้เท่าไหร่"); เปลี่ยนสถิติเป็น "รู้น้ำหนักทันที" "รู้ 2 วันจ่ายเงินล่วงหน้า" "CCS ออนไลน์ ไม่ต้องไปโรงงาน" |
| how-it-works.html | step "รับเงินเร็วขึ้น"; CCS "ทันที/วันเดียว"; HowTo schemaขั้น "รับเงินเร็วขึ้น"; CCS "ทันที/วันเดียว"; schema HowTo | Recast the payment step as "รับเงิน 2 งวดตามกำหนด — รู้วันและยอดล่วงหน้า"; CCS step "เห็น CCS เมื่อรีโน้ตเข้าระบบ"; update the HowTo JSON-LD to matchปรับขั้นการจ่ายเป็น "รับเงิน 2 งวดตามกำหนด — รู้วันและยอดล่วงหน้า"; ขั้น CCS "เห็น CCS เมื่อรีโน้ตเข้าระบบ"; แก้ JSON-LD HowTo ให้ตรง |
| for/farmer.html | title "รับเงินเร็วขึ้น"; "CCS ภายใน 24 ชม."หัวข้อ "รับเงินเร็วขึ้น"; "CCS ภายใน 24 ชม." | "ส่งอ้อย รู้น้ำหนักทันที · รู้กำหนดรับเงินชัดเจน"; CCS "ดูค่าความหวานออนไลน์ ไม่ต้องไปดูรีโน้ตที่โรงงาน""ส่งอ้อย รู้น้ำหนักทันที · รู้กำหนดรับเงินชัดเจน"; CCS "ดูค่าความหวานออนไลน์ ไม่ต้องไปดูรีโน้ตที่โรงงาน" |
| for/mill.html | "ปิดงวดจาก 14 เหลือ 3 วัน""ปิดงวดจาก 14 เหลือ 3 วัน" | "ปิดงวดตามกฎหมายอัตโนมัติ — คำนวณสองงวด ตรวจสอบได้ ลดข้อพิพาท" (drop the speed claim; keep the −40% gate-congestion stat, which is unrelated)"ปิดงวดตามกฎหมายอัตโนมัติ — คำนวณสองงวด ตรวจสอบได้ ลดข้อพิพาท" (ถอดข้ออ้างความเร็ว; คงสถิติ −40% คิวหน้าประตูที่ไม่เกี่ยวไว้) |
| for/quota.html | any 3-day / 24-h echoข้อความ 3 วัน / 24 ชม. ที่ซ้ำ | Network view: "เห็นน้ำหนักและกำหนดจ่ายของลูกไร่ทั้งเครือข่าย"; CCS online on receiptมุมมองเครือข่าย: "เห็นน้ำหนักและกำหนดจ่ายของลูกไร่ทั้งเครือข่าย"; CCS ออนไลน์เมื่อได้รับ |
| learn/faq.html | FAQ + FAQPage schema on payment speed / CCS timingFAQ + schema FAQPage เรื่องความเร็วจ่าย / เวลา CCS | Rewrite the payment & CCS Q&As to the statutory schedule and re-note source; update the JSON-LD answersเขียน Q&A การจ่ายและ CCS ใหม่ตามตารางกฎหมายและแหล่งที่มารีโน้ต; แก้คำตอบใน JSON-LD |
| drafts/prop-007-* | wireframe copy "3 วัน / เดิม 14 วัน", "เห็นเงินใน 3 วัน"ข้อความ wireframe "3 วัน / เดิม 14 วัน", "เห็นเงินใน 3 วัน" | Correct alongside so the source wireframes don't re-seed the error into future site buildsแก้ไปพร้อมกันเพื่อไม่ให้ wireframe ต้นทางพาข้อผิดพลาดกลับเข้าเว็บรุ่นถัดไป |
On acceptance, apply graph-first, then mirror into every affected document, bumping revs (see docs/graph/CLAUDE.md). The website is corrected in the same change set.
เมื่ออนุมัติ ให้นำเข้า graph ก่อน แล้วสะท้อนไปยังทุกเอกสารที่กระทบ พร้อมเพิ่มเลขเวอร์ชัน (ดู docs/graph/CLAUDE.md) เว็บไซต์แก้ในชุดการเปลี่ยนเดียวกัน
| Targetเป้าหมาย | Changeการเปลี่ยนแปลง |
|---|---|
| graph new + changed | Add entities MillPaymentSchedule, PaymentInstallment, CcsReNote, FinalPriceSettlement + edges; add part_settled state and split the accepted→settled transition into FirstInstallmentPosted / FinalInstallmentPosted; edit QualityTest (add status/ccs_tag) / PaymentBatch / quality-context notes; add Delivery match-tag attrs (coin_no/crushing_line/tipper_slot); add FR-99…104, NFR-29…30; reword FR-06/07; add glossary (delivery note, re-note, %N-### tag, payment cycle, installment, initial/final price, Cane & Sugar Fund กอน.).เพิ่ม entity MillPaymentSchedule, PaymentInstallment, CcsReNote, FinalPriceSettlement + เส้นเชื่อม; เพิ่มสถานะ part_settled และแยกทรานสิชัน accepted→settled เป็น FirstInstallmentPosted / FinalInstallmentPosted; แก้ QualityTest (เพิ่ม status/ccs_tag) / PaymentBatch / บริบท quality; เพิ่มแอตทริบิวต์แท็กบน Delivery (coin_no/crushing_line/tipper_slot); เพิ่ม FR-99…104, NFR-29…30; แก้ถ้อยคำ FR-06/07; เพิ่มคำศัพท์ (ใบส่งอ้อย, รีโน้ต, แท็ก %N-###, รอบจ่าย, งวดย่อย, ราคาขั้นต้น/สุดท้าย, กองทุนอ้อยและน้ำตาลทราย กอน.). |
| SPEC-APP extend | Reword FR-06/07; add FR-99…104, NFR-29…30; note the legal-compliance constraint (NFR-29) in constraints.แก้ถ้อยคำ FR-06/07; เพิ่ม FR-99…104, NFR-29…30; ระบุข้อจำกัดด้านกฎหมาย (NFR-29) ในส่วนข้อจำกัด |
| SPEC-PRD (+CFC/CFQ/MILL/GOV) extend | Replace the Section 2 goals table rows (delete "14→3 days"; add on-time settlement, instant tonnage, CCS-on-receipt); fix the CFC & GOV "within 24 h" metrics; reframe product promise to certainty + transparency.แทนแถวตารางเป้าหมาย ข้อ 2 (ลบ "14→3 วัน"; เพิ่มจ่ายตรงกำหนด รู้น้ำหนักทันที CCS เมื่อได้รับ); แก้ตัวชี้วัด "ภายใน 24 ชม." ใน CFC และ GOV; ปรับคำมั่นเป็นความแน่นอน + โปร่งใส |
| SPEC-ERD (+MILL/CFQ/CFC/GOV) extend | Add the three entities + relationships (Mill→MillPaymentSchedule, PaymentItem→PaymentInstallment, CcsReNote→QualityTest); correct the MILL "same-day lab" cell.เพิ่มสาม entity + ความสัมพันธ์ (Mill→MillPaymentSchedule, PaymentItem→PaymentInstallment, CcsReNote→QualityTest); แก้ช่อง "แล็บวันเดียวกัน" ของ MILL |
| SPEC-DDD (+perspectives) extend | settlement gains the schedule, installment & final-price aggregates; quality re-grounded to the government re-note source (Section 4 reconciliation); document NFR-29/30 invariants.settlement เพิ่มแอกกริเกตตาราง งวดย่อย และราคาสุดท้าย; quality ปรับให้อิงแหล่งที่มารีโน้ตของรัฐ (ปรับตาม ข้อ 4); บันทึกกฎ NFR-29/30 |
| SPEC-PWF (+perspectives) extend | Section 7 delivery state machine: add part_settled + the two posted events; WF-05 (settlement) becomes two-installment; WF-04 (quality) re-grounded to re-note ingestion + auto-match; remove "post CCS same day" in WF-04·MILL.ข้อ 7 state machine: เพิ่ม part_settled + สอง event; WF-05 (การจ่าย) เป็นสองงวด; WF-04 (คุณภาพ) อิงการนำเข้ารีโน้ต + จับคู่อัตโนมัติ; ลบ "ลง CCS วันเดียวกัน" ใน WF-04·MILL |
| SPEC-UIX extend | Delivery detail shows tonnage instantly, then the two scheduled installment dates+amounts, then CCS when the re-note lands; settlement screens present two installments; remove any "same-day CCS" affordance.หน้ารายละเอียดการส่งมอบแสดงน้ำหนักทันที ตามด้วยสองวัน+ยอดของงวดที่กำหนด แล้วจึง CCS เมื่อรีโน้ตเข้า; หน้าจอการจ่ายแสดงสองงวด; ลบส่วนที่สื่อว่า CCS วันเดียวกัน |
| web/ correct copy | Apply the Section 9 corrections across index, how-it-works, for/farmer, for/mill, for/quota, learn/faq (+ JSON-LD), and the prop-007 source wireframes.ใช้การแก้ ข้อ 9 ทั่ว index, how-it-works, for/farmer, for/mill, for/quota, learn/faq (+ JSON-LD) และ wireframe ต้นทาง prop-007 |
| Revเวอร์ชัน | Dateวันที่ | Changeการเปลี่ยนแปลง |
|---|---|---|
| 1.0 | 10 Jul 2026 | ACCEPTED and applied graph-first as spec v10.0: graph updated (entities MillPaymentSchedule · PaymentInstallment · CcsReNote · FinalPriceSettlement, part_settled + the two installment events, QualityTest/PaymentBatch/Delivery attrs, contexts, glossary); reworded FR-06/07 and added FR-95…100 / NFR-27…28 (renumbered from the provisional FR-99…104 / NFR-29…30 since PROP-011 was not accepted first); mirrored into SPEC-APP/PRD(+CFC/CFQ/MILL/GOV)/ERD/DDD/PWF(+perspectives)/UIX with rev bumps; corrected the web/ site copy + JSON-LD and the prop-007 wireframes. Note: the Cane & Sugar Fund is glossed CSF (not กอน., which is the Board) to match the established glossary.อนุมัติแล้ว และนำเข้าแบบ graph ก่อนเป็น spec v10.0: อัปเดต graph (entity ใหม่สี่ตัว, สถานะ part_settled + สอง event, แอตทริบิวต์ QualityTest/PaymentBatch/Delivery, บริบท, คำศัพท์); แก้ถ้อยคำ FR-06/07 และเพิ่ม FR-95…100 / NFR-27…28 (เลื่อนเลขจาก FR-99…104 / NFR-29…30 เพราะ PROP-011 ยังไม่อนุมัติ); สะท้อนเข้า SPEC ทุกชุด (+มุมมอง) พร้อมเพิ่มเลขเวอร์ชัน; แก้ข้อความเว็บไซต์ web/ + JSON-LD และ wireframe prop-007 หมายเหตุ: กองทุนอ้อยฯ ใช้ตัวย่อ CSF (ไม่ใช่ กอน. ซึ่งคือคณะกรรมการ) ให้ตรงกับอภิธานเดิม |
| 0.2 | 10 Jul 2026 | Folds in the graph owner's answers: (D1) CCS coexists as a provisional mill-received reading + a confirmed value, both the government agency's measurement — added QualityTest.status, re-scoped lab_ref; (D2) MVP ingestion is a mill upload of the สอน. paper/Excel, auto-matched on the %N-### tag (crushing line · tipper slot · queue coin) — added Delivery match-tag attrs + FR-104; (D3) the two installments are on the initial price, with a season-end final-price true-up (factory pays if positive; the Cane & Sugar Fund กอน. reimburses the factory if negative) — added FinalPriceSettlement + FR-103; (D4) offsets deduct from installment 1 spread across cycles. FR range now 99…104.นำคำตอบของเจ้าของ graph มาปรับ: (D1) CCS อยู่ร่วมกันเป็นค่าเบื้องต้นที่โรงงานรับมา + ค่ายืนยัน ทั้งคู่เป็นการวัดของหน่วยงานรัฐ — เพิ่ม QualityTest.status ปรับ lab_ref; (D2) ช่องทางนำเข้า MVP คือโรงงานอัปโหลดกระดาษ/Excel ของ สอน. จับคู่อัตโนมัติด้วยแท็ก %N-### (สายการหีบ · ช่องเท · เหรียญคิว) — เพิ่มแอตทริบิวต์แท็กบน Delivery + FR-104; (D3) สองงวดคำนวณจากราคาขั้นต้น มีการสรุปราคาสุดท้ายปลายฤดู (โรงงานจ่ายถ้าบวก; กองทุนอ้อยและน้ำตาลทราย กอน. ชดเชยโรงงานถ้าลบ) — เพิ่ม FinalPriceSettlement + FR-103; (D4) หักจากงวด 1 กระจายข้ามหลายรอบ ช่วง FR ตอนนี้ 99…104 |
| 0.1 | 10 Jul 2026 | Initial draft — corrects two factual errors: (C1) settlement is the statutory two-installment schedule (50% next cycle, 50% +30 days) per the Sugarcane & Sugar Act, not "14→3 days"; (C2) tonnage is instant at weigh-out while CCS is the government agency's juice measurement delivered by re-note (currently manual, in-person), which the platform should ingest, auto-match and surface online. Adds MillPaymentSchedule, PaymentInstallment, CcsReNote, a part_settled delivery state, FR-99…102 and NFR-29…30; rewords FR-06/07; plans PRD/ERD/DDD/PWF/UIX + web/ corrections. Not applied to the graph until accepted.ร่างแรก — แก้ข้อผิดพลาดสองข้อ: (C1) การจ่ายเป็นสองงวดตามกฎหมาย (50% รอบถัดไป, 50% +30 วัน) ตาม พ.ร.บ. อ้อยและน้ำตาลทราย ไม่ใช่ "14→3 วัน"; (C2) รู้น้ำหนักทันทีตอนชั่งออก ส่วน CCS คือการวัดน้ำอ้อยของหน่วยงานรัฐที่ส่งผ่านรีโน้ต (ปัจจุบันทำด้วยมือ ไปเอง) ซึ่ง platform ควรนำเข้า จับคู่อัตโนมัติ และแสดงออนไลน์ เพิ่ม MillPaymentSchedule, PaymentInstallment, CcsReNote, สถานะ part_settled, FR-99…102 และ NFR-29…30; แก้ถ้อยคำ FR-06/07; วางแผนแก้ PRD/ERD/DDD/PWF/UIX + web/ ยังไม่นำเข้า graph จนกว่าจะอนุมัติ |