PROP-027 Rev 1.1 · 17 Jul 2026

Cane Agency · Change Proposal (ACCEPTED)สถาบันอ้อย · ข้อเสนอการเปลี่ยนแปลง (รับรองแล้ว)

Fuel credit against the delivery note (เครดิตน้ำมันจากใบส่งอ้อย) — fill now, offset at payout: an opt-in factory petrol-station service capped at the base cane price at 10 CCS times tonnes deliveredเครดิตน้ำมันจากใบส่งอ้อย — เติมตอนนี้ หักกลบตอนจ่าย: บริการปั๊มน้ำมันโรงงานแบบ opt-in เพดานราคาอ้อยขั้นต้นที่ 10 CCS คูณตันที่ส่ง

Documentเอกสาร
PROP-027
Statusสถานะ
ACCEPTED — applied graph-first in spec v0.10.0 (17 Jul 2026)รับรองแล้ว — ปรับ graph แล้วใน spec v0.10.0 (17 ก.ค. 2569)
Originที่มา
Spun out of the PROP-019 Q1 gate round-2 Q-40 verdict A-40 (15 Jul 2026): the delivery note issues at the exit weighbridge (weights only, pricing later), and at factories offering the service the farmer may present it at the factory's petrol station to fill fuel up to the base sugarcane price at 10 CCS × tonnes delivered, the value deducted from the sugarcane payout. The service is opt-in per factory.แยกออกมาจากคำวินิจฉัย A-40 (ข้อ Q-40) ของรอบที่ 2 ของ PROP-019 Q1 gate (15 ก.ค. 2569): ใบส่งอ้อยออกที่ห้องชั่งขาออก (เฉพาะน้ำหนัก ราคาคิดทีหลัง) และที่โรงงานที่เปิดบริการ ชาวไร่นำใบไปแสดงที่ปั๊มน้ำมันของโรงงานเพื่อเติมน้ำมันได้ไม่เกินราคาอ้อยขั้นต้นที่ 10 CCS × ตันที่ส่ง โดยมูลค่าถูกหักจากเงินค่าอ้อย บริการเป็น opt-in รายโรงงาน
Kindประเภท
New opt-in service domain — a per-delivery fuel credit: redemption at the factory petrol station against the delivery note, a FuelCredit record, and an offset item riding the existing FR-17 deduction family through the payment pipeline.โดเมนบริการ opt-in ใหม่ — เครดิตน้ำมันรายการส่งมอบ: การใช้สิทธิที่ปั๊มโรงงานด้วยใบส่งอ้อย ระเบียน FuelCredit และ item หักกลบที่อาศัยตระกูลการหัก FR-17 เดิมผ่าน pipeline การจ่าย
Depends onขึ้นกับ
A-40 (note issuing flow) · A-20 (note carries no money) · FR-17 (deduction/offset family) · FR-95/NFR-27 (installment pipeline) · A-15 (credit/interest family, adjacent) · Q-50 (config home) · PROP-020 QR chain (note verification) · PROP-021 (station suite, if the pump surface joins it).A-40 (flow การออกใบ) · A-20 (ใบไม่มีเงิน) · FR-17 (ตระกูลหัก/หักกลบ) · FR-95/NFR-27 (pipeline งวดจ่าย) · A-15 (ตระกูลสินเชื่อ/ดอกเบี้ย ใกล้เคียง) · Q-50 (บ้าน config) · สาย QR ของ PROP-020 (ตรวจใบ) · PROP-021 (ชุดสถานี หาก surface ปั๊มเข้าชุด)
Affectsกระทบ
Graph: +FuelCredit entity + events; WF-64…65; FR-150…154, NFR-49; CanePurchasePolicy/config +fuel-service flags (Q-50 family). Docs: SPEC-PRD/PWF/UIX-MILL (pump surface + config), farmer surfaces (credit visibility), ERD/DDD.graph: +entity FuelCredit + event; WF-64…65; FR-150…154, NFR-49; config +flag บริการน้ำมัน (ตระกูล Q-50) เอกสาร: SPEC-PRD/PWF/UIX-MILL (surface ปั๊ม + config), surface ชาวไร่ (การเห็นเครดิต), ERD/DDD
Version bumpการขยับเวอร์ชัน
MINOR — fully additive; nothing changes for factories that do not opt in. IDs renumber on acceptance if intervening proposals land first.MINOR — เป็นส่วนเพิ่มทั้งหมด; ไม่มีอะไรเปลี่ยนสำหรับโรงงานที่ไม่ opt-in เลขขยับตอนรับหากมีข้อเสนอแทรกก่อน
Updatedปรับปรุงล่าสุด
17 Jul 2026

1. Summary1. สรุปข้อเสนอ

The pointใจความ The farmer leaves the exit weighbridge holding a delivery note and an empty tank; the payout is weeks away. At factories that opt in, the note itself becomes working capital: present it at the factory's petrol station, fill fuel into the truck up to a cap of base sugarcane price at 10 CCS × net tonnes on the note, and drive back to the field. The fuel value posts as a FuelCredit against the delivery and is deducted from the sugarcane payout — the two offset each other, no cash moves. The factory keeps a hauling fleet fuelled and loyal; the farmer converts cane into diesel the same hour it is weighed. ชาวไร่ออกจากห้องชั่งขาออกพร้อมใบส่งอ้อยและถังน้ำมันใกล้หมด ขณะเงินค่าอ้อยอยู่อีกหลายสัปดาห์ ที่โรงงานที่ opt-in ใบส่งอ้อยกลายเป็นทุนหมุนเวียน: แสดงที่ปั๊มน้ำมันของโรงงาน เติมน้ำมันใส่รถได้ไม่เกินเพดาน ราคาอ้อยขั้นต้นที่ 10 CCS × ตันสุทธิบนใบ แล้วขับกลับไร่ มูลค่าน้ำมัน post เป็น FuelCredit ผูกกับการส่งมอบและถูกหักจากเงินค่าอ้อย — หักกลบกัน ไม่มีเงินสดเคลื่อน โรงงานได้กองรถขนส่งที่มีน้ำมันและภักดี ชาวไร่แปลงอ้อยเป็นดีเซลภายในชั่วโมงเดียวกับที่ชั่ง

