lucasalary 0.1.19 → 0.1.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +1 -0
- data/README.md +23 -1
- data/lib/luca_salary/payment.rb +2 -2
- data/lib/luca_salary/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7c27c381516005d8ae6962c4d0a44ff0a351f9fd097da547f6dfdcb88d7a6b0d
|
4
|
+
data.tar.gz: 1b116229596958583c4c06b9fef3675cd53a1c7e70e04ef80fdc3733f6417b36
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 970e6cacf4d6b781831b53b714c7c4a7ec01de8c58fcc6ae59f396b52875d1024c36008276ed13caefc9a9809bfa363428e7c4884240e7f3f055434fdf76dfb4
|
7
|
+
data.tar.gz: a1658dfc041cb48eb30f7eca5c762b2f4940f0ffd1dc7d1e03fe16e25075c650d0a0a1f6752ebab387b83f01a047c720aafebf6f6b1b56d1c68b62e35a0feeca
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -2,4 +2,26 @@
|
|
2
2
|
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/lucasalary.svg)](https://badge.fury.io/rb/lucasalary)
|
4
4
|
|
5
|
-
|
5
|
+
LucaSalary is Abstraction framework coworking with each country module. As income tax differs in each county, most of implementation need to be developed separately.
|
6
|
+
At this time, [Japan module](https://github.com/chumaltd/luca-salary-jp) is under development as a practical reference.
|
7
|
+
|
8
|
+
## Usage
|
9
|
+
|
10
|
+
Create blank profile of employees.
|
11
|
+
|
12
|
+
```
|
13
|
+
$ luca-salary profiles create EmployeeName
|
14
|
+
```
|
15
|
+
|
16
|
+
Profile is in YAML format. Need to describe along with each country requirement.
|
17
|
+
Once profiles completed, monthly payment records can be generated as follows:
|
18
|
+
|
19
|
+
```
|
20
|
+
$ luca-salary payments create yyyy m
|
21
|
+
```
|
22
|
+
|
23
|
+
Report is available with generated data as follows:
|
24
|
+
|
25
|
+
```
|
26
|
+
$ luca-salary payments list [--mail] yyyy m
|
27
|
+
```
|
data/lib/luca_salary/payment.rb
CHANGED
@@ -99,8 +99,8 @@ module LucaSalary
|
|
99
99
|
[].tap do |res|
|
100
100
|
{}.tap do |item|
|
101
101
|
item['date'] = "#{accrual_date.year}-#{accrual_date.month}-#{accrual_date.day}"
|
102
|
-
item['debit'] = h[:debit].map { |k, v| { 'label' => k, '
|
103
|
-
item['credit'] = h[:credit].map { |k, v| { 'label' => k, '
|
102
|
+
item['debit'] = h[:debit].map { |k, v| { 'label' => k, 'amount' => v } }
|
103
|
+
item['credit'] = h[:credit].map { |k, v| { 'label' => k, 'amount' => v } }
|
104
104
|
item['x-editor'] = 'LucaSalary'
|
105
105
|
res << item
|
106
106
|
end
|
data/lib/luca_salary/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lucasalary
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.20
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chuma Takahiro
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lucarecord
|
@@ -108,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
108
108
|
- !ruby/object:Gem::Version
|
109
109
|
version: '0'
|
110
110
|
requirements: []
|
111
|
-
rubygems_version: 3.
|
111
|
+
rubygems_version: 3.2.3
|
112
112
|
signing_key:
|
113
113
|
specification_version: 4
|
114
114
|
summary: Salary calculation framework
|