PROP-030 Rev 1.0 · 23 Jul 2026

Cane Agency · Change Proposal (ACCEPTED — applied as spec v0.21.0)สถาบันอ้อย · ข้อเสนอการเปลี่ยนแปลง (รับรองแล้ว — ปรับใช้เป็น spec v0.21.0)

Transfer stations (สถานีขนถ่าย) — a second intake front: station-as-quota-holder, dual-weight settlement, crane-token CCS attribution, and contractor loss liabilityสถานีขนถ่าย — แนวรับอ้อยที่สอง: สถานีเป็นเจ้าของโควตา การชำระสองน้ำหนัก การระบุ CCS ด้วยเหรียญเครน และภาระค่าสูญหายของผู้รับเหมา

Documentเอกสาร
PROP-030
Statusสถานะ
ACCEPTED & APPLIED — spec v0.21.0, 23 Jul 2026รับรองและปรับใช้แล้ว — spec v0.21.0, 23 ก.ค. 2569
Originที่มา
Spun out of PROP-029 Section 2.6 per its OQ-3 decision (client, 16 Jul 2026). Evidence base: the client's crush-season field document (สรุปข้อมูลการทำงาน หน้างานช่วงเปิดหีบ).แยกจากข้อ 2.6 ของ PROP-029 ตามคำตัดสิน OQ-3 (ลูกค้า 16 ก.ค. 2569) ฐานหลักฐาน: เอกสารหน้างานช่วงเปิดหีบของลูกค้า (สรุปข้อมูลการทำงาน หน้างานช่วงเปิดหีบ)
Kindประเภท
New domain — the transfer station as a first-class intake site: its own party, quota, stations, weighbridge, bill series, contractor fleet, and a settlement model distinct from direct-to-mill delivery.โดเมนใหม่ — สถานีขนถ่ายเป็นจุดรับอ้อยชั้นหนึ่ง: มี party โควตา สถานี ห้องชั่ง ชุดบิล กองรถผู้รับเหมา และโมเดลการชำระที่ต่างจากการส่งตรงโรงงาน
Depends onขึ้นกับ
A-36 chain (note form, per-mill ply routing) · PROP-029 (token/dump ground truth) · PROP-021 (station suite pattern) · PROP-012 (CCS correction — day-average mechanics, PROP-029 OQ-4) · PROP-025 (truck registry) · FR-17 (deduction family) · PROP-027 pattern for offline surfaces.สาย A-36 (แบบใบ เส้นทางสำเนารายโรงงาน) · PROP-029 (ข้อมูลจริงเหรียญ/เท) · PROP-021 (แบบแผนชุดสถานี) · PROP-012 (แก้ CCS — กลไกเฉลี่ยวัน, OQ-4 ของ PROP-029) · PROP-025 (ทะเบียนรถ) · FR-17 (ตระกูลหัก) · แบบแผน offline ของ PROP-027
Affectsกระทบ
Graph: +TransferStation, +TransferContractor, +TransferTruck (mother/daughter), +CraneToken, +StationBill, +HaulageSettlement, +LossClaim, +HaulageRateCard, +TransportCostPolicy, +TransferLossPolicy; new WF/FR series; ERD/DDD; SPEC-PRD/PWF/UIX station surfaces.graph: +TransferStation, +TransferContractor, +TransferTruck (แม่/ลูก), +CraneToken, +StationBill, +HaulageSettlement, +LossClaim, +HaulageRateCard, +TransportCostPolicy, +TransferLossPolicy; ชุด WF/FR ใหม่; ERD/DDD; surface สถานีใน SPEC-PRD/PWF/UIX
Version bumpการขยับเวอร์ชัน
MINOR — additive domain; direct-to-mill flows unchanged.MINOR — โดเมนส่วนเพิ่ม; flow ส่งตรงโรงงานไม่เปลี่ยน
Updatedปรับปรุงล่าสุด
23 Jul 2026

1. Summary1. สรุป

The pointใจความ Far-from-mill farmers deliver to a crane station, not the mill. The station weighs the farmer, pays the farmer on its scale, loads the cane onto contractor transfer trucks, and delivers to the mill under its own quota. That makes it three businesses in one record: a mini-mill toward farmers, a quota farmer toward the mill, and a logistics buyer toward contractors — with the contractor paid on the mill's scale and liable for the tonnage lost in between. The platform must model all three faces or the money will not reconcile. ชาวไร่ที่อยู่ไกลโรงงานส่งอ้อยที่สถานีเครน ไม่ใช่โรงงาน สถานีชั่งชาวไร่และจ่ายชาวไร่ตามตาชั่งของสถานี โหลดอ้อยขึ้นรถขนถ่ายของผู้รับเหมา แล้วส่งเข้าโรงงานภายใต้โควตาของตนเอง สถานีจึงเป็นสามธุรกิจในระเบียนเดียว: โรงงานจิ๋วต่อชาวไร่ ชาวไร่โควตาต่อโรงงาน และผู้ซื้อโลจิสติกส์ต่อผู้รับเหมา — โดยผู้รับเหมารับเงินตามตาชั่งโรงงานและรับผิดชอบน้ำหนักที่หายระหว่างทาง platform ต้องจำลองทั้งสามหน้า ไม่เช่นนั้นเงินจะกระทบยอดไม่ลง

2. Principles2. หลักการ

