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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/xsys/model/purchases_position.rb +4 -0
- data/lib/xsys/model/sales_position.rb +12 -0
- data/lib/xsys/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: 43078ed7d8b18bef7ba845e18ce5939b6f3f5bac
|
4
|
+
data.tar.gz: 073bccfbd5c3d07404757fce6de42d1f5c4b294e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7230e32b2a4c574cc1879a1a6a174dae7d0623724e0a17d3b549458fc8242cd47e0b494915ff3b9bfeb2de53eda0a14566afa7e1c6aa5b466514c0b85bd728c4
|
7
|
+
data.tar.gz: 47cc641c976a11158f66caddd0b2c6f3467274c83fb2a51ee0b40e1865b2fb0072926d2e14bc81939591227e3a67a353d12cf0ad298987c9cbc4770b89d3c35a
|
data/CHANGELOG.md
CHANGED
@@ -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
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.
|
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
|
+
date: 2014-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|