pub struct SyncLookupRow {Show 16 fields
pub id: Uuid,
pub status: String,
pub pos_profile_id: Uuid,
pub opening_entry_id: Uuid,
pub branch_id: Option<Uuid>,
pub customer_id: Option<Uuid>,
pub pos_table_id: Option<Uuid>,
pub is_return: bool,
pub return_against: Option<Uuid>,
pub net_total: Decimal,
pub tax_total: Decimal,
pub grand_total: Decimal,
pub rounding_adjustment: Decimal,
pub rounded_total: Decimal,
pub paid_total: Decimal,
pub change_due: Decimal,
}Expand description
A ticket looked up by its offline-sync identity — everything sync_from_ui needs to decide
create-vs-update-vs-replay: identity anchors (session, partner), the refund lineage, and the
persisted money (returned as the replay’s totals when the ticket is already finalized).
Fields§
§id: Uuid§status: String§pos_profile_id: Uuid§opening_entry_id: Uuid§branch_id: Option<Uuid>§customer_id: Option<Uuid>§pos_table_id: Option<Uuid>The table the draft is currently seated at (for transfer validation on replay).
is_return: bool§return_against: Option<Uuid>For a refund ticket: the server id of the parent it was recorded against.
net_total: Decimal§tax_total: Decimal§grand_total: Decimal§rounding_adjustment: Decimal§rounded_total: Decimal§paid_total: Decimal§change_due: DecimalAuto Trait Implementations§
impl Freeze for SyncLookupRow
impl RefUnwindSafe for SyncLookupRow
impl Send for SyncLookupRow
impl Sync for SyncLookupRow
impl Unpin for SyncLookupRow
impl UnsafeUnpin for SyncLookupRow
impl UnwindSafe for SyncLookupRow
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