2. What A-40 already decided — binding input, not reopened here2. สิ่งที่ A-40 ตัดสินแล้ว — ข้อมูลผูกพัน ไม่เปิดใหม่ที่นี่

3. Principles3. หลักการ

F1 · The note authorizes; the ledger settlesF1 · ใบให้สิทธิ; บัญชีชำระ The paper note (and its QR, per the PROP-020 chain) only identifies the delivery and proves completion. The credit's truth lives in the FuelCredit record: remaining headroom is computed server-side from the delivery's net weight and prior redemptions — a photocopied note buys nothing twice. ใบกระดาษ (และ QR ของมัน ตามสาย PROP-020) เพียงระบุการส่งมอบและพิสูจน์ว่าเสร็จ ความจริงของเครดิตอยู่ในระเบียน FuelCredit: วงเงินคงเหลือคำนวณฝั่ง server จากน้ำหนักสุทธิและการเติมก่อนหน้า — ใบถ่ายเอกสารซื้อซ้ำไม่ได้
F2 · The offset rides the existing deduction machineF2 · การหักกลบอาศัยเครื่องหักเดิม No new money rail: a redeemed credit becomes one more deduction item in the FR-17 family, scoped to the same delivery's payout, visible on the farmer's statement line-by-line. It obeys whatever the pipeline already decides about deduction ordering and waiting items (Q-41…Q-43 outcomes apply to it unchanged). ไม่มีรางเงินใหม่: เครดิตที่ใช้แล้วเป็น item หักอีกหนึ่งรายการในตระกูล FR-17 ผูกกับเงินค่าอ้อยของการส่งมอบเดียวกัน เห็นบน statement ของชาวไร่ทีละบรรทัด มันเชื่อฟังทุกสิ่งที่ pipeline ตัดสินแล้วเรื่องลำดับการหักและ item ที่รอ (ผลของ Q-41…Q-43 ใช้กับมันโดยไม่เปลี่ยน)
F3 · The cap is intelligent, not just a percentageF3 · เพดานอัจฉริยะ ไม่ใช่แค่เปอร์เซ็นต์ The fuel_cap_pct limit is the floor of the design, not the ceiling. Where the farmer has contract-farming financing with the factory, the platform knows the scheduled repayments and the cane volume agreed per payment cycle — so it allocates a share of each scheduled payment across the planned deliveries and discounts the fuel headroom in real time, keeping fuel drawn plus remaining obligations inside what the planned deliveries cover. Real-time headroom and reporting are the platform's competitive edge over in-house and manual systems (OQ-6 mandate, FR-155). ลิมิต fuel_cap_pct คือพื้นของการออกแบบ ไม่ใช่เพดาน เมื่อชาวไร่มีสินเชื่อ contract farming กับโรงงาน platform รู้ยอดชำระตามกำหนดและปริมาณอ้อยที่ตกลงต่อรอบชำระ — จึงจัดสรรส่วนของยอดชำระแต่ละงวดกระจายบนการส่งมอบตามแผน และหักลดวงเงินน้ำมันแบบ real time ให้น้ำมันที่เบิกบวกภาระที่เหลืออยู่ในกรอบที่การส่งมอบตามแผนรองรับ วงเงินและรายงานแบบ real time คือข้อได้เปรียบเชิงแข่งขันเหนือระบบภายในและงาน manual (อาณัติ OQ-6, FR-155)

4. Domain model4. โมเดลโดเมน

EntityAttributes (proposed)แอตทริบิวต์ (เสนอ)Notesหมายเหตุ
FuelCredit
เครดิตน้ำมัน
fuel_credit_id, mill_id, delivery_id, quota_id, cap_satang, redeemed_satang, litres, pump_price_satang_l, station_id, redeemed_by, redeemed_at, status (open | partial | exhausted | offset | voided)cap_satang = fuel_cap_pct (factory config, default 80%) × the season's OCSB-announced installment base price at 10 CCS × the note's net tonnes (price immutable within the season, OQ-1); at most one row per note — single fill (OQ-2 decided).cap_satang = fuel_cap_pct (config โรงงาน ค่าเริ่มต้น 80%) × ราคาอ้อยงวดขั้นต้นที่ สอน. ประกาศของฤดูที่ 10 CCS × ตันสุทธิบนใบ (ราคาไม่เปลี่ยนระหว่างฤดู OQ-1); อย่างมากหนึ่งแถวต่อใบ — เติมครั้งเดียว (OQ-2 ตัดสินแล้ว)

Events. FuelCreditRedeemed · FuelCreditOffsetPosted · FuelCreditVoided — producers: the pump surface and the payment pipeline; consumers: audit, farmer statement, mill fuel-service report.producer: surface ปั๊มและ pipeline การจ่าย; consumer: audit, statement ชาวไร่, รายงานบริการน้ำมันของโรงงาน

5. Workflows (proposed WF-64…65)5. Workflow (เสนอ WF-64…65)

WFNameชื่อSubstanceสาระ
WF-64Redemption at the pumpการใช้สิทธิที่ปั๊มAttendant scans/keys the note → system shows the delivery, cap, and remaining headroom → fill → attendant records litres + pump price → FuelCredit row + receipt (farmer copy). Offline degradation follows the station-suite pattern if the pump joins PROP-021.พนักงานสแกน/คีย์ใบ → ระบบแสดงการส่งมอบ เพดาน และวงเงินคงเหลือ → เติม → พนักงานบันทึกลิตร + ราคาหน้าปั๊ม → แถว FuelCredit + ใบเสร็จ (สำเนาชาวไร่) การเสื่อมแบบ offline ตามแบบชุดสถานีหากปั๊มเข้า PROP-021
WF-65Offset postingการ post หักกลบWhen the delivery's payout is computed, open FuelCredit rows convert to FR-17-family deduction items on that payout; the statement shows fuel line-items against the cane value; exhausted credits close as offset.เมื่อคำนวณเงินค่าอ้อยของการส่งมอบ แถว FuelCredit ที่เปิดแปลงเป็น item หักตระกูล FR-17 บนเงินก้อนนั้น; statement แสดงบรรทัดน้ำมันเทียบมูลค่าอ้อย; เครดิตที่ใช้ครบปิดเป็น offset

