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,
}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.
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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more