lib/economic/debtor.rb in rconomic-0.7.1 vs lib/economic/debtor.rb in rconomic-0.7.2
- old
+ new
@@ -61,9 +61,16 @@
# haven't yet been booked
def current_invoices
@current_invoices ||= CurrentInvoiceProxy.new(self)
end
+ # Provides access to the current invoices for Debtor - ie invoices that
+ # haven't yet been booked
+ def get_current_invoices
+ return [] if handle.empty?
+ @current_invoices ||= DebtorProxy.new(self).get_current_invoices(handle)
+ end
+
# Returns the Debtors contacts
def contacts
return [] if handle.empty?
@contacts ||= DebtorProxy.new(self).get_debtor_contacts(handle)
end