T1 — The station is a party with three facesสถานีเป็น party สามหน้าOne TransferStation record acts as intake site (toward farmers), quota holder (toward the mill), and haulage principal (toward contractors). Each face reuses the platform's existing machinery — station suite, quota/delivery, settlement — rather than a parallel system.ระเบียน TransferStation เดียวทำหน้าที่จุดรับอ้อย (ต่อชาวไร่) เจ้าของโควตา (ต่อโรงงาน) และผู้ว่าจ้างขนส่ง (ต่อผู้รับเหมา) แต่ละหน้าใช้เครื่องจักรเดิมของ platform — ชุดสถานี โควตา/การส่งมอบ การชำระ — ไม่สร้างระบบคู่ขนาน
T2 — Two scales, two settlements, one chain of custodyสองตาชั่ง สองการชำระ หนึ่งสายพิทักษ์อ้อยThe farmer settles on the station scale; the contractor settles on the mill scale — shortfall within the factory's accepted-loss threshold is forgiven, shortfall beyond it is charged to the contractor at the factory's per-kg rate. Every tonne is traceable station → transfer truck (mother/daughter) → mill weigh-in, so shortfall computes per transfer trip, not per season.ชาวไร่ชำระตามตาชั่งสถานี; ผู้รับเหมาชำระตามตาชั่งโรงงาน — น้ำหนักหายภายในเกณฑ์ค่าเผื่อที่โรงงานยอมรับไม่ถูกหัก ส่วนที่หายเกินเกณฑ์ถูกหักจากผู้รับเหมาตามอัตราบาท/กก. ที่โรงงานกำหนด ทุกตันตามรอยได้ สถานี → รถขนถ่าย (แม่/ลูก) → ชั่งเข้าโรงงาน ค่าสูญหายจึงคิดรายเที่ยว ไม่ใช่รายฤดู
T3 — Offline is the normal caseoffline คือกรณีปกติStations are remote: the day cuts at 24:00, data ships to the mill on a schedule (observed: every 2 h) with a physical-media fallback, and the ERP path makes it real-time when connectivity allows. Station surfaces follow the PROP-027 offline pattern — pre-fetched reference data, preliminary validation, reconcile at sync.สถานีอยู่ไกล: ตัดปิดวัน 24.00 น. ข้อมูลนำส่งโรงงานตามรอบ (ที่พบ: ทุก 2 ชม.) มี fallback สื่อกายภาพ และเส้นทาง ERP ทำให้ real-time เมื่อเน็ตเอื้อ surface สถานีใช้แบบแผน offline ของ PROP-027 — ดึงข้อมูลอ้างอิงล่วงหน้า ตรวจเบื้องต้น กระทบยอดตอน sync

3. Domain model3. โมเดลโดเมน