6. Requirements (proposed FR-150…154 · NFR-49)6. ความต้องการ (เสนอ FR-150…154 · NFR-49)

IDRequirementความต้องการSurfacesช่องทาง
FR-150Per-factory opt-in: fuel service off by default; enablement, eligible farmers, station list, and the cap percentage fuel_cap_pct (default 80%) are factory config (Q-50 home).opt-in รายโรงงาน: บริการน้ำมันปิดโดยค่าเริ่มต้น; การเปิด ชาวไร่ที่มีสิทธิ์ รายชื่อปั๊ม และเปอร์เซ็นต์เพดาน fuel_cap_pct (ค่าเริ่มต้น 80%) เป็น config โรงงาน (บ้าน Q-50)portal
FR-151Redemption per WF-64: server-side cap = fuel_cap_pct (default 80%) × announced base price at 10 CCS × the note's net tonnes; one fill per note (single redeemed-or-not check, OQ-2); every redemption evented and receipted.การใช้สิทธิตาม WF-64: เพดานฝั่ง server = fuel_cap_pct (ค่าเริ่มต้น 80%) × ราคาขั้นต้นประกาศที่ 10 CCS × ตันสุทธิบนใบ; เติมครั้งเดียวต่อใบ (ตรวจ ใช้แล้ว/ยัง เดียว OQ-2); ทุกการใช้สิทธิมี event และใบเสร็จpump
FR-152Offset per WF-65: redeemed value posts as an FR-17-family deduction on the same delivery's payout; itemized on the farmer statement.หักกลบตาม WF-65: มูลค่าที่ใช้ post เป็นการหักตระกูล FR-17 บนเงินค่าอ้อยของการส่งมอบเดียวกัน; แจกแจงบน statement ชาวไร่—
FR-153Farmer visibility: current fuel-credit headroom and redemption history on the farmer mobile and quota-farmer portal.การเห็นของชาวไร่: วงเงินน้ำมันคงเหลือและประวัติการเติมบนมือถือชาวไร่และ portal หัวหน้าโควต้าmobile · portal
FR-154Mill fuel-service report: redemptions, litres, outstanding un-offset credit exposure per season.รายงานบริการน้ำมันของโรงงาน: การใช้สิทธิ ลิตร และยอดเครดิตค้างหักกลบต่อฤดูportal
FR-155Intelligent dynamic headroom (F3): where contract-farming financing exists, allocate a configurable share of each scheduled repayment across the cycle's planned delivery volume and discount the fuel cap accordingly; headroom computed and reported in real time on the pump surface, farmer surfaces, and the mill report. No fee/interest to the farmer by default; factory may opt in to a rate/fee override (A-15 schedule home).วงเงินอัจฉริยะ (F3): เมื่อมีสินเชื่อ contract farming จัดสรรส่วน (ตั้งค่าได้) ของยอดชำระตามกำหนดแต่ละงวดกระจายบนปริมาณส่งมอบตามแผนของรอบ และหักลดเพดานน้ำมันตามนั้น; คำนวณและรายงานวงเงินแบบ real time บน surface ปั๊ม surface ชาวไร่ และรายงานโรงงาน โดยค่าเริ่มต้นไม่มีดอกเบี้ย/ค่าธรรมเนียมกับชาวไร่; โรงงาน opt-in override ได้ (บ้านตาราง A-15)pump · mobile · portal
NFR-49Integrity: headroom checks are authoritative server-side (F1); a note's credits are fully replayable from events; voids require reason + audit.ความถูกต้อง: การตรวจวงเงินยึดฝั่ง server (F1); เครดิตของใบเล่นซ้ำได้ครบจาก event; การ void ต้องมีเหตุผล + audit—

7. Open questions7. คำถามเปิด

OQ-1 Which "base price at 10 CCS" — announced when, and does it move?"ราคาขั้นต้นที่ 10 CCS" ตัวไหน — ประกาศเมื่อใด และขยับไหม?

The statutory base price is announced per season and can be revised. Is the cap computed from the price in force at redemption time (frozen per fill), or re-computed if the announcement changes mid-season? A frozen-at-redemption cap is auditable; a floating cap can turn an exhausted note back open.

ราคาขั้นต้นตามกฎหมายประกาศรายฤดูและแก้ได้ เพดานคำนวณจากราคาที่มีผล ณ เวลาใช้สิทธิ (ตรึงต่อการเติม) หรือคำนวณใหม่เมื่อประกาศเปลี่ยนกลางฤดู? เพดานตรึงตอนใช้ตรวจสอบได้; เพดานลอยอาจทำให้ใบที่ใช้ครบกลับมาเปิดอีก

