pub struct IntercompanyAccountMapping {
pub relationship_id: String,
pub ic_receivable_account: String,
pub ic_payable_account: String,
pub ic_revenue_account: String,
pub ic_expense_account: String,
pub ic_investment_account: Option<String>,
pub ic_equity_account: Option<String>,
}Expand description
Intercompany account mapping for a relationship.
Fields§
§relationship_id: StringThe relationship this mapping applies to.
ic_receivable_account: StringIC Receivable account (seller side).
ic_payable_account: StringIC Payable account (buyer side).
ic_revenue_account: StringIC Revenue account (seller side).
ic_expense_account: StringIC Expense account (buyer side).
ic_investment_account: Option<String>IC Investment account (parent, for equity method).
ic_equity_account: Option<String>IC Equity account (subsidiary, for eliminations).
Implementations§
Source§impl IntercompanyAccountMapping
impl IntercompanyAccountMapping
Sourcepub fn new_standard(relationship_id: String, company_code: &str) -> Self
pub fn new_standard(relationship_id: String, company_code: &str) -> Self
Create a new IC account mapping with standard accounts.
Trait Implementations§
Source§impl Clone for IntercompanyAccountMapping
impl Clone for IntercompanyAccountMapping
Source§fn clone(&self) -> IntercompanyAccountMapping
fn clone(&self) -> IntercompanyAccountMapping
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 IntercompanyAccountMapping
impl Debug for IntercompanyAccountMapping
Source§impl<'de> Deserialize<'de> for IntercompanyAccountMapping
impl<'de> Deserialize<'de> for IntercompanyAccountMapping
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for IntercompanyAccountMapping
impl RefUnwindSafe for IntercompanyAccountMapping
impl Send for IntercompanyAccountMapping
impl Sync for IntercompanyAccountMapping
impl Unpin for IntercompanyAccountMapping
impl UnsafeUnpin for IntercompanyAccountMapping
impl UnwindSafe for IntercompanyAccountMapping
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