lib/xeroizer/models/manual_journal.rb in xeroizer-0.4.4 vs lib/xeroizer/models/manual_journal.rb in xeroizer-0.5.0
- old
+ new
@@ -9,11 +9,11 @@
class ManualJournal < Base
JOURNAL_STATUS = {
'DRAFT' => 'Draft',
- 'APPROVED' => 'Approved'
+ 'POSTED' => 'Posted'
} unless defined?(INVOICE_TYPE)
JOURNAL_STATUSES = JOURNAL_STATUS.keys.sort
set_primary_key :manual_journal_id
set_possible_primary_keys :manual_journal_id
@@ -22,19 +22,17 @@
guid :manual_journal_id
date :date
string :status
string :line_amount_types
string :narration
+ string :url, :api_name => 'URL'
datetime :updated_date_utc, :api_name => 'UpdatedDateUTC'
has_many :journal_lines, :model_name => 'ManualJournalLine'
validates_presence_of :narration
validates_associated :journal_lines
-
- # Can only create/update manual journals in DRAFT status
- validates_inclusion_of :status, :in => %w(DRAFT)
-
+
public
end
end
\ No newline at end of file