pub struct DocumentFlowJeConfig {
pub inventory_account: String,
pub gr_ir_clearing_account: String,
pub ap_account: String,
pub cash_account: String,
pub ar_account: String,
pub revenue_account: String,
pub cogs_account: String,
pub vat_output_account: String,
pub vat_input_account: String,
pub populate_fec_fields: bool,
pub direct_expense_share: f64,
}Expand description
Configuration for document flow JE generation.
Fields§
§inventory_account: StringInventory account (default: 1200 from control_accounts::INVENTORY)
gr_ir_clearing_account: StringGR/IR clearing account (default: 2900 from control_accounts::GR_IR_CLEARING)
ap_account: StringAccounts payable control account (default: 2000 from control_accounts::AP_CONTROL)
cash_account: StringCash/bank account (default: 1000 from cash_accounts::OPERATING_CASH)
ar_account: StringAccounts receivable control account (default: 1100 from control_accounts::AR_CONTROL)
revenue_account: StringRevenue account (default: 4000 from revenue_accounts::PRODUCT_REVENUE)
cogs_account: StringCOGS account (default: 5000 from expense_accounts::COGS)
vat_output_account: StringVAT output (payable) account for O2C (default: 2110 from tax_accounts::VAT_PAYABLE)
vat_input_account: StringVAT input (receivable) account for P2P (default: 1160 from tax_accounts::INPUT_VAT)
populate_fec_fields: boolWhether to populate FEC auxiliary and lettrage fields on AP/AR lines. Only relevant for French GAAP / FEC export.
SP3.13 W1 — Share of vendor invoices that post directly to expense GL accounts (bypassing GR/IR Clearing). corpus ratio is ~70% direct (services, utilities, travel, professional fees) vs. ~30% via GR/IR (three-way-match for materials receipts).
When loaded_priors.is_some(), the direct-expense path draws the GL
account from the per-source conditional keyed on “KR”, so W1.5
split_je_expense_lines can then split it into multiple expense lines.
Clamped to [0.0, 1.0]. Default: 0.70.
No-op when loaded_priors is None (priors-disabled path unchanged).
Implementations§
Source§impl DocumentFlowJeConfig
impl DocumentFlowJeConfig
Sourcepub fn french_gaap() -> Self
pub fn french_gaap() -> Self
Create a config for French GAAP (PCG) with FEC field population enabled.
Trait Implementations§
Source§impl Clone for DocumentFlowJeConfig
impl Clone for DocumentFlowJeConfig
Source§fn clone(&self) -> DocumentFlowJeConfig
fn clone(&self) -> DocumentFlowJeConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DocumentFlowJeConfig
impl Debug for DocumentFlowJeConfig
Source§impl Default for DocumentFlowJeConfig
impl Default for DocumentFlowJeConfig
Source§impl From<&FrameworkAccounts> for DocumentFlowJeConfig
impl From<&FrameworkAccounts> for DocumentFlowJeConfig
Source§fn from(fa: &FrameworkAccounts) -> Self
fn from(fa: &FrameworkAccounts) -> Self
Auto Trait Implementations§
impl Freeze for DocumentFlowJeConfig
impl RefUnwindSafe for DocumentFlowJeConfig
impl Send for DocumentFlowJeConfig
impl Sync for DocumentFlowJeConfig
impl Unpin for DocumentFlowJeConfig
impl UnsafeUnpin for DocumentFlowJeConfig
impl UnwindSafe for DocumentFlowJeConfig
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
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<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.