ObjectobjectWhat it holdsเก็บอะไร
TransferStationParty ref, mill, own quota number (identifies the origin station on every mill arrival), delivery-number prefix (10–99) with its derived 7-digit range (Section 3.1), GPS position (lat/long), weighbridge weighing capacity, road distance to the mill, crane(s), bill series config (ply routing — per station, A-36 (c)), day-cutoff time, sync schedule.อ้างอิง party, โรงงาน, เลขโควตาของตน (ระบุสถานีต้นทางทุกเที่ยวที่เข้าโรงงาน), prefix เลขที่ใบชั่ง (10–99) พร้อมช่วงเลข 7 หลักที่ได้ (ข้อ 3.1), พิกัด GPS (lat/long), พิกัดชั่งสูงสุดของตาชั่ง, ระยะทางถึงโรงงาน, เครน, config ชุดบิล (เส้นทางสำเนา — รายสถานี ตาม A-36 (c)), เวลาตัดปิดวัน, รอบ sync
TransferContractorRegistration dossier (house-registration copy, ID copy, vehicle book, bank-book page per the mill's designated bank), home station (exactly 1; emergency cross-station assist allowed as an event), sling purchases (cash, per line).เอกสารลงทะเบียน (สำเนาทะเบียนบ้าน บัตรประชาชน เล่มทะเบียนรถ หน้าบัญชีธนาคารตามที่โรงงานกำหนด), สถานีสังกัด (1 เดียว; ช่วยข้ามสถานีได้เป็น event ฉุกเฉิน), การซื้อลวดสลิง (เงินสด รายเส้น)
TransferTruckContractor ref, mother/daughter units with plates (PROP-025 registry), per-unit load state — CCS attribution needs to know which unit a farmer's cane landed on.อ้างอิงผู้รับเหมา, ตัวแม่/ลูกพร้อมทะเบียน (ทะเบียน PROP-025), สถานะโหลดรายตัว — การระบุ CCS ต้องรู้ว่าอ้อยของชาวไร่ลงตัวไหน
CraneTokenIssued by the crane at load time; tells the exit-weigh clerk which transfer unit (mother/daughter) received the farmer's cane. Surrendered at station exit weigh; the analog of the mill's เหรียญ pair.เครนออกตอนโหลด; บอกเจ้าหน้าที่ชั่งออกว่าอ้อยลงรถขนถ่ายตัวไหน (แม่/ลูก) คืนตอนชั่งออกสถานี; เทียบเท่าเหรียญคู่ของโรงงาน
StationBillThe station's ใบรับอ้อย: station weights, farmer, quota, transfer-unit link, ply routing per station config (observed: white+pink → farmer, yellow rides the transfer truck, blue stays). Supports cut & reopen when the transfer truck fills mid-load (truck weighs out and back in; old bill closes, new bill opens).ใบรับอ้อยของสถานี: น้ำหนักสถานี ชาวไร่ โควตา ลิงก์รถขนถ่าย เส้นทางสำเนาตาม config สถานี (ที่พบ: ขาว+ชมพู → ชาวไร่, เหลืองไปกับรถขนถ่าย, ฟ้าเก็บ) รองรับตัดและเปิดใหม่เมื่อรถขนถ่ายเต็มกลางคัน (รถชั่งออกแล้วเข้าใหม่; บิลเก่าปิด บิลใหม่เปิด)
HaulageSettlementPer transfer trip: mill weigh-in tonnage × announced rate − LossClaim; the farmer-side value never enters this record (T2).รายเที่ยวขนถ่าย: ตันชั่งเข้าโรงงาน × อัตราประกาศ − LossClaim; มูลค่าฝั่งชาวไร่ไม่เข้าระเบียนนี้ (T2)
HaulageRateCardPer contractor × station: the contractor's own price for the station→mill leg. A station holds rate cards from multiple contractors; trip allocation to a contractor is driven by availability and cost.รายผู้รับเหมา × สถานี: ราคาของผู้รับเหมาเองสำหรับช่วงสถานี→โรงงาน สถานีหนึ่งมี rate card จากผู้รับเหมาหลายราย; การจัดสรรเที่ยวให้ผู้รับเหมาใช้ความพร้อมและต้นทุนเป็นเกณฑ์
TransportCostPolicyMill-level, effective-dated: who bears the station→mill haulage cost — farmer (at the mill-set cost), shared in a mill-set ratio, or mill absorbs all. Adjustable mid-season in response to competition.ระดับโรงงาน มีผลตามช่วงวัน: ใครรับภาระค่าขนส่งสถานี→โรงงาน — ชาวไร่ (ตามราคาที่โรงงานกำหนด), แบ่งกันตามสัดส่วนที่โรงงานกำหนด หรือโรงงานรับทั้งหมด ปรับกลางฤดูได้ตามการแข่งขัน
TransferLossPolicyMill-level, effective-dated: the announced transfer-loss deduction applied to the farmer's settled weight — default 3%, adjustable to any % mid-season, or waived (0%) — the mill compensating rather than deducting — under competition.ระดับโรงงาน มีผลตามช่วงวัน: อัตราหักน้ำหนักสูญหายจากการขนถ่ายตามประกาศ ใช้กับน้ำหนักชำระของชาวไร่ — ค่าปกติ 3% ปรับเป็น % ใดก็ได้กลางฤดู หรือยกเว้นไม่หักเลย (0%) — โรงงานรับแทน — เพื่อการแข่งขัน
LossClaimShortfall beyond the factory's accepted-loss threshold (station-loaded tonnage vs mill weigh-in) × the factory's configured charge rate per kg — within-threshold loss is not deducted; threshold and rate are factory-portal settings (FR-T12); also raised on accidents — substitute trucks recorded by plate, contractor bears cost and shortfall, the affected farmer bills bundle to accounting as one set.น้ำหนักหายส่วนที่เกินเกณฑ์ค่าเผื่อที่โรงงานยอมรับ (ตันโหลดที่สถานี vs ชั่งเข้าโรงงาน) × อัตราหักต่อ กก. ที่โรงงานตั้ง — หายภายในเกณฑ์ไม่หัก; เกณฑ์และอัตราตั้งค่าใน portal โรงงาน (FR-T12); เกิดกรณีอุบัติเหตุด้วย — บันทึกทะเบียนรถทอย ผู้รับเหมารับผิดชอบค่าใช้จ่ายและน้ำหนักหาย บิลชาวไร่ที่เกี่ยวรวมส่งบัญชีเป็นชุดเดียว

3.1 Delivery-number namespace — one 7-digit series, prefix per station3.1 ชุดเลขที่ใบชั่ง — เลข 7 หลักชุดเดียว prefix รายสถานี

The ใบชั่งอ้อย at the factory weighbridge and at every transfer-station weighbridge is the same 4-ply form in one shared 7-digit delivery-number namespace. Numbers 1–999,999 mean the cane was weighed at the factory weighbridge; each transfer station carries a two-digit prefix NN (10–99) and issues within NN×100,000 + 1 … NN×100,000 + 99,999 — so a factory supports up to 90 stations, and any delivery number alone identifies its intake point.ใบชั่งอ้อยที่ห้องชั่งโรงงานและที่ห้องชั่งสถานีขนถ่ายทุกแห่งเป็นฟอร์ม 4 สำเนาแบบเดียวกัน ใช้ชุดเลขที่ใบชั่ง 7 หลักร่วมกัน เลข 1–999,999 หมายถึงชั่งที่ห้องชั่งโรงงาน; สถานีขนถ่ายแต่ละแห่งได้ prefix NN สองหลัก (10–99) และออกเลขในช่วง NN×100,000 + 1 … NN×100,000 + 99,999 — โรงงานหนึ่งจึงรองรับได้สูงสุด 90 สถานี และเลขที่ใบชั่งเลขเดียวบอกจุดรับอ้อยได้ทันที

Intake pointจุดรับอ้อยPrefixNumber rangeช่วงเลขที่
Factory weighbridgeห้องชั่งโรงงาน—1 – 999,999
Station นาแส้ง (example)สถานีนาแส้ง (ตัวอย่าง)101,000,001 – 1,099,999
Station เมืองคง (example)สถานีเมืองคง (ตัวอย่าง)111,100,001 – 1,199,999
… up to 90 stations per factory… สูงสุด 90 สถานีต่อโรงงาน999,900,001 – 9,999,999

4. Flows4. Flow

4.1 Station intake (farmer side)4.1 การรับอ้อยที่สถานี (ฝั่งชาวไร่)

แจ้งคิว → ชั่งเข้า (โควตา + ทะเบียน + จังหวัด, เกรดอ้อย) → รอโหลด → เครนโหลดขึ้นรถขนถ่าย + CraneToken (แม่/ลูก) → ชั่งออก (คืน token, บันทึกตัวที่โหลด) → พิมพ์ StationBill → [เต็มกลางคัน: ตัดบิล → ชั่งออก/เข้า → บิลใหม่]

CCS: every farmer load on a transfer unit takes that unit's CCS from the mill's analysis of that trip; direct-delivering อีแต๋น take the day-average CCS (provisional-until-cutoff mechanics — PROP-029 OQ-4, PROP-012).CCS: ทุกคันที่โหลดลงรถขนถ่ายตัวเดียวกันใช้ CCS ของตัวนั้นจากผลวิเคราะห์ของเที่ยวนั้นที่โรงงาน; อีแต๋นส่งตรงใช้ CCS เฉลี่ยวัน (กลไกชั่วคราวจนตัดปิดวัน — OQ-4 ของ PROP-029, PROP-012)

4.2 Mill delivery (station side)4.2 การส่งเข้าโรงงาน (ฝั่งสถานี)

รถขนถ่ายออกสถานี (ใบเหลืองแนบ + ใบชั่งย่อยของชาวไร่ทุกรายที่โหลดขึ้นคันนี้) → [น้ำหนักเกินพิกัดตาชั่ง: ขออนุมัติ ผอ.ฝ่ายจัดหาอ้อย ก่อนออก] → เข้าโรงงานภายใต้โควตาสถานี (เลขโควตาสถานีระบุต้นทาง) → ยื่นชุดใบชั่งย่อยทั้งหมด + ใบชั่งของรถขนถ่ายเองที่ห้องชั่งโรงงาน → ชั่งเข้าโรงงาน = ฐาน HaulageSettlement → เท → ชั่งออก

On arrival the transport truck surrenders every farmer sub-delivery note loaded onto it at the station, combined with its own delivery note, to the factory weighbridge — the mill reconciles the bundle against the truck's weigh-in. The station's designated quota number on the truck's note tells the weighbridge which station the cane came from.เมื่อถึงโรงงาน รถขนถ่ายต้องยื่นใบชั่งย่อยของชาวไร่ทุกใบที่โหลดขึ้นคันนี้ที่สถานี รวมกับใบชั่งของรถเอง ที่ห้องชั่งโรงงาน — โรงงานกระทบยอดทั้งชุดกับน้ำหนักชั่งเข้าของรถ เลขโควตาประจำสถานีบนใบชั่งของรถบอกห้องชั่งว่าอ้อยมาจากสถานีใด

4.3 Data custody4.3 การนำส่งข้อมูล

บันทึกที่สถานี (offline-first) → sync ทุก 2 ชม. / ERP real-time → ฉุกเฉิน: สื่อกายภาพ → ตัดปิดวัน 24.00 → เปิดวันใหม่ → กระทบยอดกับโรงงาน

5. Requirements (draft numbering — renumbered at application: FR-T1…T12 → FR-173…184, NFR-T1 → NFR-57; flows → WF-70…72)5. ข้อกำหนด (เลขร่าง — ขยับตอนปรับใช้: FR-T1…T12 → FR-173…184, NFR-T1 → NFR-57; flow → WF-70…72)

IDRequirementข้อกำหนด
FR-T1A TransferStation is a party holding its own quota number and acts as delivery origin toward the mill; its farmer-side deliveries settle on station weights.TransferStation เป็น party ถือเลขโควตาของตน และเป็นต้นทางการส่งต่อโรงงาน; การส่งฝั่งชาวไร่ชำระตามน้ำหนักสถานี
FR-T2Contractor registration captures the four-document dossier and exactly one home station; cross-station assists are logged events requiring station-side confirmation.การลงทะเบียนผู้รับเหมาเก็บเอกสาร 4 รายการ และสถานีสังกัด 1 เดียว; การช่วยข้ามสถานีเป็น event ที่บันทึกและต้องยืนยันฝั่งสถานี
FR-T3CraneToken links every farmer load to a specific transfer unit (mother/daughter); CCS attribution resolves through that link; the link is verifiable at station exit weigh.CraneToken ผูกทุกการโหลดของชาวไร่กับรถขนถ่ายตัวใดตัวหนึ่ง (แม่/ลูก); การระบุ CCS ใช้ลิงก์นี้; ตรวจได้ตอนชั่งออกสถานี
FR-T4StationBill supports cut-and-reopen on a mid-load full truck; both bills keep the audit link to the same physical arrival.StationBill รองรับตัด-เปิดใหม่กรณีรถขนถ่ายเต็มกลางคัน; บิลทั้งสองคงลิงก์ตรวจสอบถึงการมาถึงครั้งเดียวกัน
FR-T5HaulageSettlement computes per transfer trip on mill weigh-in tonnage at the station's announced rate, net of LossClaim (shortfall beyond the accepted-loss threshold at the factory's per-kg charge rate — FR-T12). Accident trips attach substitute-truck plates and bundle affected farmer bills as one accounting set.HaulageSettlement คิดรายเที่ยวจากตันชั่งเข้าโรงงานตามอัตราประกาศของสถานี หัก LossClaim (น้ำหนักหายส่วนเกินเกณฑ์ค่าเผื่อ ตามอัตราต่อ กก. ที่โรงงานตั้ง — FR-T12) เที่ยวอุบัติเหตุแนบทะเบียนรถทอยและรวมบิลชาวไร่ที่เกี่ยวเป็นชุดบัญชีเดียว
FR-T6Overweight-beyond-scale departures require recorded approval by the cane-procurement director before the truck leaves the station.การออกจากสถานีของรถน้ำหนักเกินพิกัดตาชั่งต้องมีบันทึกอนุมัติจาก ผอ.ฝ่ายจัดหาอ้อย ก่อน
FR-T7Delivery numbers are one shared 7-digit series per mill: 1–999,999 = factory weighbridge; each station holds a unique prefix NN (10–99) issuing NN×100,000+1 … NN×100,000+99,999 (max 90 stations per mill). The station's note is the same 4-ply ใบชั่งอ้อย form as the factory's. On mill arrival the transfer truck submits all farmer sub-delivery notes it carries together with its own note at the factory weighbridge.เลขที่ใบชั่งเป็นชุด 7 หลักชุดเดียวต่อโรงงาน: 1–999,999 = ห้องชั่งโรงงาน; แต่ละสถานีถือ prefix NN (10–99) ไม่ซ้ำ ออกเลข NN×100,000+1 … NN×100,000+99,999 (สูงสุด 90 สถานีต่อโรงงาน) ใบชั่งของสถานีเป็นฟอร์มใบชั่งอ้อย 4 สำเนาแบบเดียวกับโรงงาน เมื่อถึงโรงงาน รถขนถ่ายยื่นใบชั่งย่อยของชาวไร่ทุกใบพร้อมใบชั่งของรถเองที่ห้องชั่งโรงงาน
FR-T8Every TransferStation record carries GPS position (lat/long), weighbridge weighing capacity, and road travel distance to the mill.ระเบียน TransferStation ทุกระเบียนเก็บพิกัด GPS (lat/long) พิกัดชั่งสูงสุดของตาชั่ง และระยะทางเดินทางถึงโรงงาน
FR-T9A station holds haulage rate cards from multiple contractors, each with its own station→mill price; trip allocation to contractors resolves on availability and cost.สถานีถือ rate card ค่าขนส่งจากผู้รับเหมาหลายราย ราคาช่วงสถานี→โรงงานของแต่ละราย; การจัดสรรเที่ยวให้ผู้รับเหมาตัดสินด้วยความพร้อมและต้นทุน
FR-T10The transport-cost bearer is mill-level, effective-dated policy: full pass-through to the farmer at the mill-set cost, shared in a mill-set ratio, or fully mill-borne — adjustable mid-season.ผู้รับภาระค่าขนส่งเป็นนโยบายระดับโรงงานมีผลตามช่วงวัน: ผลักให้ชาวไร่ทั้งหมดตามราคาที่โรงงานกำหนด แบ่งตามสัดส่วนที่โรงงานกำหนด หรือโรงงานรับทั้งหมด — ปรับกลางฤดูได้
FR-T11The transfer-loss deduction on the farmer's settled weight is a mill-level, effective-dated announced rate — default 3%, adjustable to any percentage mid-season, or waived entirely (0%, mill compensates) — never retroactive to already-settled bills.การหักน้ำหนักสูญหายจากการขนถ่ายจากน้ำหนักชำระของชาวไร่เป็นอัตราประกาศระดับโรงงานมีผลตามช่วงวัน — ค่าปกติ 3% ปรับเป็นกี่ % ก็ได้กลางฤดู หรือยกเว้นทั้งหมด (0% โรงงานรับแทน) — ไม่มีผลย้อนหลังกับบิลที่ชำระแล้ว
FR-T12Contractor loss settlement runs on two factory-portal settings, effective-dated and mid-season adjustable: the accepted-loss threshold (shortfall within it is never deducted from the contractor) and the charge rate per kg applied to shortfall above it.การชำระค่าสูญหายฝั่งผู้รับเหมาใช้ค่าตั้งสองตัวใน portal โรงงาน มีผลตามช่วงวันและปรับกลางฤดูได้: เกณฑ์ค่าเผื่อที่ยอมรับ (หายภายในเกณฑ์ไม่หักจากผู้รับเหมา) และอัตราหักต่อ กก. สำหรับส่วนที่หายเกินเกณฑ์
NFR-T1Station surfaces run offline-first with pre-fetched reference data, a 24:00 day cutoff, scheduled sync (default 2 h) with physical-media fallback, and full reconciliation on reconnect; ERP-connected stations stream in real time.surface สถานีทำงาน offline-first ด้วยข้อมูลอ้างอิงล่วงหน้า ตัดปิดวัน 24.00 sync ตามรอบ (ค่าเริ่มต้น 2 ชม.) มี fallback สื่อกายภาพ และกระทบยอดเต็มเมื่อเชื่อมต่อ; สถานีที่ต่อ ERP ส่งแบบ real-time

