xsys 0.0.15 → 0.0.16

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e9a19974aec088edd4812bfb65c5cb2b900f6604
4
- data.tar.gz: 5136c4846537f85268453b21803245de533d94e9
3
+ metadata.gz: 43078ed7d8b18bef7ba845e18ce5939b6f3f5bac
4
+ data.tar.gz: 073bccfbd5c3d07404757fce6de42d1f5c4b294e
5
5
  SHA512:
6
- metadata.gz: 302a77a16b040ed0d6512ad1b2e643eb3f0bcf7cd939922d70eae70c99832db0581bab223c0bb5208556d1f3c262bf0efbf4fec0eb0a0d6544cd24a4c1f88c42
7
- data.tar.gz: d1e1bfc7314243208c01f3c056da4a8fc76e9cd72671c162b77b1ef2d305d93c6ed5b727bc93786ac70ebc3492d5452122ead15c79cb7ea9621f33bc1f5d195c
6
+ metadata.gz: 7230e32b2a4c574cc1879a1a6a174dae7d0623724e0a17d3b549458fc8242cd47e0b494915ff3b9bfeb2de53eda0a14566afa7e1c6aa5b466514c0b85bd728c4
7
+ data.tar.gz: 47cc641c976a11158f66caddd0b2c6f3467274c83fb2a51ee0b40e1865b2fb0072926d2e14bc81939591227e3a67a353d12cf0ad298987c9cbc4770b89d3c35a
data/CHANGELOG.md CHANGED
@@ -57,3 +57,7 @@
57
57
  ## v0.0.15
58
58
 
59
59
  * Added requires for new models
60
+
61
+ ## v0.0.16
62
+
63
+ * Added virtual methods to fiscal position classes
@@ -9,6 +9,10 @@ module Xsys
9
9
  self.send("#{k}=", v)
10
10
  end
11
11
  end
12
+
13
+ def taxes_grand_total
14
+ amount_taxes_27 + amount_taxes_21 + amount_taxes_10_5
15
+ end
12
16
  end
13
17
  end
14
18
  end
@@ -9,6 +9,18 @@ module Xsys
9
9
  self.send("#{k}=", v)
10
10
  end
11
11
  end
12
+
13
+ def sales_grand_total
14
+ amount_total + extra_payments_total
15
+ end
16
+
17
+ def extra_payments_avg
18
+ (extra_payments_total / sales_grand_total).round(2)
19
+ end
20
+
21
+ def taxes_grand_total
22
+ amount_taxes_21 + amount_taxes_10_5
23
+ end
12
24
  end
13
25
  end
14
26
  end
data/lib/xsys/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Xsys
2
- VERSION = "0.0.15"
2
+ VERSION = "0.0.16"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xsys
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.15
4
+ version: 0.0.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matias Hick
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-11 00:00:00.000000000 Z
11
+ date: 2014-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler