pub struct PIItem {
pub item_number: u32,
pub material_id: String,
pub description: String,
pub book_quantity: Decimal,
pub counted_quantity: Option<Decimal>,
pub difference: Option<Decimal>,
pub unit: String,
pub batch_number: Option<String>,
pub zero_count: bool,
pub difference_reason: Option<String>,
}Expand description
Physical inventory item.
Fields§
§item_number: u32Item number.
material_id: StringMaterial ID.
description: StringDescription.
book_quantity: DecimalBook quantity.
counted_quantity: Option<Decimal>Counted quantity.
difference: Option<Decimal>Difference.
unit: StringUnit.
batch_number: Option<String>Batch number.
zero_count: boolIs zero count.
difference_reason: Option<String>Difference reason.
Implementations§
Source§impl PIItem
impl PIItem
Sourcepub fn calculate_difference(&mut self)
pub fn calculate_difference(&mut self)
Calculates difference.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PIItem
impl<'de> Deserialize<'de> for PIItem
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 PIItem
impl RefUnwindSafe for PIItem
impl Send for PIItem
impl Sync for PIItem
impl Unpin for PIItem
impl UnwindSafe for PIItem
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