pub struct InventoryValuationLine {Show 13 fields
pub material_id: String,
pub description: String,
pub plant: String,
pub storage_location: String,
pub quantity: Decimal,
pub unit: String,
pub cost_per_unit: Decimal,
pub total_cost: Decimal,
pub nrv_per_unit: Decimal,
pub total_nrv: Decimal,
pub write_down_amount: Decimal,
pub carrying_value: Decimal,
pub is_impaired: bool,
}Expand description
Per-material valuation line including NRV and potential write-down.
Fields§
§material_id: StringMaterial ID.
description: StringMaterial description.
plant: StringPlant.
storage_location: StringStorage location.
quantity: DecimalQuantity on hand.
unit: StringUnit of measure.
cost_per_unit: DecimalCost per unit (from subledger position).
total_cost: DecimalTotal cost value.
nrv_per_unit: DecimalEstimated NRV per unit.
total_nrv: DecimalTotal NRV.
write_down_amount: DecimalWrite-down required (lower of cost vs NRV, per IAS 2). Zero when NRV >= cost.
carrying_value: DecimalCarrying value after write-down (min of cost and NRV).
is_impaired: boolWhether the position is impaired (write_down_amount > 0).
Trait Implementations§
Source§impl Clone for InventoryValuationLine
impl Clone for InventoryValuationLine
Source§fn clone(&self) -> InventoryValuationLine
fn clone(&self) -> InventoryValuationLine
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 InventoryValuationLine
impl Debug for InventoryValuationLine
Source§impl<'de> Deserialize<'de> for InventoryValuationLine
impl<'de> Deserialize<'de> for InventoryValuationLine
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 InventoryValuationLine
impl RefUnwindSafe for InventoryValuationLine
impl Send for InventoryValuationLine
impl Sync for InventoryValuationLine
impl Unpin for InventoryValuationLine
impl UnsafeUnpin for InventoryValuationLine
impl UnwindSafe for InventoryValuationLine
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