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 +4 -4
- data/README.md +0 -8
- data/lib/pina/models/receivable.rb +9 -8
- data/lib/pina/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3af42631a1c04e747b3850dafe2a69fce9974064
|
|
4
|
+
data.tar.gz: 3c6a8a51d3463e38517f9dda1988f2036dae5385
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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
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.
|
|
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-
|
|
11
|
+
date: 2016-10-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|