pub struct TaxConfigRow {
pub tax_template_ids: Option<Value>,
pub rounding_strategy: String,
pub rounding_unit: Decimal,
pub allow_discount: bool,
}Expand description
A register’s pricing-side configuration: the document-grade tax templates + the cash rounding setup + the discount permission. Everything the ticket compute core and the order-discount gate need from the profile.
Fields§
§tax_template_ids: Option<Value>The register’s tax template refs ([template id, ...], logical refs to tax.TaxTemplate).
rounding_strategy: StringRounding strategy code: none or half_up.
rounding_unit: DecimalThe rounding step (e.g. 100 for IDR); 0 = no rounding.
allow_discount: boolWhether this register permits discounts. Gates the ORDER-LEVEL discount lane (a register configured discount-off refuses a ring that names a discount master row).
Auto Trait Implementations§
impl Freeze for TaxConfigRow
impl RefUnwindSafe for TaxConfigRow
impl Send for TaxConfigRow
impl Sync for TaxConfigRow
impl Unpin for TaxConfigRow
impl UnsafeUnpin for TaxConfigRow
impl UnwindSafe for TaxConfigRow
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