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 populate_fec_fields: bool,
}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)
populate_fec_fields: boolWhether to populate FEC auxiliary and lettrage fields on AP/AR lines. Only relevant for French GAAP / FEC export.
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
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
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
Converts to this type from the input type.
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
Mutably borrows from an owned value. Read more