pina 0.6.1 → 0.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c87da197c62964aab17e84c316cd4b61d4a9773c
4
- data.tar.gz: 767267a6d0da82825d1ba3b6b4840af86aa785d2
3
+ metadata.gz: 3af42631a1c04e747b3850dafe2a69fce9974064
4
+ data.tar.gz: 3c6a8a51d3463e38517f9dda1988f2036dae5385
5
5
  SHA512:
6
- metadata.gz: dae6988ad35c295dc933992d2ed5499249e2f6387758a2159fa449bed47f66d3086e8631af6e48fe803519a57e65d44aac526949a11e651553b6d2df5afc7256
7
- data.tar.gz: 81ef79e6ab9cb4d435c911bb9c68e908fdfd9f21cd95479d83a3774701ef825ea3b0c7361f9375f3c0ad088bb078540a347a08fdd1fcd616f6e3c19cefd2e4e3
6
+ metadata.gz: 55a124254141aa54e78a23cac9b2d5dea488df3d1a55d887c1af4c110b8578bcb218ccc04052b326f78a1a6a06865b56588b5cbf83bcc4910f322a71991a63a8
7
+ data.tar.gz: ba95f58f814d66c955e3838cac6220c898dd86c908b86e229106e902766a2fac676532f28db3ebf581bdd562b45d52e3be008b5f1bdbad70e1ac2c98545d8222
data/README.md CHANGED
@@ -185,14 +185,6 @@ invoices.first_page
185
185
  Pina::Receivable.find(invoice_id)
186
186
  ```
187
187
 
188
- NOTE: receivables are being calculated from your DB, they do not correspond
189
- with any table in your database, you can access related invoice simply:
190
-
191
- ```ruby
192
- receivable = Pina::Receivable.find(invoice_id)
193
- receivable.invoice
194
- ```
195
-
196
188
  ## Development
197
189
 
198
190
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
@@ -4,7 +4,6 @@ module Pina
4
4
  include Virtus.model
5
5
 
6
6
  attribute :invoice_id
7
- attribute :invoice
8
7
  attribute :contact_id
9
8
  attribute :total_amount
10
9
  attribute :total_amount_in_currency
@@ -12,13 +11,15 @@ module Pina
12
11
  attribute :paid_amount_in_currency
13
12
  attribute :paid_amount_currency_ids
14
13
  attribute :last_payment_time
15
-
16
- def invoice_id=(value)
17
- return unless value
18
-
19
- self.invoice = Pina::SalesInvoice.find(value)
20
- super
21
- end
14
+ attribute :total_amount_currency_ids
15
+ attribute :invoice_issue_date
16
+ attribute :due_date
17
+ attribute :tax_payment_date
18
+ attribute :invoice_type
19
+ attribute :invoice_amount
20
+ attribute :invoice_exchange_rate
21
+ attribute :department
22
+ attribute :invoice_currency_id
22
23
  end
23
24
  end
24
25
  end
data/lib/pina/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Pina
2
- VERSION = '0.6.1'
2
+ VERSION = '0.7.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pina
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Hronek
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-10 00:00:00.000000000 Z
11
+ date: 2016-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler