pub struct DeliveryCancelHeaderRow {
pub branch_id: Option<Uuid>,
pub warehouse_id: Uuid,
pub posting_date: NaiveDate,
pub currency: String,
pub delivery_number: String,
pub total_cogs: Decimal,
pub status: String,
pub cogs_account_id: Uuid,
pub inventory_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 outflow 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§delivery_number: String§total_cogs: DecimalThe original posted COGS — the reversal GL leg re-posts this amount (Dr Inventory · Cr COGS).
status: Stringstatus::text — a fresh cancel requires “submitted”; “cancelled” is the recovery short-circuit.
cogs_account_id: Uuid§inventory_account_id: Uuid§gl: GlSettlementState§reversal_journal_id: Option<Uuid>§reversal_accounting_post_id: Option<Uuid>Auto Trait Implementations§
impl Freeze for DeliveryCancelHeaderRow
impl RefUnwindSafe for DeliveryCancelHeaderRow
impl Send for DeliveryCancelHeaderRow
impl Sync for DeliveryCancelHeaderRow
impl Unpin for DeliveryCancelHeaderRow
impl UnsafeUnpin for DeliveryCancelHeaderRow
impl UnwindSafe for DeliveryCancelHeaderRow
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