Decided (client, 15 Jul 2026):ตัดสินแล้ว (ลูกค้า 15 ก.ค. 2569): the reference is the sugarcane installment price announced by the OCSB regulator at the beginning of the season, at 10 CCS — and it does not change within the season, so frozen-vs-floating dissolves. The fill cap is a factory-configurable percentage of that base price × the note's tonnage — each factory may set whatever percentage it likes in its service config (fuel_cap_pct, Q-50 family), with a platform default of 80% where the factory does not override it; the uncommitted remainder keeps the payout able to absorb other costs — e.g. loan repayments and similar deductions — without going underwater (softens OQ-6's exposure).อ้างอิงราคาอ้อยงวดที่ สอน. ประกาศต้นฤดูกาล ที่ 10 CCS — และไม่เปลี่ยนระหว่างฤดู คำถามตรึง/ลอยจึงสลายไป เพดานการเติมเป็น เปอร์เซ็นต์ที่โรงงานตั้งค่าได้ ของราคาขั้นต้นนั้น × ตันบนใบ — แต่ละโรงงานตั้งกี่เปอร์เซ็นต์ก็ได้ใน config บริการของตน (fuel_cap_pct ตระกูล Q-50) โดย platform ใช้ค่าเริ่มต้น 80% หากโรงงานไม่ override; ส่วนที่เหลือกันไว้ให้เงินค่าอ้อยยังรองรับค่าใช้จ่ายอื่น — เช่นการชำระคืนเงินกู้ฯลฯ — โดยไม่ติดลบ (ลดความเสี่ยงของ OQ-6)

OQ-2 One fill per note, or multiple fills up to the cap?เติมครั้งเดียวต่อใบ หรือหลายครั้งจนถึงเพดาน?

A truck tank rarely equals the cap exactly. May the farmer return and fill again against the same note's remaining headroom — and does the credit pool per note, or per farmer across a season's notes?

ถังรถแทบไม่เท่าเพดานพอดี ชาวไร่กลับมาเติมซ้ำกับวงเงินคงเหลือของใบเดิมได้ไหม — และเครดิตรวมเป็นรายใบ หรือรายชาวไร่ข้ามใบทั้งฤดู?

Decided (client, 15 Jul 2026):ตัดสินแล้ว (ลูกค้า 15 ก.ค. 2569): one fill per note, only. A note is redeemed once, for a single fill up to the cap; any unused headroom lapses — no return visits, no cross-note pooling. FuelCredit becomes at most one row per delivery note (“remaining headroom across fills” language in F1/FR-151 simplifies to a single redeemed-or-not check, which also shrinks the offline overdraw window OQ-4 noted to double-redemption of the same note).เติมได้ครั้งเดียวต่อใบเท่านั้น ใบหนึ่งใช้สิทธิได้ครั้งเดียว เติมครั้งเดียวไม่เกินเพดาน; วงเงินที่ไม่ใช้หมดอายุ — ไม่มีการกลับมาเติมซ้ำ ไม่รวมข้ามใบ FuelCredit เหลืออย่างมากหนึ่งแถวต่อใบส่งอ้อย (ถ้อยคำ “วงเงินคงเหลือข้ามการเติม” ใน F1/FR-151 ลดเหลือการตรวจ ใช้แล้ว/ยัง เดียว ซึ่งย่อความเสี่ยง offline ของ OQ-4 เหลือเพียงการใช้ใบเดิมซ้ำ)

OQ-3 Who redeems — the quota farmer, the sub-farmer, or the driver holding the paper?ใครใช้สิทธิ — หัวหน้าโควต้า ลูกไร่ หรือคนขับที่ถือใบ?

The payout the offset hits belongs to the quota chain; the person at the pump is often a hired driver. Is possession of the note sufficient authority (bearer instrument), or does redemption require the quota farmer's identity/consent — and how does the deduction attribute inside the quota's sub-farmer splits?

เงินที่ถูกหักเป็นของสายโควตา แต่คนที่ปั๊มมักเป็นคนขับรับจ้าง การถือใบเพียงพอเป็นอำนาจไหม (ตราสารผู้ถือ) หรือการใช้สิทธิต้องมีตัวตน/ความยินยอมของหัวหน้าโควต้า — และการหักกระจายในส่วนแบ่งลูกไร่ของโควตาอย่างไร?

Decided in part (client, 15 Jul 2026) — attribution follows the delivery's ownership:ตัดสินบางส่วน (ลูกค้า 15 ก.ค. 2569) — การระบุผู้รับภาระตามความเป็นเจ้าของการส่งมอบ: the quota farmer passes the fuel expense onto the sub-farmer who delivered the sugarcane — the deduction attributes to that sub-farmer's share — unless the quota farmer bought the cane outright from the sub-farmer, in which case the expense stays with the quota farmer. Model consequence: the delivery (or the quota–sub-farmer relation) must carry the commercial arrangement — delivered-on-account vs bought-outright — for WF-65's offset to attribute correctly. Still open: pump-side identity — decided (same day): the note is a bearer instrument. The driver holding the paper presents it at the petrol station; no identity check. The station records litres, fuel type, price per unit, and total against the note's validation number, and the amount posts to the payment statement later.หัวหน้าโควต้าผลักภาระค่าน้ำมันให้ลูกไร่ผู้ส่งอ้อยคันนั้น — การหักระบุที่ส่วนแบ่งของลูกไร่รายนั้น — เว้นแต่หัวหน้าโควต้าซื้ออ้อยขาดจากลูกไร่ กรณีนั้นภาระอยู่กับหัวหน้าโควต้าเอง ผลต่อ model: การส่งมอบ (หรือความสัมพันธ์โควตา–ลูกไร่) ต้องถือข้อตกลงทางการค้า — ส่งในบัญชี vs ซื้อขาด — เพื่อให้การหักกลบของ WF-65 ระบุผู้รับภาระถูก ที่ยังเปิด: ตัวตนฝั่งปั๊ม — ตัดสินแล้ว (วันเดียวกัน): ใบเป็นตราสารผู้ถือ คนขับที่ถือใบยื่นที่ปั๊ม ไม่ตรวจตัวตน; ปั๊มบันทึกลิตร ชนิดน้ำมัน ราคาต่อหน่วย และยอดรวม เทียบกับเลขตรวจสอบของใบ และยอดนี้ post เข้า statement การจ่ายภายหลัง

OQ-4 Where does the pump surface live?surface ปั๊มอยู่ที่ไหน?

A portal screen at the station kiosk (default path), a PROP-021 suite station (ST-FUEL?), or both — with what offline behavior when the LAN or platform is unreachable mid-fill?

