Sha256: 711666364079cc716896705d513302964a9c971283c013d559f3f0d841175b5b
Contents?: true
Size: 752 Bytes
Versions: 4
Compression:
Stored size: 752 Bytes
Contents
# frozen_string_literal: true require_relative 'account' require_relative 'department' require_relative 'ledger_class' module LedgerSync module Ledgers module QuickBooksOnline class JournalEntryLineItem < QuickBooksOnline::Resource TYPES = { 'debit' => 'Debit', 'credit' => 'Credit' }.freeze references_one :account, to: Account references_one :department, to: Department references_one :ledger_class, to: LedgerClass attribute :amount, type: Type::Integer attribute :description, type: Type::String attribute :entry_type, type: Type::StringFromSet.new(values: TYPES.keys) def name description end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems