pub struct ProductionOrder {Show 23 fields
pub order_id: String,
pub company_code: String,
pub material_id: String,
pub material_description: String,
pub order_type: ProductionOrderType,
pub status: ProductionOrderStatus,
pub planned_quantity: Decimal,
pub actual_quantity: Decimal,
pub scrap_quantity: Decimal,
pub planned_start: NaiveDate,
pub planned_end: NaiveDate,
pub actual_start: Option<NaiveDate>,
pub actual_end: Option<NaiveDate>,
pub work_center: String,
pub routing_id: Option<String>,
pub planned_cost: Decimal,
pub actual_cost: Decimal,
pub cost_breakdown: Option<CostBreakdown>,
pub labor_hours: f64,
pub machine_hours: f64,
pub yield_rate: f64,
pub batch_number: Option<String>,
pub operations: Vec<RoutingOperation>,
}Expand description
A production order representing a manufacturing run.
Fields§
§order_id: StringUnique production order identifier
company_code: StringCompany code this order belongs to
material_id: StringMaterial being produced
material_description: StringDescription of the material being produced
order_type: ProductionOrderTypeType of production order
status: ProductionOrderStatusCurrent status of the production order
planned_quantity: DecimalPlanned production quantity
actual_quantity: DecimalActual quantity produced
scrap_quantity: DecimalQuantity scrapped during production
planned_start: NaiveDatePlanned start date
planned_end: NaiveDatePlanned end date
actual_start: Option<NaiveDate>Actual start date (set when production begins)
actual_end: Option<NaiveDate>Actual end date (set when production completes)
work_center: StringWork center responsible for production
routing_id: Option<String>Optional routing identifier
planned_cost: DecimalPlanned cost of production
actual_cost: DecimalActual cost incurred
cost_breakdown: Option<CostBreakdown>Detailed cost breakdown by component (material, labor, overhead).
When present, actual_cost equals cost_breakdown.total_actual().
labor_hours: f64Total labor hours consumed
machine_hours: f64Total machine hours consumed
yield_rate: f64Production yield rate (0.0 to 1.0)
batch_number: Option<String>Optional batch number for traceability
operations: Vec<RoutingOperation>Routing operations for this production order
Trait Implementations§
Source§impl Clone for ProductionOrder
impl Clone for ProductionOrder
Source§fn clone(&self) -> ProductionOrder
fn clone(&self) -> ProductionOrder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ProductionOrder
impl Debug for ProductionOrder
Source§impl<'de> Deserialize<'de> for ProductionOrder
impl<'de> Deserialize<'de> for ProductionOrder
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for ProductionOrder
impl Serialize for ProductionOrder
Source§impl ToNodeProperties for ProductionOrder
impl ToNodeProperties for ProductionOrder
Source§fn node_type_name(&self) -> &'static str
fn node_type_name(&self) -> &'static str
"uncertain_tax_position".Source§fn node_type_code(&self) -> u16
fn node_type_code(&self) -> u16
416.