pub struct ReceiptCancelHeaderRow {
pub branch_id: Option<Uuid>,
pub warehouse_id: Uuid,
pub posting_date: NaiveDate,
pub currency: String,
pub receipt_number: String,
pub total_value: Decimal,
pub status: String,
pub inventory_account_id: Uuid,
pub grir_account_id: Uuid,
pub gl: GlSettlementState,
pub reversal_journal_id: Option<Uuid>,
pub reversal_accounting_post_id: Option<Uuid>,
}Expand description
The cancel path’s header projection — everything needed to reverse the inflow and emit the
posting_type='reversal' post. Carries the original accounting_post_id (to reverse) and any
already-recorded reversal_accounting_post_id (the idempotency/recovery short-circuit).
Fields§
§branch_id: Option<Uuid>§warehouse_id: Uuid§posting_date: NaiveDate§currency: String§receipt_number: String§total_value: DecimalThe original posted value — the reversal GL leg re-posts this amount (Dr GR/IR · Cr Inventory).
status: Stringstatus::text — a fresh cancel requires “submitted”; “cancelled” is the idempotent/recovery
short-circuit.
inventory_account_id: Uuid§grir_account_id: Uuid§gl: GlSettlementState§reversal_journal_id: Option<Uuid>§reversal_accounting_post_id: Option<Uuid>Auto Trait Implementations§
impl Freeze for ReceiptCancelHeaderRow
impl RefUnwindSafe for ReceiptCancelHeaderRow
impl Send for ReceiptCancelHeaderRow
impl Sync for ReceiptCancelHeaderRow
impl Unpin for ReceiptCancelHeaderRow
impl UnsafeUnpin for ReceiptCancelHeaderRow
impl UnwindSafe for ReceiptCancelHeaderRow
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