Module: Agris::Api::AccountsReceivables::Invoices
- Included in:
- Client
- Defined in:
- lib/agris/api/accounts_receivables/invoices.rb
Instance Method Summary collapse
- #create_invoice(new_invoice) ⇒ Object
- #invoice(invoice_location, invoice_number) ⇒ Object
- #invoices(extracts) ⇒ Object
- #invoices_changed_since(datetime, detail = false) ⇒ Object
Instance Method Details
#create_invoice(new_invoice) ⇒ Object
27 28 29 |
# File 'lib/agris/api/accounts_receivables/invoices.rb', line 27 def create_invoice(new_invoice) import(new_invoice) end |
#invoice(invoice_location, invoice_number) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/agris/api/accounts_receivables/invoices.rb', line 6 def invoice(invoice_location, invoice_number) extract = Agris::Api::AccountsReceivables::SpecificInvoiceExtract .new(invoice_location, invoice_number) invoices([extract]) end |
#invoices(extracts) ⇒ Object
13 14 15 16 17 18 |
# File 'lib/agris/api/accounts_receivables/invoices.rb', line 13 def invoices(extracts) extract_documents( Messages::QueryInvoiceDocuments.new(extracts), Agris::Api::AccountsReceivables::Invoice ) end |
#invoices_changed_since(datetime, detail = false) ⇒ Object
20 21 22 23 24 25 |
# File 'lib/agris/api/accounts_receivables/invoices.rb', line 20 def invoices_changed_since(datetime, detail = false) extract_documents( Messages::QueryChangedInvoices.new(datetime, detail), Agris::Api::AccountsReceivables::Invoice ) end |