XeroAPI / xero-python

Official Xero OAuth 2.0 python SDK
MIT License
133 stars 53 forks source link

How to post a Manual Journal using the accounting api? #117

Closed adrenaline681 closed 1 year ago

adrenaline681 commented 1 year ago

I've created a Manual Journal entry, but it just sits in the Draft section and is not posted:

date = timezone.localdate()

manual_journal_lines.append(ManualJournalLine(
    line_amount=100.0,
    account_code=10,
    description='Test Credit'
))

manual_journal_lines.append(ManualJournalLine(
    line_amount=-100.0,
    account_code=20,
    description='Test Debit'
))

manual_journal = ManualJournal(
    narration='Test Narration',
    date=date,
    journal_lines=manual_journal_lines)

manualJournals = ManualJournals(manual_journals=[manual_journal])
response = accounting_api.create_manual_journals(tenant_id, manualJournals, True)

How can I create it and post it instead of just leaving it as a draft?

github-actions[bot] commented 1 year ago

PETOSS-319

github-actions[bot] commented 1 year ago

Thanks for raising an issue, a ticket has been created to track your request