pub struct NewDraftInvoiceRow<'a> {Show 14 fields
pub id: Uuid,
pub client_uuid: Option<Uuid>,
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 receipt_number: &'a str,
pub posting_at: NaiveDateTime,
pub net_total: Decimal,
pub tax_total: Decimal,
pub grand_total: Decimal,
pub rounding_adjustment: Decimal,
pub rounded_total: Decimal,
}Expand description
The exact row a rung ticket writes. Mirrors the raw column shape rather than the PosInvoice
entity: the money fields are already computed by the service, and paid_total/change_due/
is_return/status are fixed by the SQL (0,0,false,'draft'). client_uuid carries the offline
sync identity when the ticket is being replayed from a client (server-originated rings pass None).
pos_table_id seats the ticket at a dining table (restaurant lanes); counter sales pass None.
Fields§
§id: Uuid§client_uuid: Option<Uuid>§pos_profile_id: Uuid§opening_entry_id: Uuid§branch_id: Option<Uuid>§customer_id: Option<Uuid>§pos_table_id: Option<Uuid>§receipt_number: &'a str§posting_at: NaiveDateTime§net_total: Decimal§tax_total: Decimal§grand_total: Decimal§rounding_adjustment: Decimal§rounded_total: DecimalAuto Trait Implementations§
impl<'a> Freeze for NewDraftInvoiceRow<'a>
impl<'a> RefUnwindSafe for NewDraftInvoiceRow<'a>
impl<'a> Send for NewDraftInvoiceRow<'a>
impl<'a> Sync for NewDraftInvoiceRow<'a>
impl<'a> Unpin for NewDraftInvoiceRow<'a>
impl<'a> UnsafeUnpin for NewDraftInvoiceRow<'a>
impl<'a> UnwindSafe for NewDraftInvoiceRow<'a>
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