pub struct QuantAvailability {
pub item_id: Uuid,
pub location_id: Uuid,
pub on_hand_qty: Decimal,
pub reserved_qty: Decimal,
pub available_qty: Decimal,
pub quant_count: i64,
}Expand description
The quant-grain availability view at one LOCATION (the reservation triangle’s READ arm, spec
stock-business-logic §3 / stock.hook.yaml T2): available_qty = quantity − reserved_quantity
summed over the location’s quant rows — the authoritative pair, read off; never a second
writer. quant_count is the dimension-tuple spread (item x lot x package x owner rows).
Fields§
§item_id: Uuid§location_id: Uuid§on_hand_qty: Decimal§reserved_qty: Decimal§available_qty: Decimal§quant_count: i64Trait Implementations§
Source§impl Clone for QuantAvailability
impl Clone for QuantAvailability
Source§impl Debug for QuantAvailability
impl Debug for QuantAvailability
Source§impl<'de> Deserialize<'de> for QuantAvailability
impl<'de> Deserialize<'de> for QuantAvailability
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 PartialEq for QuantAvailability
impl PartialEq for QuantAvailability
Source§impl Serialize for QuantAvailability
impl Serialize for QuantAvailability
impl StructuralPartialEq for QuantAvailability
Auto Trait Implementations§
impl Freeze for QuantAvailability
impl RefUnwindSafe for QuantAvailability
impl Send for QuantAvailability
impl Sync for QuantAvailability
impl Unpin for QuantAvailability
impl UnsafeUnpin for QuantAvailability
impl UnwindSafe for QuantAvailability
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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