Class: MOCO::PurchaseBookkeepingExport
- Inherits:
-
BaseEntity
- Object
- BaseEntity
- MOCO::PurchaseBookkeepingExport
- Defined in:
- lib/moco/entities/purchase_bookkeeping_export.rb
Overview
Represents a MOCO purchase bookkeeping export (Ausgaben / Buchhaltungsexporte) Exports purchase data for accounting systems
Read-only attributes:
id, from, to, file_url, user (Hash),
created_at, updated_at
Filtering:
moco.purchase_bookkeeping_exports.all
moco.purchase_bookkeeping_exports.where(from: "2024-01-01", to: "2024-01-31")
Note:
Bookkeeping exports are generated via MOCO's finance interface.
This endpoint provides read-only access to export records.
Instance Attribute Summary
Attributes inherited from BaseEntity
Class Method Summary collapse
-
.entity_path ⇒ Object
Custom path since it’s nested under purchases.
Instance Method Summary collapse
Methods inherited from BaseEntity
#==, #association, #destroy, #eql?, #has_many, #hash, #id, #initialize, #inspect, #reload, #save, #to_h, #to_json, #update
Constructor Details
This class inherits a constructor from MOCO::BaseEntity
Class Method Details
.entity_path ⇒ Object
Custom path since it’s nested under purchases
22 23 24 |
# File 'lib/moco/entities/purchase_bookkeeping_export.rb', line 22 def self.entity_path "purchases/bookkeeping_exports" end |
Instance Method Details
#to_s ⇒ Object
30 31 32 |
# File 'lib/moco/entities/purchase_bookkeeping_export.rb', line 30 def to_s "PurchaseBookkeepingExport #{id} (#{from} - #{to})" end |
#user ⇒ Object
26 27 28 |
# File 'lib/moco/entities/purchase_bookkeeping_export.rb', line 26 def user association(:user, "User") end |