pub struct GeneralLedger { /* private fields */ }Implementations§
Source§impl GeneralLedger
impl GeneralLedger
Source§impl GeneralLedger
impl GeneralLedger
pub fn into_reference( val: GeneralLedger, env: Env, ) -> Result<Reference<GeneralLedger>>
pub fn into_instance(self, env: Env) -> Result<ClassInstance<GeneralLedger>>
Source§impl GeneralLedger
impl GeneralLedger
Sourcepub async fn create_account(
&self,
input: CreateGlAccountInput,
) -> Result<GlAccountOutput>
pub async fn create_account( &self, input: CreateGlAccountInput, ) -> Result<GlAccountOutput>
Create a GL account
Sourcepub async fn get_account(&self, id: String) -> Result<Option<GlAccountOutput>>
pub async fn get_account(&self, id: String) -> Result<Option<GlAccountOutput>>
Get a GL account by ID
Sourcepub async fn get_account_by_number(
&self,
account_number: String,
) -> Result<Option<GlAccountOutput>>
pub async fn get_account_by_number( &self, account_number: String, ) -> Result<Option<GlAccountOutput>>
Get a GL account by account number
Sourcepub async fn list_accounts(&self) -> Result<Vec<GlAccountOutput>>
pub async fn list_accounts(&self) -> Result<Vec<GlAccountOutput>>
List GL accounts
Sourcepub async fn initialize_chart_of_accounts(&self) -> Result<Vec<GlAccountOutput>>
pub async fn initialize_chart_of_accounts(&self) -> Result<Vec<GlAccountOutput>>
Initialize standard chart of accounts
Sourcepub async fn get_journal_entry(
&self,
id: String,
) -> Result<Option<JournalEntryOutput>>
pub async fn get_journal_entry( &self, id: String, ) -> Result<Option<JournalEntryOutput>>
Get a journal entry by ID
Sourcepub async fn list_journal_entries(&self) -> Result<Vec<JournalEntryOutput>>
pub async fn list_journal_entries(&self) -> Result<Vec<JournalEntryOutput>>
List journal entries
Sourcepub async fn post_journal_entry(
&self,
id: String,
posted_by: String,
) -> Result<JournalEntryOutput>
pub async fn post_journal_entry( &self, id: String, posted_by: String, ) -> Result<JournalEntryOutput>
Post a journal entry
Sourcepub async fn void_journal_entry(&self, id: String) -> Result<JournalEntryOutput>
pub async fn void_journal_entry(&self, id: String) -> Result<JournalEntryOutput>
Void a journal entry
Sourcepub async fn get_trial_balance(
&self,
as_of_date: String,
) -> Result<TrialBalanceOutput>
pub async fn get_trial_balance( &self, as_of_date: String, ) -> Result<TrialBalanceOutput>
Get trial balance
Sourcepub async fn get_balance_sheet(
&self,
as_of_date: String,
) -> Result<BalanceSheetOutput>
pub async fn get_balance_sheet( &self, as_of_date: String, ) -> Result<BalanceSheetOutput>
Get balance sheet
Sourcepub async fn get_income_statement(
&self,
start_date: String,
end_date: String,
) -> Result<IncomeStatementOutput>
pub async fn get_income_statement( &self, start_date: String, end_date: String, ) -> Result<IncomeStatementOutput>
Get income statement
Trait Implementations§
Source§impl FromNapiMutRef for GeneralLedger
impl FromNapiMutRef for GeneralLedger
Source§unsafe fn from_napi_mut_ref(
env: napi_env,
napi_val: napi_value,
) -> Result<&'static mut Self>
unsafe fn from_napi_mut_ref( env: napi_env, napi_val: napi_value, ) -> Result<&'static mut Self>
Safety Read more
Source§impl FromNapiRef for GeneralLedger
impl FromNapiRef for GeneralLedger
Source§unsafe fn from_napi_ref(
env: napi_env,
napi_val: napi_value,
) -> Result<&'static Self>
unsafe fn from_napi_ref( env: napi_env, napi_val: napi_value, ) -> Result<&'static Self>
Safety Read more
Source§impl FromNapiValue for &GeneralLedger
impl FromNapiValue for &GeneralLedger
Source§unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
Safety Read more
fn from_unknown(value: JsUnknown) -> Result<Self, Error>
Source§impl FromNapiValue for &mut GeneralLedger
impl FromNapiValue for &mut GeneralLedger
Source§unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
Safety Read more
fn from_unknown(value: JsUnknown) -> Result<Self, Error>
Source§impl ToNapiValue for GeneralLedger
impl ToNapiValue for GeneralLedger
Source§unsafe fn to_napi_value(env: napi_env, val: GeneralLedger) -> Result<napi_value>
unsafe fn to_napi_value(env: napi_env, val: GeneralLedger) -> Result<napi_value>
Safety Read more
Source§impl TypeName for &GeneralLedger
impl TypeName for &GeneralLedger
Source§impl TypeName for &mut GeneralLedger
impl TypeName for &mut GeneralLedger
Source§impl TypeName for GeneralLedger
impl TypeName for GeneralLedger
Source§impl ValidateNapiValue for &GeneralLedger
impl ValidateNapiValue for &GeneralLedger
Source§unsafe fn validate(env: napi_env, napi_val: napi_value) -> Result<napi_value>
unsafe fn validate(env: napi_env, napi_val: napi_value) -> Result<napi_value>
Safety Read more
Source§impl ValidateNapiValue for &mut GeneralLedger
impl ValidateNapiValue for &mut GeneralLedger
Source§unsafe fn validate(env: napi_env, napi_val: napi_value) -> Result<napi_value>
unsafe fn validate(env: napi_env, napi_val: napi_value) -> Result<napi_value>
Safety Read more
Auto Trait Implementations§
impl Freeze for GeneralLedger
impl !RefUnwindSafe for GeneralLedger
impl Send for GeneralLedger
impl Sync for GeneralLedger
impl Unpin for GeneralLedger
impl UnsafeUnpin for GeneralLedger
impl !UnwindSafe for GeneralLedger
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