6. Open questions6. คำถามเปิด

OQ-1 Who pays the farmer at a transfer station — the station or the mill?ใครจ่ายชาวไร่ที่สถานีขนถ่าย — สถานีหรือโรงงาน?

The farmer settles on station weights, but the payer of record (and whose payment pipeline/deduction stack applies — tax, association, fuel) is unstated. If the mill pays through the station's quota, the station is a pass-through; if the station pays, it needs its own payroll surface.

ชาวไร่ชำระตามน้ำหนักสถานี แต่ผู้จ่ายตามบัญชี (และ pipeline การจ่าย/ลำดับหักของใคร — ภาษี สมาคม น้ำมัน) ยังไม่ระบุ ถ้าโรงงานจ่ายผ่านโควตาสถานี สถานีเป็นทางผ่าน; ถ้าสถานีจ่ายเอง ต้องมี surface payroll ของตน

De facto reading (16 Jul 2026) — rephrased as a confirm:การอ่านโดยพฤตินัย (16 ก.ค. 2569) — เขียนใหม่เป็นคำถามยืนยัน: the field notes say the station "is like a factory receiving cane and is the quota holder" — which implies the mill pays, through the station's quota (station = pass-through), with the standard deduction stack applied at the mill. Presumed default pending one confirmation: "Does the mill's payroll pay station farmers through the station's quota, with the same tax → association → fuel stack — yes or no?"บันทึกหน้างานว่าสถานี "เสมือนโรงงานรับอ้อย และเป็นเจ้าของโควตา" — ชี้ว่าโรงงานจ่าย ผ่านโควตาของสถานี (สถานี = ทางผ่าน) โดยใช้ลำดับหักมาตรฐานที่โรงงาน เป็นค่าเริ่มต้นที่สันนิษฐาน รอยืนยันข้อเดียว: "payroll ของโรงงานจ่ายชาวไร่สถานีผ่านโควตาสถานี ด้วยลำดับหัก ภาษี → สมาคม → น้ำมัน เดียวกัน — ใช่หรือไม่?"

