kounta_rest 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/kounta/company.rb +1 -0
- data/lib/kounta/version.rb +1 -1
- metadata +1 -1
data/lib/kounta/company.rb
CHANGED
@@ -21,6 +21,7 @@ module Kounta
|
|
21
21
|
has_one :customer, Kounta::Customer, {:company_id => :id}, lambda { |klass, item_id| {companies: klass.id, customers: item_id} }
|
22
22
|
has_one :site, Kounta::Site, {:company_id => :id}, lambda { |klass, item_id| {companies: klass.id, sites: item_id} }
|
23
23
|
has_one :price_list, Kounta::PriceList, {:company_id => :id}, lambda { |klass, item_id| {companies: klass.id, price_lists: item_id} }
|
24
|
+
has_one :tax, Kounta::Tax, {:company_id => :id}, lambda { |klass, item_id| {companies: klass.id, taxes: item_id} }
|
24
25
|
|
25
26
|
has_many :products, Kounta::Product, {:company_id => :id}, lambda { |klass| {companies: klass.id, products: nil} }
|
26
27
|
has_many :categories, Kounta::Category, {:company_id => :id}, lambda { |klass| {companies: klass.id, categories: nil} }
|
data/lib/kounta/version.rb
CHANGED