pub struct NewReturnInvoiceRow {Show 13 fields
pub id: Uuid,
pub pos_profile_id: Uuid,
pub opening_entry_id: Uuid,
pub branch_id: Option<Uuid>,
pub customer_id: Option<Uuid>,
pub receipt_number: String,
pub posting_at: DateTime<Utc>,
pub net_total: Decimal,
pub tax_total: Decimal,
pub grand_total: Decimal,
pub rounded_total: Decimal,
pub billing_invoice_id: Uuid,
pub return_against: Uuid,
}Expand description
The exact row a return ticket writes. Mirrors the raw column shape: the SQL fixes
rounding_adjustment to 0, binds rounded_total to both the rounded and paid totals ($12), fixes
change_due to 0, and fixes is_return/status to true/'returned'.
Fields§
§id: Uuid§pos_profile_id: Uuid§opening_entry_id: Uuid§branch_id: Option<Uuid>§customer_id: Option<Uuid>§receipt_number: String§posting_at: DateTime<Utc>§net_total: Decimal§tax_total: Decimal§grand_total: Decimal§rounded_total: Decimal§billing_invoice_id: Uuid§return_against: UuidAuto Trait Implementations§
impl Freeze for NewReturnInvoiceRow
impl RefUnwindSafe for NewReturnInvoiceRow
impl Send for NewReturnInvoiceRow
impl Sync for NewReturnInvoiceRow
impl Unpin for NewReturnInvoiceRow
impl UnsafeUnpin for NewReturnInvoiceRow
impl UnwindSafe for NewReturnInvoiceRow
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