CLOSED (client context, 23 Jul 2026):ปิดแล้ว (ข้อมูลลูกค้า 23 ก.ค. 2569): confirmed — the mill pays, through the station's quota; the station is a pass-through, not a payer. The Rev 0.4–0.5 context settles it: the farmer-side deductions are all mill-level policies set in the factory portal — the transfer-loss % (FR-T11) and the transport-cost share (FR-T10) — and the delivery notes live in the factory's own number namespace and are surrendered at the factory weighbridge (FR-T7). A station cannot apply mill policies it doesn't own; the mill's payroll runs the standard stack — tax → association → fuel — now extended with transport-cost share and transfer-loss deduction per policy in force.ยืนยัน — โรงงานเป็นผู้จ่าย ผ่านโควตาของสถานี; สถานีเป็นทางผ่าน ไม่ใช่ผู้จ่าย ข้อมูล Rev 0.4–0.5 ชี้ชัด: การหักฝั่งชาวไร่ทั้งหมดเป็นนโยบายระดับโรงงานที่ตั้งค่าใน portal โรงงาน — % สูญหายจากการขนถ่าย (FR-T11) และส่วนแบ่งค่าขนส่ง (FR-T10) — และใบชั่งอยู่ในชุดเลขของโรงงานเองและถูกยื่นที่ห้องชั่งโรงงาน (FR-T7) สถานีใช้นโยบายโรงงานที่ตนไม่ได้เป็นเจ้าของไม่ได้; payroll โรงงานใช้ลำดับหักมาตรฐาน ภาษี → สมาคม → น้ำมัน เพิ่มส่วนแบ่งค่าขนส่งและการหักสูญหายตามนโยบายที่มีผล

OQ-2 Can a farmer at a station use the fuel-credit service (PROP-027)?ชาวไร่ที่สถานีใช้บริการเครดิตน้ำมัน (PROP-027) ได้ไหม?

The StationBill is the analog of the mill's delivery note. Does a station petrol point exist, and does the once-per-note rule bind the StationBill too — including across a cut-and-reopen pair?

StationBill เทียบเท่าใบรับอ้อยโรงงาน มีจุดน้ำมันที่สถานีไหม และกฎครั้งเดียวต่อใบผูก StationBill ด้วยหรือไม่ — รวมถึงคู่บิลตัด-เปิดใหม่?

