Export Sales Contracts & Primary Origination
International sales purchase contract administration, ECTA export registration, coffee grade classification, and primary washing station lot tracking.
Sales Purchase Contract Administration#
Coffee export transactions originate when an overseas importer or specialty roaster issues a Purchase Order. Exporters record this in SmartERP using yamare.sale.purchase.contract.
Contract Form Fields#
classDiagram
class YamareSalePurchaseContract {
+Char name
+Many2one partner_id
+Many2one product_id
+Many2one product_origin
+Float quantity
+Integer grade
+Float price_unit
+Selection state
+Many2one processing_order_id
+action_create_processing_order()
}
partner_id: International green coffee buyer (e.g., European specialty green coffee importer).product_origin: Raw source coffee product (e.g., Raw Washed Yirgacheffe Parchment).product_id: Final exportable product (e.g., Export Green Yirgacheffe Grade 2).grade: ECTA official classification (Grades 1 & 2 = Specialty Cup; Grades 3, 4, 5 = Commercial Arabica).quantity: Contracted volume in Metric Tons (MT) or 60 kg export jute bags.processing_order_id: Upstream manufacturing/processing order (mrp.production).
Contract-to-Processing Transition#
From the contract form, clicking Create Processing Order triggers action_create_processing_order():
sequenceDiagram
autonumber
actor Officer as Export Officer
participant Contract as Yamare Sale Purchase Contract
participant BOM as mrp.bom
participant MRP as mrp.production
Officer->>Contract: Confirm Sales Contract (Grade, Qty, Target Origin)
Officer->>Contract: Action: Create Processing Order
Contract->>BOM: Locate matching Bill of Materials for Product Origin
Contract->>MRP: Instantiate Processing Order (MO) pre-linked with Contract ID & Grade
MRP-->>Contract: Populate processing_order_id & open MO Form
Note over Contract,MRP: Contract state remains open until MRP order is marked Done
Important
National Bank of Ethiopia (NBE) foreign exchange regulations mandate that contract prices meet or exceed the weekly minimum export price published by the Ethiopian Coffee and Tea Authority (ECTA). Exporters cannot proceed to processing until the minimum price check is verified.
Last updated: 2026-11-12