module SageoneSdk::Client::Journals

Represents journal trasnactions in Sage One.

Public Instance Methods

create_journal(data, options = {}) click to toggle source

Creates a journal entry with the data provided. @example Create a new journal transaction

@client.create_journal({"reference" => "ref001",
                        "description" => "description",
                        "date" => "2016-01-01",
                        "journal_lines[0][credit]" => 50.0,
                        "journal_lines[0][debit]" => 0.0,
                        "journal_lines[0][details]" => "detail",
                        "journal_lines[0][ledger_account][nominal_code]" => 1,
                        "journal_lines[1][credit]" => 0.0,
                        "journal_lines[1][debit]" => 50.0,
                        "journal_lines[1][details]" => "detail",
                        "journal_lines[1][ledger_account][nominal_code]" => 9999})

@param data [hash] The journal entry information. @param options [hash]

# File lib/sageone_sdk/client/journals.rb, line 22
def create_journal(data, options = {})
  post "journals", :journal => data
end