De facto reading (16 Jul 2026) — narrowed:การอ่านโดยพฤตินัย (16 ก.ค. 2569) — แคบลง: the field notes place the pump at the factory, reached after the factory exit weigh — station farmers never pass it, and no station pump is described. De facto: fuel credit is not available at stations today. The remaining question is forward-looking only: "May a factory opt to extend its PROP-027 service to a transfer station (its pump or a partner pump), or is the service factory-gate only by design?" If extended, the once-per-note rule binds the StationBill and a cut-and-reopen pair counts as two notes with two caps — confirm.บันทึกหน้างานระบุปั๊มอยู่ที่โรงงาน ถึงหลังชั่งออกโรงงาน — ชาวไร่ที่ส่งสถานีไม่ผ่านจุดนี้ และไม่มีการกล่าวถึงปั๊มที่สถานี โดยพฤตินัย: เครดิตน้ำมันยังไม่มีที่สถานีในปัจจุบัน คำถามที่เหลือมองไปข้างหน้าเท่านั้น: "โรงงาน opt ขยายบริการ PROP-027 ไปที่สถานีขนถ่ายได้ไหม หรือบริการนี้จำกัดหน้าโรงงานโดยเจตนา?" หากขยาย กฎครั้งเดียวต่อใบผูก StationBill และคู่บิลตัด-เปิดใหม่นับเป็นสองใบสองเพดาน — ขอยืนยัน

Premise refreshed (17 Jul 2026, OQ pass 2):ปรับข้อตั้ง (17 ก.ค. 2569, ทบทวน OQ รอบ 2): PROP-027 has since been ACCEPTED and applied (spec v0.10.0 — FR-114…119, NFR-35; unique(delivery_id) enforces the single fill). The question narrows to an extension ruling: is the StationBill a “note” for FR-114 purposes (a station petrol point registering as a FuelStation, the station being its own party), and how does once-per-note bind across cut-and-consolidate?PROP-027 ได้รับการรับรองและใช้แล้ว (spec v0.10.0 — FR-114…119, NFR-35; unique(delivery_id) บังคับเติมครั้งเดียว) คำถามจึงแคบลงเป็นการวินิจฉัยส่วนขยาย: StationBill นับเป็น “ใบส่ง” ตามความหมาย FR-114 หรือไม่ (จุดน้ำมันของสถานีลงทะเบียนเป็น FuelStation โดยสถานีเป็น party ของตนเอง) และกฎครั้งเดียวต่อใบผูกอย่างไรเมื่อมีการตัดรวมเที่ยว

CLOSED (client, 23 Jul 2026):ปิดแล้ว (ลูกค้า 23 ก.ค. 2569): There is no fuel credit at transfer stations. PROP-027 remains factory-gate only; the StationBill is NOT a "note" for FR-114 purposes, no station FuelStation registration exists, and the cut-and-reopen question is moot. Station farmers' fuel deductions can still appear in their mill payroll stack only if incurred at the factory pump on a factory delivery.ไม่มีเครดิตน้ำมันที่สถานีขนถ่าย PROP-027 จำกัดหน้าโรงงานเท่านั้น; StationBill ไม่นับเป็น "ใบส่ง" ตาม FR-114 ไม่มีการลงทะเบียน FuelStation ที่สถานี และคำถามบิลตัด-เปิดใหม่ตกไป การหักค่าน้ำมันของชาวไร่สถานีเกิดขึ้นได้เฉพาะเมื่อเติมที่ปั๊มโรงงานจากการส่งที่โรงงานเท่านั้น

OQ-3 Loss-rate mechanics: announced flat rate vs actual shortfall — which is it?กลไกค่าสูญหาย: อัตราประกาศคงที่ vs หายจริง — แบบไหน?

The source says both "loss rate per announcement" and "liable for actual weight lost". Likely: an announced tolerance, contractor liable only for shortfall beyond it. Needs the client's formula.

ต้นทางพูดทั้ง "อัตราค่าสูญหายตามประกาศ" และ "รับผิดชอบตามน้ำหนักหายจริง" น่าจะเป็น: ประกาศค่าเผื่อ ผู้รับเหมารับผิดชอบเฉพาะส่วนที่หายเกิน ต้องได้สูตรจากลูกค้า

Status (16 Jul 2026):สถานะ (16 ก.ค. 2569): genuinely open — no de facto answer in any evidence to date; the one PROP-030 question needing a real follow-up: "Write the loss formula: is there a tolerance? what rate? which announced price values the shortfall?"เปิดจริง — ยังไม่มีคำตอบโดยพฤตินัยในหลักฐานใด เป็นข้อเดียวของ PROP-030 ที่ต้องถามต่อจริง: "ขอสูตรค่าสูญหาย: มีค่าเผื่อไหม? อัตราเท่าไหร่? ใช้ราคาประกาศตัวไหนตีมูลค่าน้ำหนักที่หาย?"

Client input (23 Jul 2026) — narrowed:ข้อมูลลูกค้า (23 ก.ค. 2569) — แคบลง: the announced rate is now known: a farmer-side transfer-loss deduction, default 3%, mill-adjustable to any % mid-season and waivable to 0% (mill compensates) under competition — captured as TransferLossPolicy / FR-T11. What remains open is only the contractor-side formula: is the contractor liable for actual shortfall beyond the announced %, or for all actual shortfall — and which announced price values it?ทราบอัตราประกาศแล้ว: เป็นการหักน้ำหนักสูญหายฝั่งชาวไร่ ค่าปกติ 3% โรงงานปรับเป็นกี่ % ก็ได้กลางฤดู และยกเว้นเหลือ 0% ได้ (โรงงานรับแทน) เพื่อการแข่งขัน — บันทึกเป็น TransferLossPolicy / FR-T11 ที่ยังเปิดเหลือเฉพาะสูตรฝั่งผู้รับเหมา: ผู้รับเหมารับผิดชอบเฉพาะส่วนที่หายเกิน % ประกาศ หรือหายจริงทั้งหมด — และใช้ราคาประกาศตัวไหนตีมูลค่า?

