macxred / cashctrl_ledger

Implementation of the abstract pyledger.LegderEngine interface with CashCtrl accounting service.
MIT License
0 stars 0 forks source link

Map `base_currency_amount` #30

Closed lasuk closed 5 months ago

lasuk commented 5 months ago

Description

Our current implementation of add_ledger() and update_ledger() does not handle the base_currency_amount field. All other ledger columns are already mapped correctly or in the course of implementation. For reference, see the definition of the required and optional columns.

Definition

The field base_currency_amount does not have a direct equivalent in CashCtrl. To correctly map this field, we need to set the currencyRate in CashCtrl such that:

currencyRate = amount / base_currency_amount
AlexTheWizardL commented 5 months ago

Also add "document" field

lasuk commented 5 months ago

Implemented as #46 .