pub struct MoveGlDirective {
pub cogs_account_id: Option<Uuid>,
pub inventory_account_id: Option<Uuid>,
pub grir_account_id: Option<Uuid>,
pub adjustment_account_id: Option<Uuid>,
pub currency: String,
}Expand description
GL accounts for the legs _action_done may post. Accounts are inventory/composition config —
the same posture as the intake contract (the caller supplies them; they are not move columns).
A leg whose accounts are absent is simply not posted (gl_posted=false), the physical movement
is unaffected.
Fields§
§cogs_account_id: Option<Uuid>COGS debit account for OUT legs (internal -> customer).
inventory_account_id: Option<Uuid>Inventory valuation account (credit side of OUT, debit side of IN).
grir_account_id: Option<Uuid>GR/IR clearing account (credit side of external IN legs).
adjustment_account_id: Option<Uuid>Adjustment account for is_inventory moves (the value-diff counterleg).
currency: StringLedger currency of the post.
Trait Implementations§
Source§impl Clone for MoveGlDirective
impl Clone for MoveGlDirective
Source§impl Debug for MoveGlDirective
impl Debug for MoveGlDirective
Auto Trait Implementations§
impl Freeze for MoveGlDirective
impl RefUnwindSafe for MoveGlDirective
impl Send for MoveGlDirective
impl Sync for MoveGlDirective
impl Unpin for MoveGlDirective
impl UnsafeUnpin for MoveGlDirective
impl UnwindSafe for MoveGlDirective
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,
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