CLOSED (client, 23 Jul 2026):ปิดแล้ว (ลูกค้า 23 ก.ค. 2569): the contractor formula is threshold + per-kg charge: the factory sets an accepted-loss threshold — shortfall within it is never deducted from the contractor; shortfall above it is charged at a factory-set price per kg of cane lost. Both the threshold and the charge rate are configured in the factory portal (FR-T12). This reconciles the source's two phrasings: "per announcement" = the announced threshold + rate; "actual weight lost" = only the actual above-threshold shortfall is charged.สูตรฝั่งผู้รับเหมาคือ เกณฑ์ค่าเผื่อ + อัตราต่อ กก.: โรงงานตั้งเกณฑ์ค่าเผื่อที่ยอมรับ — หายภายในเกณฑ์ไม่หักจากผู้รับเหมา; ส่วนที่หายเกินเกณฑ์หักตามราคาต่อ กก. ของอ้อยที่หายที่โรงงานกำหนด ทั้งเกณฑ์และอัตราตั้งค่าใน portal โรงงาน (FR-T12) ข้อนี้ทำให้สองถ้อยคำในต้นทางสอดคล้องกัน: "ตามประกาศ" = เกณฑ์ + อัตราที่ประกาศ; "น้ำหนักหายจริง" = หักเฉพาะส่วนที่หายจริงเกินเกณฑ์

OQ-4 Is the station's 4-ply bill the same statutory แบบ อ. 1 form as the mill's, or a station-specific form?บิล 4 สำเนาของสถานีเป็นแบบ อ. 1 ตามกฎหมายเดียวกับโรงงาน หรือแบบเฉพาะสถานี?

Determines whether A-36's form spec (and the cane-office COPY re-issue rule) applies verbatim at stations.

ชี้ว่า spec แบบฟอร์มของ A-36 (และกฎออกสำเนา COPY ที่สำนักงานอ้อย) ใช้ที่สถานีตรงตัวหรือไม่

De facto reading (16 Jul 2026) — narrowed:การอ่านโดยพฤตินัย (16 ก.ค. 2569) — แคบลง: the field notes show the station bill IS a 4-ply carbonless set of the same colors (white/pink/yellow/blue) with per-station routing — so the physical medium and the mill-config routing principle (A-36 (c)) are already settled. Only one narrow fact remains: "Is the station's bill the same statutory form number (แบบ อ. 1) as the mill's, or a mill-internal form?" — which decides whether the cane-office COPY rule is statutory or per-mill policy at stations.บันทึกหน้างานแสดงว่าบิลสถานีเป็นชุดกระดาษก๊อปปี้ 4 สำเนาสีเดียวกัน (ขาว/ชมพู/เหลือง/ฟ้า) เส้นทางสำเนารายสถานี — สื่อกายภาพและหลักเส้นทางสำเนาเป็น config (A-36 (c)) นิ่งแล้ว เหลือข้อเท็จจริงแคบเดียว: "บิลสถานีใช้เลขแบบฟอร์มตามกฎหมายเดียวกัน (แบบ อ. 1) หรือเป็นฟอร์มภายในโรงงาน?" — ซึ่งชี้ว่ากฎ COPY ของสำนักงานอ้อยเป็นกฎหมายหรือนโยบายโรงงานที่สถานี

ANSWERED (client, 23 Jul 2026):ตอบแล้ว (ลูกค้า 23 ก.ค. 2569): the ใบชั่งอ้อย at the factory weighbridge and the transfer-station weighbridge is the same 4-ply form, sharing one 7-digit delivery-number namespace with per-station prefixes (Section 3.1, FR-T7). A-36's form spec applies verbatim at stations; the cane-office COPY rule follows the mill's.ใบชั่งอ้อยที่ห้องชั่งโรงงานและห้องชั่งสถานีขนถ่ายเป็นฟอร์ม 4 สำเนาแบบเดียวกัน ใช้ชุดเลขที่ 7 หลักร่วมกันโดยมี prefix รายสถานี (ข้อ 3.1, FR-T7) spec แบบฟอร์มของ A-36 ใช้ที่สถานีตรงตัว; กฎ COPY ของสำนักงานอ้อยตามของโรงงาน

7. Revision history7. ประวัติการแก้ไข

