pub struct RecognitionRow {Show 18 fields
pub customer_id: Option<Uuid>,
pub branch_id: Option<Uuid>,
pub posting_at: DateTime<Utc>,
pub rounded_total: Decimal,
pub grand_total: Decimal,
pub tax_total: Decimal,
pub paid_total: Decimal,
pub billing_invoice_id: Option<Uuid>,
pub receivable_account_id: Option<Uuid>,
pub income_account_id: Option<Uuid>,
pub cash_account_id: Option<Uuid>,
pub tax_account_id: Option<Uuid>,
pub tax_rate: Decimal,
pub warehouse_id: Option<Uuid>,
pub cogs_account_id: Option<Uuid>,
pub inventory_account_id: Option<Uuid>,
pub currency: String,
pub default_customer_id: Option<Uuid>,
}Expand description
Everything recognition needs about a draft ticket + its register, in one read: the money to settle, the accounts to post to, and the stock dimensions to relieve.
Fields§
§customer_id: Option<Uuid>§branch_id: Option<Uuid>§posting_at: DateTime<Utc>§rounded_total: Decimal§grand_total: Decimal§tax_total: Decimal§paid_total: Decimal§billing_invoice_id: Option<Uuid>§receivable_account_id: Option<Uuid>§income_account_id: Option<Uuid>§cash_account_id: Option<Uuid>§tax_account_id: Option<Uuid>§tax_rate: Decimal§warehouse_id: Option<Uuid>§cogs_account_id: Option<Uuid>§inventory_account_id: Option<Uuid>§currency: String§default_customer_id: Option<Uuid>Auto Trait Implementations§
impl Freeze for RecognitionRow
impl RefUnwindSafe for RecognitionRow
impl Send for RecognitionRow
impl Sync for RecognitionRow
impl Unpin for RecognitionRow
impl UnsafeUnpin for RecognitionRow
impl UnwindSafe for RecognitionRow
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