pub struct InventoryMovement {Show 13 fields
pub id: String,
pub entity_code: String,
pub material_code: String,
pub material_description: String,
pub movement_date: NaiveDate,
pub period: String,
pub movement_type: MovementType,
pub quantity: Decimal,
pub unit: String,
pub value: Decimal,
pub currency: String,
pub storage_location: String,
pub reference_doc: String,
}Expand description
A stock movement record (goods receipt, issue, transfer, etc.).
Fields§
§id: StringUnique movement document ID
entity_code: StringCompany / entity code
material_code: StringMaterial ID
material_description: StringMaterial description
movement_date: NaiveDateDate of the movement
period: StringFiscal period (e.g. “2024-06”)
movement_type: MovementTypeMovement type
quantity: DecimalQuantity moved
unit: StringUnit of measure
value: DecimalTotal value of the movement
currency: StringCurrency code
storage_location: StringStorage location
reference_doc: StringReference document (PO, production order, etc.)
Implementations§
Source§impl InventoryMovement
impl InventoryMovement
Sourcepub fn new(
id: impl Into<String>,
entity_code: impl Into<String>,
material_code: impl Into<String>,
material_description: impl Into<String>,
movement_date: NaiveDate,
period: impl Into<String>,
movement_type: MovementType,
quantity: Decimal,
unit: impl Into<String>,
value: Decimal,
currency: impl Into<String>,
storage_location: impl Into<String>,
reference_doc: impl Into<String>,
) -> Self
pub fn new( id: impl Into<String>, entity_code: impl Into<String>, material_code: impl Into<String>, material_description: impl Into<String>, movement_date: NaiveDate, period: impl Into<String>, movement_type: MovementType, quantity: Decimal, unit: impl Into<String>, value: Decimal, currency: impl Into<String>, storage_location: impl Into<String>, reference_doc: impl Into<String>, ) -> Self
Create a new inventory movement.
Trait Implementations§
Source§impl Clone for InventoryMovement
impl Clone for InventoryMovement
Source§fn clone(&self) -> InventoryMovement
fn clone(&self) -> InventoryMovement
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 InventoryMovement
impl Debug for InventoryMovement
Source§impl<'de> Deserialize<'de> for InventoryMovement
impl<'de> Deserialize<'de> for InventoryMovement
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 Serialize for InventoryMovement
impl Serialize for InventoryMovement
Source§impl ToNodeProperties for InventoryMovement
impl ToNodeProperties for InventoryMovement
Source§fn node_type_name(&self) -> &'static str
fn node_type_name(&self) -> &'static str
Entity type name (snake_case), e.g.
"uncertain_tax_position".Source§fn node_type_code(&self) -> u16
fn node_type_code(&self) -> u16
Numeric entity type code for registry, e.g.
416.Source§fn to_node_properties(&self) -> HashMap<String, GraphPropertyValue>
fn to_node_properties(&self) -> HashMap<String, GraphPropertyValue>
Convert all fields to a property map with camelCase keys.
Auto Trait Implementations§
impl Freeze for InventoryMovement
impl RefUnwindSafe for InventoryMovement
impl Send for InventoryMovement
impl Sync for InventoryMovement
impl Unpin for InventoryMovement
impl UnsafeUnpin for InventoryMovement
impl UnwindSafe for InventoryMovement
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