pub enum ManufacturingTransaction {
Show 14 variants
WorkOrderIssuance {
order_id: String,
product_id: String,
quantity: u32,
order_type: ProductionOrderType,
date: NaiveDate,
},
MaterialRequisition {
order_id: String,
materials: Vec<MaterialLine>,
date: NaiveDate,
},
LaborBooking {
order_id: String,
work_center: String,
hours: Decimal,
labor_rate: Decimal,
date: NaiveDate,
},
OverheadAbsorption {
order_id: String,
absorption_rate: Decimal,
base_amount: Decimal,
date: NaiveDate,
},
ScrapReporting {
order_id: String,
material_id: String,
quantity: u32,
reason: ScrapReason,
scrap_value: Decimal,
date: NaiveDate,
},
ReworkOrder {
original_order_id: String,
rework_order_id: String,
quantity: u32,
estimated_cost: Decimal,
date: NaiveDate,
},
ProductionVariance {
order_id: String,
variance_type: VarianceType,
amount: Decimal,
date: NaiveDate,
},
ProductionCompletion {
order_id: String,
product_id: String,
quantity_completed: u32,
total_cost: Decimal,
date: NaiveDate,
},
RawMaterialReceipt {
po_id: String,
material_id: String,
quantity: u32,
unit_cost: Decimal,
date: NaiveDate,
},
WipTransfer {
from_center: String,
to_center: String,
order_id: String,
quantity: u32,
value: Decimal,
date: NaiveDate,
},
FinishedGoodsTransfer {
order_id: String,
product_id: String,
quantity: u32,
location: String,
unit_cost: Decimal,
date: NaiveDate,
},
CycleCountAdjustment {
material_id: String,
location: String,
variance_quantity: i32,
unit_cost: Decimal,
date: NaiveDate,
},
StandardCostRevaluation {
material_id: String,
old_cost: Decimal,
new_cost: Decimal,
inventory_quantity: u32,
date: NaiveDate,
},
PurchasePriceVariance {
material_id: String,
po_id: String,
standard_cost: Decimal,
actual_cost: Decimal,
quantity: u32,
date: NaiveDate,
},
}Expand description
Manufacturing transaction types.
Variants§
WorkOrderIssuance
Creation of a production order.
Fields
§
order_type: ProductionOrderTypeMaterialRequisition
Issuance of materials to production.
LaborBooking
Posting of labor hours to production.
OverheadAbsorption
Overhead absorption posting.
ScrapReporting
Scrap reporting.
Fields
§
reason: ScrapReasonReworkOrder
Rework order creation.
Fields
ProductionVariance
Production variance posting.
ProductionCompletion
Completion of production order.
Fields
RawMaterialReceipt
Receipt of raw materials.
WipTransfer
Transfer between production stages.
Fields
FinishedGoodsTransfer
Transfer of finished goods to inventory.
Fields
CycleCountAdjustment
Cycle count adjustment.
Fields
StandardCostRevaluation
Standard cost revaluation.
Fields
PurchasePriceVariance
Purchase price variance.
Trait Implementations§
Source§impl Clone for ManufacturingTransaction
impl Clone for ManufacturingTransaction
Source§fn clone(&self) -> ManufacturingTransaction
fn clone(&self) -> ManufacturingTransaction
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 ManufacturingTransaction
impl Debug for ManufacturingTransaction
Source§impl<'de> Deserialize<'de> for ManufacturingTransaction
impl<'de> Deserialize<'de> for ManufacturingTransaction
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
Source§impl IndustryTransaction for ManufacturingTransaction
impl IndustryTransaction for ManufacturingTransaction
Source§fn transaction_type(&self) -> &str
fn transaction_type(&self) -> &str
Returns the transaction type name.
Source§fn to_journal_lines(&self) -> Vec<IndustryJournalLine>
fn to_journal_lines(&self) -> Vec<IndustryJournalLine>
Converts to journal entry line items.
Auto Trait Implementations§
impl Freeze for ManufacturingTransaction
impl RefUnwindSafe for ManufacturingTransaction
impl Send for ManufacturingTransaction
impl Sync for ManufacturingTransaction
impl Unpin for ManufacturingTransaction
impl UnsafeUnpin for ManufacturingTransaction
impl UnwindSafe for ManufacturingTransaction
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