pub struct MoveRow {Show 24 fields
pub id: Uuid,
pub name: String,
pub state: String,
pub posting_state: String,
pub date: DateTime<Utc>,
pub item_id: Uuid,
pub demand_qty: Decimal,
pub quantity: Decimal,
pub price_unit: Decimal,
pub procure_method: String,
pub picking_id: Option<Uuid>,
pub origin: Option<String>,
pub rule_id: Option<Uuid>,
pub location_id: Uuid,
pub location_dest_id: Uuid,
pub partner_id: Option<Uuid>,
pub warehouse_id: Option<Uuid>,
pub orderpoint_id: Option<Uuid>,
pub move_orig_ids: Vec<Uuid>,
pub move_dest_ids: Vec<Uuid>,
pub is_inventory: bool,
pub scrapped: bool,
pub propagate_cancel: bool,
pub forced_value: Option<Decimal>,
}Expand description
A move row as the engine reads it. state / procure_method decode as text (the enum lives in
the DB; string comparison against the snake_case vocabulary is the module’s proven pattern).
Fields§
§id: Uuid§name: String§state: String§posting_state: StringGL settlement state of the move’s OWN AccountingPost leg, decoded as text
(“not_applicable” | “pending” | “posted” | “failed”). Distinct from the lifecycle
state: a done move can carry a failed GL leg (the physical movement stands,
the GL leg is missing and re-drivable).
date: DateTime<Utc>§item_id: Uuid§demand_qty: Decimal§quantity: Decimal§price_unit: Decimal§procure_method: String§picking_id: Option<Uuid>§origin: Option<String>§rule_id: Option<Uuid>The procurement rule that minted this move (the _run_pull / _run_push provenance —
moves minted through a rule carry it, door-minted and hand-minted moves do not).
location_id: Uuid§location_dest_id: Uuid§partner_id: Option<Uuid>§warehouse_id: Option<Uuid>§orderpoint_id: Option<Uuid>§move_orig_ids: Vec<Uuid>§move_dest_ids: Vec<Uuid>§is_inventory: bool§scrapped: bool§propagate_cancel: bool§forced_value: Option<Decimal>Explicit total value the move carries (a document reversal valued at its original
amount); None on ordinary moves.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MoveRow
impl RefUnwindSafe for MoveRow
impl Send for MoveRow
impl Sync for MoveRow
impl Unpin for MoveRow
impl UnsafeUnpin for MoveRow
impl UnwindSafe for MoveRow
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more