RevDateวันที่Changesการเปลี่ยนแปลง
0.12026-07-16First draft — spun out of PROP-029 Section 2.6 per its OQ-3 decision. Principles T1–T3, 7-object domain model, 3 flows, FR-T1…T6 + NFR-T1, 4 open questions.ร่างแรก — แยกจากข้อ 2.6 ของ PROP-029 ตามคำตัดสิน OQ-3 หลักการ T1–T3 โมเดล 7 object, 3 flow, FR-T1…T6 + NFR-T1 และคำถามเปิด 4 ข้อ
0.22026-07-16OQ review pass (client request): OQ-1 rephrased as a confirm (presumed: the mill pays through the station's quota — station is a pass-through); OQ-2 narrowed by de facto evidence (the pump is at the factory; fuel credit not available at stations today — only the forward-looking extension question remains); OQ-4 narrowed (the station bill is already a 4-ply carbonless set — only the statutory form number is open); OQ-3 confirmed genuinely open (loss formula).รอบทบทวน OQ (ตามคำขอลูกค้า): OQ-1 เขียนใหม่เป็นคำถามยืนยัน (สันนิษฐาน: โรงงานจ่ายผ่านโควตาสถานี — สถานีเป็นทางผ่าน); OQ-2 แคบลงด้วยหลักฐานพฤตินัย (ปั๊มอยู่ที่โรงงาน; เครดิตน้ำมันยังไม่มีที่สถานี — เหลือเฉพาะคำถามการขยายในอนาคต); OQ-4 แคบลง (บิลสถานีเป็นชุด 4 สำเนาอยู่แล้ว — เปิดเฉพาะเลขแบบฟอร์มตามกฎหมาย); OQ-3 ยืนยันว่าเปิดจริง (สูตรค่าสูญหาย)
0.32026-07-17OQ review pass 2: OQ-2 premise refreshed — PROP-027 is now applied spec (v0.10.0); the question narrows to whether the StationBill counts as a note under FR-114 and how the single-fill rule binds across cut-and-consolidate. OQ-1 (confirm), OQ-3 (loss formula — client field knowledge) and OQ-4 unchanged.ทบทวน OQ รอบ 2: ปรับข้อตั้ง OQ-2 — PROP-027 ใช้เป็น spec แล้ว (v0.10.0); คำถามแคบลงเหลือว่า StationBill นับเป็นใบส่งตาม FR-114 หรือไม่ และกฎเติมครั้งเดียวผูกอย่างไรเมื่อตัดรวมเที่ยว ส่วน OQ-1 (ยืนยัน), OQ-3 (สูตรค่าสูญหาย — ความรู้หน้างานของลูกค้า) และ OQ-4 คงเดิม
0.42026-07-23Client context pass: shared 7-digit delivery-number namespace — factory 1–999,999; station prefixes 10–99 (e.g. นาแส้ง 10 → 1,000,001–1,099,999, เมืองคง 11 → 1,100,001–1,199,999), max 90 stations per mill — and the truck's sub-delivery-note bundle submission at the factory weighbridge (new Section 3.1, FR-T7); OQ-4 CLOSED (same 4-ply form). Station master data: GPS lat/long, weighbridge capacity, distance to mill (FR-T8). Multi-contractor HaulageRateCard with availability+cost allocation (FR-T9). TransportCostPolicy — farmer / shared ratio / mill, mid-season adjustable (FR-T10). TransferLossPolicy — default 3%, any %, waivable (FR-T11); OQ-3 narrowed to the contractor-side formula. Domain model 7 → 10 objects.รอบข้อมูลลูกค้า: ชุดเลขที่ใบชั่ง 7 หลักร่วมกัน — โรงงาน 1–999,999; prefix สถานี 10–99 (เช่น นาแส้ง 10 → 1,000,001–1,099,999, เมืองคง 11 → 1,100,001–1,199,999) สูงสุด 90 สถานีต่อโรงงาน — และการยื่นชุดใบชั่งย่อยของรถขนถ่ายที่ห้องชั่งโรงงาน (ข้อ 3.1 ใหม่, FR-T7); OQ-4 ปิดแล้ว (ฟอร์ม 4 สำเนาแบบเดียวกัน) ข้อมูลหลักสถานี: พิกัด GPS พิกัดชั่ง ระยะทางถึงโรงงาน (FR-T8) HaulageRateCard หลายผู้รับเหมา จัดสรรตามความพร้อม+ต้นทุน (FR-T9) TransportCostPolicy — ชาวไร่ / แบ่งสัดส่วน / โรงงาน ปรับกลางฤดูได้ (FR-T10) TransferLossPolicy — ค่าปกติ 3% ปรับได้ทุก % ยกเว้นได้ (FR-T11); OQ-3 แคบลงเหลือสูตรฝั่งผู้รับเหมา โมเดลโดเมน 7 → 10 object
0.52026-07-23OQ-3 CLOSED (client): contractor loss formula = accepted-loss threshold (no deduction within) + factory-set price per kg on shortfall above it; both configurable in the factory portal. T2 reworded, LossClaim/FR-T5 updated, +FR-T12.OQ-3 ปิด (ลูกค้า): สูตรค่าสูญหายผู้รับเหมา = เกณฑ์ค่าเผื่อที่ยอมรับ (ภายในไม่หัก) + ราคาต่อ กก. ที่โรงงานตั้งสำหรับส่วนที่เกิน; ทั้งสองค่าตั้งใน portal โรงงาน ปรับ T2, LossClaim/FR-T5, เพิ่ม FR-T12
0.62026-07-23OQ-1 CLOSED: the mill pays farmers through the station's quota (station = pass-through) — follows from the Rev 0.4–0.5 context: all farmer-side deductions (FR-T10/T11) are mill-portal policies and delivery notes settle at the factory weighbridge (FR-T7). Standard mill deduction stack, extended with transport-cost share and transfer-loss deduction.OQ-1 ปิด: โรงงานจ่ายชาวไร่ผ่านโควตาสถานี (สถานี = ทางผ่าน) — สืบจากข้อมูล Rev 0.4–0.5: การหักฝั่งชาวไร่ทั้งหมด (FR-T10/T11) เป็นนโยบายใน portal โรงงาน และใบชั่งชำระที่ห้องชั่งโรงงาน (FR-T7) ใช้ลำดับหักมาตรฐานของโรงงาน เพิ่มส่วนแบ่งค่าขนส่งและการหักสูญหาย
0.72026-07-23OQ-2 CLOSED (client): no fuel credit at transfer stations — PROP-027 stays factory-gate only; StationBill is not an FR-114 "note". All four OQs now resolved; proposal ready for acceptance review.OQ-2 ปิด (ลูกค้า): ไม่มีเครดิตน้ำมันที่สถานีขนถ่าย — PROP-027 จำกัดหน้าโรงงาน; StationBill ไม่นับเป็นใบส่งตาม FR-114 คำถามเปิดครบ 4 ข้อปิดแล้ว ข้อเสนอพร้อมเข้ารอบพิจารณารับรอง
1.02026-07-23ACCEPTED & APPLIED as spec v0.21.0: new transfer_station context with 10 entities + 9 relationships + 8 events; draft IDs renumbered — FR-T1…T12 → FR-173…184, NFR-T1 → NFR-57, flows 4.1–4.3 → WF-70…72; +uix screens mill-transfer · st-ts. Mirrored: SPEC-PRD/PWF-MILL 0.11.0, SPEC-ERD-MILL 0.12.0, SPEC-DDD/UIX-MILL 0.10.0, SPEC-INDEX 0.2.9. Persistence profiles, depth records and ts.* copy keys ride the next gap-fill / Q5 back-audit passes.รับรองและปรับใช้เป็น spec v0.21.0: context ใหม่ transfer_station พร้อม entity 10 ตัว + ความสัมพันธ์ 9 เส้น + event 8 รายการ; ขยับเลขร่าง — FR-T1…T12 → FR-173…184, NFR-T1 → NFR-57, flow → WF-70…72; เพิ่มหน้าจอ mill-transfer · st-ts สะท้อนเข้า SPEC-PRD/PWF-MILL 0.11.0, SPEC-ERD-MILL 0.12.0, SPEC-DDD/UIX-MILL 0.10.0, SPEC-INDEX 0.2.9 ส่วน persistence profile ระเบียนความลึก และ copy key ts.* ตามรอบเก็บตก / back-audit Q5