pub struct ReceiptHeaderRow {Show 13 fields
pub receipt_number: String,
pub posting_at: DateTime<Utc>,
pub net_total: Decimal,
pub tax_total: Decimal,
pub rounding_adjustment: Decimal,
pub rounded_total: Decimal,
pub paid_total: Decimal,
pub change_due: Decimal,
pub status: String,
pub register_name: String,
pub currency: String,
pub tax_rate: Decimal,
pub is_invoiced: bool,
}Expand description
A ticket header as the printed receipt reads it (register name/currency joined in). tax_rate is
the EFFECTIVE rate derived from the ticket’s own totals — the register’s flat tax_rate column is
retired from the compute path, so the slip reports what the document-grade compute actually
produced. is_invoiced derives from the billing link (never a stored state column).
Fields§
§receipt_number: String§posting_at: DateTime<Utc>§net_total: Decimal§tax_total: Decimal§rounding_adjustment: Decimal§rounded_total: Decimal§paid_total: Decimal§change_due: Decimal§status: String§register_name: String§currency: String§tax_rate: Decimal§is_invoiced: boolAuto Trait Implementations§
impl Freeze for ReceiptHeaderRow
impl RefUnwindSafe for ReceiptHeaderRow
impl Send for ReceiptHeaderRow
impl Sync for ReceiptHeaderRow
impl Unpin for ReceiptHeaderRow
impl UnsafeUnpin for ReceiptHeaderRow
impl UnwindSafe for ReceiptHeaderRow
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