หน้าจอ portal ที่คีออสก์ปั๊ม (เส้นทางเริ่มต้น) สถานีชุด PROP-021 (ST-FUEL?) หรือทั้งคู่ — และพฤติกรรม offline เมื่อ LAN หรือ platform ล่มกลางการเติมเป็นอย่างไร?

Decided (client, 15 Jul 2026) — the platform provides the pump surface, offline-first:ตัดสินแล้ว (ลูกค้า 15 ก.ค. 2569) — platform เป็นผู้ให้ surface ปั๊ม แบบ offline-first: today most factories run this on internal systems or manually-paid paper; the platform is to provide the whole service from our application — as dedicated kiosks and/or a cross-platform application communicating directly with the platform. It must operate offline when the internet is down and sync back when connectivity returns, and it holds pre-fetched offline reference data (open notes, headroom, validation numbers) so the local kiosk/app can perform preliminary validation checks even while the platform is unreachable — authoritative reconciliation happens at sync (F1 softens to "authoritative at sync" in offline mode; overdraw risk during the offline window is a residual for the requirements pass).ปัจจุบันโรงงานส่วนใหญ่ทำด้วยระบบภายในหรือกระดาษจ่ายมือ; platform จะให้บริการทั้งหมดจากแอปพลิเคชันของเรา — เป็นคีออสก์เฉพาะ และ/หรือแอป cross-platform ที่สื่อสารตรงกับ platform ต้องทำงาน offline ได้เมื่ออินเทอร์เน็ตล่ม และ sync กลับเมื่อกลับมา โดยถือข้อมูลอ้างอิง offline ที่ดึงไว้ล่วงหน้า (ใบที่เปิด วงเงินคงเหลือ เลขตรวจสอบ) ให้คีออสก์/แอปท้องถิ่นตรวจสอบเบื้องต้นได้แม้ platform เข้าไม่ถึง — การกระทบยอดจริงเกิดตอน sync (F1 ผ่อนเป็น "ยึดตอน sync" ในโหมด offline; ความเสี่ยงเติมเกินวงเงินช่วง offline เป็นสิ่งตกค้างของรอบ requirements)

OQ-5 Fuel pricing and margin — pump price, cost, or subsidized?ราคาน้ำมันและส่วนต่าง — ราคาหน้าปั๊ม ทุน หรืออุดหนุน?

Is fuel charged at the station's posted pump price (recorded per fill), and may a factory set its own price/discount as part of the service config? The offset amount must be unambiguous on the statement.

คิดน้ำมันที่ราคาหน้าปั๊มของสถานี (บันทึกต่อการเติม) หรือโรงงานตั้งราคา/ส่วนลดเองใน config บริการได้? ยอดหักกลบต้องชัดเจนบน statement

Decided (client, 15 Jul 2026) — pump price by default; subsidy is an opt-in override:ตัดสินแล้ว (ลูกค้า 15 ก.ค. 2569) — ราคาหน้าปั๊มโดยค่าเริ่มต้น; การอุดหนุนเป็น override แบบ opt-in: the petrol station is normally a different entity from the sugar factory (e.g. a cooperative), so the fuel charge is the station's pump price by default, recorded per fill. Any subsidized pricing requires factory opt-in: the factory provides override pricing in the service config, settable for a single farmer, a group of farmers, or globally for the whole factory. Model consequence: the station is its own party (station_id → a station/party record, not a mill attribute), and the config gains an optional subsidy-price structure with farmer / group / factory scope — which also means the station entity's settlement with the factory (who pays the co-op for the fuel) belongs in the requirements pass.ปั๊มน้ำมันโดยปกติเป็นคนละนิติบุคคลกับโรงงาน (เช่น สหกรณ์) ค่าน้ำมันจึงคิดที่ราคาหน้าปั๊มของสถานีโดยค่าเริ่มต้น บันทึกต่อการเติม ราคาอุดหนุนต้องให้โรงงาน opt-in: โรงงานกำหนดราคา override ใน config บริการ ตั้งได้ระดับชาวไร่รายคน กลุ่มชาวไร่ หรือทั้งโรงงาน ผลต่อ model: สถานีเป็น party ของตนเอง (station_id → ระเบียนสถานี/party ไม่ใช่ attribute ของโรงงาน) และ config เพิ่มโครงสร้างราคาอุดหนุนแบบเลือกได้ ขอบเขต ชาวไร่ / กลุ่ม / โรงงาน — ซึ่งหมายความด้วยว่าการชำระระหว่างสถานีกับโรงงาน (ใครจ่ายค่าน้ำมันให้สหกรณ์) เป็นงานของรอบ requirements

OQ-6 Interaction with the credit family — is this an A-15 credit line or a plain offset?ความสัมพันธ์กับตระกูลสินเชื่อ — เป็นวงเงิน A-15 หรือหักกลบธรรมดา?

