Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FastAPI endpoint #79

Open
epogrebnyak opened this issue Jan 24, 2024 · 0 comments
Open

FastAPI endpoint #79

epogrebnyak opened this issue Jan 24, 2024 · 0 comments

Comments

@epogrebnyak
Copy link
Owner

epogrebnyak commented Jan 24, 2024

def trial_balance(accounts: list[str], re: str, t: list[str]):
   """Return trial balance, balance sheet, and income statement."""
   return dict(accounts=accounts, retained_earnings_account=re, ttransactions=t)

Should accept:

?accounts=asset:cash+capital:equity+contra:equity:ts&re=retained_earnings&t=cash,equity,500&t=cr:vat,20.8+cr:sales,100+dr:cash,120.8

for t:

&t=cr:vat,20.8+cr:sales,100+dr:cash,120.8
&t=cr:equity,500+dr:cash,500
&t=cash,equity,500
epogrebnyak added a commit that referenced this issue Jan 24, 2024
epogrebnyak added a commit that referenced this issue Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant