pub struct PosInvoiceDto {Show 23 fields
pub id: PosInvoiceId,
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: String,
pub client_uuid: Option<Uuid>,
pub posting_at: DateTime<Utc>,
pub net_total: Decimal,
pub tax_total: Decimal,
pub grand_total: Decimal,
pub rounding_adjustment: Decimal,
pub rounded_total: Decimal,
pub paid_total: Decimal,
pub change_due: Decimal,
pub billing_invoice_id: Option<Uuid>,
pub payment_entry_id: Option<Uuid>,
pub stock_delivery_note_id: Option<Uuid>,
pub is_return: bool,
pub return_against: Option<Uuid>,
pub status: PosInvoiceStatus,
pub metadata: Value,
}Expand description
Data transfer object for PosInvoice
This is the public representation of PosInvoice for other modules.
Fields§
§id: PosInvoiceId§pos_profile_id: Uuid§opening_entry_id: Uuid§branch_id: Option<Uuid>§customer_id: Option<Uuid>§pos_table_id: Option<Uuid>§receipt_number: String§client_uuid: Option<Uuid>§posting_at: DateTime<Utc>§net_total: Decimal§tax_total: Decimal§grand_total: Decimal§rounding_adjustment: Decimal§rounded_total: Decimal§paid_total: Decimal§change_due: Decimal§billing_invoice_id: Option<Uuid>§payment_entry_id: Option<Uuid>§stock_delivery_note_id: Option<Uuid>§is_return: bool§return_against: Option<Uuid>§status: PosInvoiceStatus§metadata: ValueTrait Implementations§
Source§impl Clone for PosInvoiceDto
impl Clone for PosInvoiceDto
Source§impl Debug for PosInvoiceDto
impl Debug for PosInvoiceDto
Source§impl<'de> Deserialize<'de> for PosInvoiceDto
impl<'de> Deserialize<'de> for PosInvoiceDto
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PosInvoiceDto
impl RefUnwindSafe for PosInvoiceDto
impl Send for PosInvoiceDto
impl Sync for PosInvoiceDto
impl Unpin for PosInvoiceDto
impl UnsafeUnpin for PosInvoiceDto
impl UnwindSafe for PosInvoiceDto
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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