Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 1.31 KB

File metadata and controls

29 lines (22 loc) · 1.31 KB

XeroRuby::Accounting::ManualJournalLine

Properties

Name Type Description Notes
line_amount Float total for line. Debits are positive, credits are negative value [optional]
account_code String See Accounts [optional]
description String Description for journal line [optional]
tax_type String The tax type from TaxRates [optional]
tracking Array<TrackingCategory> Optional Tracking Category – see Tracking. Any JournalLine can have a maximum of 2 <TrackingCategory> elements. [optional]
tax_amount Float The calculated tax amount based on the TaxType and LineAmount [optional]
is_blank Boolean is the line blank [optional]

Code Sample

require 'XeroRuby::Accounting'

instance = XeroRuby::Accounting::ManualJournalLine.new(line_amount: -2569.0,
                                 account_code: 720,
                                 description: Coded incorrectly Office Equipment should be Computer Equipment,
                                 tax_type: null,
                                 tracking: null,
                                 tax_amount: 0.0,
                                 is_blank: false)