The fuel credit is economically an advance against a receivable. Does it carry interest or fees (A-15's rate schedule), count against any credit-exposure limit, and what happens if the payout ends up smaller than the redeemed fuel (CCS penalty, dispute, partial rejection) — carry-over to the next payout, or a receivable?

เครดิตน้ำมันในทางเศรษฐกิจคือเงินล่วงหน้ากับลูกหนี้ มันมีดอกเบี้ยหรือค่าธรรมเนียมไหม (ตารางอัตรา A-15) นับกับลิมิตความเสี่ยงสินเชื่อไหม และถ้าเงินค่าอ้อยสุดท้ายน้อยกว่าน้ำมันที่เติม (โทษ CCS ข้อพิพาท ปฏิเสธบางส่วน) — ยกยอดไปงวดถัดไป หรือเป็นลูกหนี้?

Decided (client, 15 Jul 2026) — no charges by default; and the cap gets intelligent:ตัดสินแล้ว (ลูกค้า 15 ก.ค. 2569) — ไม่คิดค่าใช้จ่ายโดยค่าเริ่มต้น; และเพดานฉลาดขึ้น: (1) No interest or service fee to the farmer by default; a factory may opt in to override this in the service config (rate/fee joining the A-15 family's schedule home). (2) Mandate — the intelligent cap (F3, FR-155). The platform should be smarter than the flat percentage limit: where the farmer has contract-farming financing with the factory, the platform knows the scheduled repayment to the factory and the volume of cane agreed for that payment cycle. It allocates a percentage of that scheduled payment across the planned deliveries and discounts the fuel limit accordingly — fuel drawn plus the remaining scheduled obligations never exceed what the planned deliveries will cover — with headroom computed and reported in real time. This is a deliberate competitive edge over in-house and manual systems. Formula details (allocation percentage, treatment of under-delivery vs plan) go to the requirements pass.(1) โดยค่าเริ่มต้นไม่มีดอกเบี้ยหรือค่าธรรมเนียมกับชาวไร่; โรงงาน opt-in override ได้ใน config บริการ (อัตรา/ค่าธรรมเนียมเข้าบ้านตารางอัตราของตระกูล A-15) (2) อาณัติ — เพดานอัจฉริยะ (F3, FR-155) platform ควรฉลาดกว่าลิมิตเปอร์เซ็นต์คงที่: เมื่อชาวไร่มีสินเชื่อ contract farming กับโรงงาน platform รู้ยอดชำระตามกำหนดต่อโรงงานและปริมาณอ้อยที่ตกลงส่งในรอบชำระนั้น จึงจัดสรรเปอร์เซ็นต์ของยอดชำระนั้นกระจายบนการส่งมอบตามแผน และหักลดลิมิตน้ำมันตามนั้น — น้ำมันที่เบิกบวกภาระชำระที่เหลือไม่เกินสิ่งที่การส่งมอบตามแผนจะรองรับได้ — โดยคำนวณและรายงานวงเงินแบบ real time นี่คือข้อได้เปรียบเชิงแข่งขันเหนือระบบภายในและงาน manual รายละเอียดสูตร (เปอร์เซ็นต์การจัดสรร กรณีส่งน้อยกว่าแผน) ไปรอบ requirements

OQ-7 Sequencing.ลำดับ

This is a post-Q1 additive minor. Does it require the Q-50 config home decided first (its flags need the home), and the PROP-020 QR chain live for note verification?

เป็น minor ส่วนเพิ่มหลัง Q1 ต้องรอบ้าน config ของ Q-50 ตัดสินก่อนไหม (flag ต้องมีบ้าน) และต้องมีสาย QR ของ PROP-020 ใช้งานเพื่อยืนยันใบหรือไม่?

Decided in part (client, 15 Jul 2026) — no hard wait on the QR chain; the note's QR is self-contained:ตัดสินบางส่วน (ลูกค้า 15 ก.ค. 2569) — ไม่รอสาย QR; QR บนใบมีข้อมูลครบในตัว: scanning the note and finding the delivery live from the kiosk is the extra benefit, not a launch dependency. If the delivery record hasn't reached the kiosk when the farmer arrives (internet down), the QR printed on the delivery note carries upfront, self-contained information — delivery identity, validation number, net tonnage, and the cap inputs — so the kiosk can work intelligently from the paper itself, validate preliminarily, and reconcile at sync (extends OQ-4's offline design; the payload fields join the PROP-020 ticket/QR field spec). Still open: whether the service's config flags wait for the Q-50 config home or land ad-hoc — closed (same day) by A-50: the home is decided — one topic-organized Factory Settings area (mill-settings) in the mill portal; the fuel service's flags land in its fuel topic. OQ-7 is fully closed — PROP-027 ships as a post-Q1 additive minor with no remaining sequencing dependency.การสแกนใบแล้วพบ delivery สดจากคีออสก์คือประโยชน์เสริม ไม่ใช่เงื่อนไขการเปิดตัว หากระเบียน delivery ยังมาไม่ถึงคีออสก์ตอนชาวไร่มาถึง (เน็ตล่ม) QR ที่พิมพ์บนใบส่งอ้อยต้องถือข้อมูลครบในตัวล่วงหน้า — อัตลักษณ์ delivery เลขตรวจสอบ ตันสุทธิ และข้อมูลคำนวณเพดาน — ให้คีออสก์ทำงานอัจฉริยะจากตัวกระดาษเอง ตรวจเบื้องต้น และกระทบยอดตอน sync (ขยายการออกแบบ offline ของ OQ-4; field ของ payload เข้า spec ตั๋ว/QR ของ PROP-020) ที่ยังเปิด: flag config ของบริการรอบ้าน config ของ Q-50 หรือลงแบบเฉพาะกิจ — ปิดแล้ว (วันเดียวกัน) โดย A-50: บ้านถูกตัดสินแล้ว — พื้นที่ Factory Settings เดียวจัดตามหัวข้อ (mill-settings) ใน portal โรงงาน; flag ของบริการน้ำมันลงหัวข้อน้ำมัน OQ-7 ปิดสมบูรณ์ — PROP-027 เป็น minor ส่วนเพิ่มหลัง Q1 โดยไม่มีเงื่อนไขลำดับค้างอีก

8. Revision history8. ประวัติการแก้ไข

RevDateวันที่Changesการเปลี่ยนแปลง
0.12026-07-15First draft — spun out of the PROP-019 Q1 gate round-2 verdict A-40. Principles F1–F2, FuelCredit model + 3 events, WF-64…65, FR-150…154, NFR-49, 7 open questions.ร่างแรก — แยกจากคำวินิจฉัย A-40 รอบที่ 2 ของ PROP-019 Q1 gate หลักการ F1–F2 โมเดล FuelCredit + 3 event, WF-64…65, FR-150…154, NFR-49 และคำถามเปิด 7 ข้อ
0.22026-07-15OQ-3 decided in part by the client: the fuel expense attributes to the sub-farmer who delivered the cane, unless the quota farmer bought the cane outright — then the quota farmer bears it; the delivery/relation must carry the delivered-on-account vs bought-outright arrangement. Pump-side identity (bearer vs verified redeemer) remains open.ลูกค้าตัดสิน OQ-3 บางส่วน: ภาระค่าน้ำมันระบุที่ลูกไร่ผู้ส่งอ้อย เว้นแต่หัวหน้าโควต้าซื้ออ้อยขาด — หัวหน้าโควต้ารับภาระเอง; การส่งมอบ/ความสัมพันธ์ต้องถือข้อตกลง ส่งในบัญชี vs ซื้อขาด ตัวตนฝั่งปั๊ม (ผู้ถือ vs ผู้ใช้ที่ยืนยันแล้ว) ยังเปิด
0.32026-07-15OQ-3 closed and OQ-4 decided by the client. OQ-3: the note is a bearer instrument — the driver holding the paper redeems; the station records litres, fuel type, unit price and total against the note's validation number, posting to the payment statement later. OQ-4: the platform provides the pump surface — dedicated kiosks and/or a cross-platform app talking directly to the platform, operating offline when the internet is down with pre-fetched reference data for preliminary validation, syncing back when connectivity returns.ลูกค้าปิด OQ-3 และตัดสิน OQ-4 OQ-3: ใบเป็นตราสารผู้ถือ — คนขับที่ถือใบเป็นผู้ใช้สิทธิ; ปั๊มบันทึกลิตร ชนิดน้ำมัน ราคาต่อหน่วย ยอดรวม เทียบกับเลขตรวจสอบของใบ แล้ว post เข้า statement การจ่ายภายหลัง OQ-4: platform ให้ surface ปั๊ม — คีออสก์เฉพาะ และ/หรือแอป cross-platform ที่สื่อสารตรงกับ platform ทำงาน offline ได้เมื่อเน็ตล่ม ด้วยข้อมูลอ้างอิงดึงล่วงหน้าเพื่อตรวจเบื้องต้น และ sync กลับเมื่อเน็ตกลับมา
0.42026-07-15OQ-2 decided by the client: one fill per note only — a note redeems once up to the cap, unused headroom lapses, no cross-note pooling; FuelCredit ≤ 1 row per note, offline risk reduces to double-redemption of the same note.ลูกค้าตัดสิน OQ-2: เติมครั้งเดียวต่อใบเท่านั้น — ใบใช้สิทธิครั้งเดียวไม่เกินเพดาน วงเงินที่ไม่ใช้หมดอายุ ไม่รวมข้ามใบ; FuelCredit ≤ 1 แถวต่อใบ ความเสี่ยง offline ลดเหลือการใช้ใบเดิมซ้ำ
0.52026-07-15OQ-1 decided by the client: the reference is the OCSB-announced season installment price at 10 CCS — announced at season start, immutable within the season (frozen-vs-floating moot); the fill cap is 80% of that base price × the note's tonnage, the 20% headroom reserved for other payout deductions (loan repayments etc.). Cap formula updated in Sections 2, 4, 6 (FR-151).ลูกค้าตัดสิน OQ-1: อ้างอิงราคาอ้อยงวดที่ สอน. ประกาศต้นฤดูที่ 10 CCS — ไม่เปลี่ยนระหว่างฤดู; เพดานการเติมคือ 80% ของราคาขั้นต้นนั้น × ตันบนใบ เหลือ 20% ไว้ให้การหักอื่น (เช่นชำระคืนเงินกู้) ปรับสูตรเพดานในข้อ 2, 4, 6 (FR-151)
0.62026-07-15OQ-1 amendment by the client: the cap percentage is factory-configurable — fuel_cap_pct joins the factory service config (FR-150, Q-50 family), any percentage of the OCSB season installment price at 10 CCS, with the platform default of 80% where the factory does not override.ลูกค้าแก้เพิ่ม OQ-1: เปอร์เซ็นต์เพดานโรงงานตั้งค่าได้ — fuel_cap_pct เข้า config บริการของโรงงาน (FR-150 ตระกูล Q-50) กี่เปอร์เซ็นต์ของราคาอ้อยงวด สอน. ที่ 10 CCS ก็ได้ โดย platform ใช้ค่าเริ่มต้น 80% หากโรงงานไม่ override
0.72026-07-15OQ-5 decided by the client: the petrol station is normally a separate entity from the factory (e.g. a cooperative) — fuel charges at the station's pump price by default, recorded per fill; subsidized pricing requires factory opt-in override, settable per farmer, per farmer group, or factory-global. Station becomes its own party record; station–factory settlement flagged for the requirements pass.ลูกค้าตัดสิน OQ-5: ปั๊มน้ำมันโดยปกติเป็นนิติบุคคลแยกจากโรงงาน (เช่น สหกรณ์) — คิดค่าน้ำมันที่ราคาหน้าปั๊มโดยค่าเริ่มต้น บันทึกต่อการเติม; ราคาอุดหนุนต้องให้โรงงาน opt-in override ตั้งได้รายชาวไร่ กลุ่มชาวไร่ หรือทั้งโรงงาน สถานีเป็นระเบียน party ของตนเอง; การชำระสถานี–โรงงานยกไปรอบ requirements
0.82026-07-15OQ-6 decided by the client: no interest or service fee to the farmer by default — factory opt-in override (A-15 schedule home). New mandate recorded as principle F3 + FR-155: the intelligent dynamic cap — where contract-farming financing exists, allocate a share of each scheduled repayment across the cycle's planned delivery volume and discount the fuel headroom in real time, with real-time reporting as the platform's competitive edge over in-house/manual systems. Formula details to the requirements pass.ลูกค้าตัดสิน OQ-6: โดยค่าเริ่มต้นไม่มีดอกเบี้ย/ค่าธรรมเนียมกับชาวไร่ — โรงงาน opt-in override ได้ (บ้านตาราง A-15) บันทึกอาณัติใหม่เป็นหลักการ F3 + FR-155: เพดานอัจฉริยะ — เมื่อมีสินเชื่อ contract farming จัดสรรส่วนของยอดชำระตามกำหนดกระจายบนปริมาณส่งมอบตามแผน และหักลดวงเงินน้ำมันแบบ real time พร้อมรายงาน real time เป็นข้อได้เปรียบของ platform รายละเอียดสูตรไปรอบ requirements
0.92026-07-15OQ-7 decided in part by the client: the PROP-020 QR chain live at the kiosk is an extra benefit, not a launch dependency — the delivery note's printed QR carries a self-contained payload (delivery identity, validation number, net tonnage, cap inputs) so the kiosk works intelligently offline from the paper itself, validating preliminarily and reconciling at sync; payload fields join the PROP-020 ticket/QR field spec. Q-50 config-home sequencing remains open.ลูกค้าตัดสิน OQ-7 บางส่วน: สาย QR ของ PROP-020 ที่ live บนคีออสก์เป็นประโยชน์เสริม ไม่ใช่เงื่อนไขเปิดตัว — QR บนใบส่งอ้อยถือ payload ครบในตัว (อัตลักษณ์ delivery เลขตรวจสอบ ตันสุทธิ ข้อมูลเพดาน) ให้คีออสก์ทำงาน offline จากตัวกระดาษเอง ตรวจเบื้องต้นและกระทบยอดตอน sync; field ของ payload เข้า spec ตั๋ว/QR ของ PROP-020 ลำดับเรื่องบ้าน config Q-50 ยังเปิด
0.102026-07-15OQ-7 fully closed: A-50 (Q1 gate) decided the config home — one topic-organized Factory Settings area (mill-settings) in the mill portal; the fuel service's flags (FR-150: enablement, fuel_cap_pct, subsidy prices, eligibility, stations) land in its fuel topic. No remaining sequencing dependency; PROP-027 ships as a post-Q1 additive minor.OQ-7 ปิดสมบูรณ์: A-50 (Q1 gate) ตัดสินบ้าน config — พื้นที่ Factory Settings เดียวจัดตามหัวข้อ (mill-settings) ใน portal โรงงาน; flag ของบริการน้ำมัน (FR-150: การเปิด fuel_cap_pct ราคาอุดหนุน สิทธิ์ สถานี) ลงหัวข้อน้ำมัน ไม่มีเงื่อนไขลำดับค้าง; PROP-027 เป็น minor ส่วนเพิ่มหลัง Q1
1.02026-07-17ACCEPTED by the client and applied graph-first (spec v0.9.0 → v0.10.0). IDs renumbered to the accepted graph: WF-64/65 → WF-45/46, FR-150…155 → FR-114…119, NFR-49 → NFR-35. Graph: +FuelCredit / +FuelStation / +MillFuelConfig (financing context; mill-settings fuel topic joins FR-112), 3 events (FuelCreditRedeemed / FuelCreditOffsetPosted / FuelCreditVoided), 3 relationships incl. unique(delivery_id) enforcing single fill, dataModeling profiles, glossary term. Conventions applied at acceptance: the draft's *_satang money attributes land as baht 2-dp per A-43 (cap_amount, redeemed_amount, pump_price_per_litre); the single-fill decision (OQ-2) simplifies status to open | offset | voided. Perspective-doc mirroring (SPEC-PRD/PWF/ERD/DDD-MILL + farmer surfaces) pending as the next pass.รับรองแล้วโดยลูกค้า และปรับ graph ก่อน (spec v0.9.0 → v0.10.0) เลขปรับตาม graph ที่รับ: WF-64/65 → WF-45/46, FR-150…155 → FR-114…119, NFR-49 → NFR-35 graph: +FuelCredit / +FuelStation / +MillFuelConfig (context financing; หัวข้อน้ำมันเข้า FR-112), 3 event, 3 ความสัมพันธ์ รวม unique(delivery_id) บังคับเติมครั้งเดียว, โปรไฟล์ dataModeling, ศัพท์ 1 คำ ธรรมเนียมที่ใช้ตอนรับ: attribute เงิน *_satang ของร่างลงเป็นบาททศนิยม 2 ตำแหน่งตาม A-43; การตัดสินเติมครั้งเดียว (OQ-2) ย่อสถานะเหลือ open | offset | voided การ mirror เอกสาร perspective (SPEC-PRD/PWF/ERD/DDD-MILL + surface ชาวไร่) เป็นรอบถัดไป
1.12026-07-17Perspective-doc mirror pass complete: SPEC-PRD-MILL 0.4.0 (FR-114…119 + NFR-35 digest), SPEC-PWF-MILL 0.4.0 (WF-45/46 step contracts + SLA row), SPEC-ERD-MILL 0.3.0 / SPEC-DDD-MILL 0.3.0 (entity/event callouts — figures regenerate next render pass), SPEC-UIX-MILL 0.3.1 (mill-settings fuel topic + fuel report; the pump kiosk screen rides the PROP-021/028 train), SPEC-PRD-CFC 0.2.1 (FR-117 farmer visibility).รอบ mirror เอกสาร perspective เสร็จ: SPEC-PRD-MILL 0.4.0 (สรุป FR-114…119 + NFR-35), SPEC-PWF-MILL 0.4.0 (สัญญาขั้นตอน WF-45/46 + แถว SLA), SPEC-ERD-MILL 0.3.0 / SPEC-DDD-MILL 0.3.0 (callout entity/event — ภาพ regenerate รอบ render ถัดไป), SPEC-UIX-MILL 0.3.1 (หัวข้อน้ำมัน + รายงานน้ำมัน; จอคีออสก์ปั๊มไปกับขบวน PROP-021/028), SPEC-PRD-CFC 0.2.1 (การเห็นของชาวไร่ FR-117)