pub struct ProductionOrder {Show 22 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 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
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
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ProductionOrder
impl RefUnwindSafe for ProductionOrder
impl Send for ProductionOrder
impl Sync for ProductionOrder
impl Unpin 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
Mutably borrows from an owned value. Read more