pub struct NewClosingEntryRow {
pub id: Uuid,
pub pos_profile_id: Uuid,
pub opening_entry_id: Uuid,
pub closed_at: NaiveDateTime,
pub cashier_party_id: Uuid,
pub totals_by_method: Value,
pub grand_total: Decimal,
pub invoice_count: i32,
pub difference_total: Decimal,
}Expand description
The exact row a drawer close (Z-report) writes. Mirrors the raw column shape rather than the
PosClosingEntry entity: totals_by_method is the already-serialised per-method reconciliation and
invoice_count is the i32 the column holds. status is fixed to 'submitted' by the SQL.
Fields§
§id: Uuid§pos_profile_id: Uuid§opening_entry_id: Uuid§closed_at: NaiveDateTime§cashier_party_id: Uuid§totals_by_method: Value§grand_total: Decimal§invoice_count: i32§difference_total: DecimalAuto Trait Implementations§
impl Freeze for NewClosingEntryRow
impl RefUnwindSafe for NewClosingEntryRow
impl Send for NewClosingEntryRow
impl Sync for NewClosingEntryRow
impl Unpin for NewClosingEntryRow
impl UnsafeUnpin for NewClosingEntryRow
impl UnwindSafe for NewClosingEntryRow
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> 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