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 (const: unstable) · 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.Source§fn to_node_properties(&self) -> HashMap<String, GraphPropertyValue>
fn to_node_properties(&self) -> HashMap<String, GraphPropertyValue>
Auto Trait Implementations§
impl Freeze for ProductionOrder
impl RefUnwindSafe for ProductionOrder
impl Send for ProductionOrder
impl Sync for ProductionOrder
impl Unpin for ProductionOrder
impl UnsafeUnpin for ProductionOrder
impl UnwindSafe for ProductionOrder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.