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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dacc04e5464dfd8f7d38db60b2053af1fe609bc4d71d65bdd7fb83c5d460618a
4
- data.tar.gz: 800e13698b5e92482085abd8b0928e9aed42fa23c24f5a046b2e06b4cea15889
3
+ metadata.gz: 7c27c381516005d8ae6962c4d0a44ff0a351f9fd097da547f6dfdcb88d7a6b0d
4
+ data.tar.gz: 1b116229596958583c4c06b9fef3675cd53a1c7e70e04ef80fdc3733f6417b36
5
5
  SHA512:
6
- metadata.gz: 99bf549286ee85d693afcbb0fd9774fc833316fb34c6ebb14edcbd31264948c0393d9561ff262a345dedad75a9e3b6ae93cf325730b5106e89c9a02e201ffc97
7
- data.tar.gz: dbac5444029228f95b84cf173431f65f657f49a5cfbb7d17b161765d09528a8933680a5d74fe490c11c788f68264abb51ab717c1c13d894db58554c780b0c448
6
+ metadata.gz: 970e6cacf4d6b781831b53b714c7c4a7ec01de8c58fcc6ae59f396b52875d1024c36008276ed13caefc9a9809bfa363428e7c4884240e7f3f055434fdf76dfb4
7
+ data.tar.gz: a1658dfc041cb48eb30f7eca5c762b2f4940f0ffd1dc7d1e03fe16e25075c650d0a0a1f6752ebab387b83f01a047c720aafebf6f6b1b56d1c68b62e35a0feeca
@@ -1,6 +1,7 @@
1
1
  ## LucaSalary 0.1.20
2
2
 
3
3
  * Implement `year_total`
4
+ * Breaking change: export key 'value' -> 'amount'
4
5
 
5
6
  ## LucaSalary 0.1.19
6
7
 
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
- Salary calculation framework
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
+ ```
@@ -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, 'value' => v } }
103
- item['credit'] = h[:credit].map { |k, v| { 'label' => k, 'value' => v } }
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LucaSalary
4
- VERSION = '0.1.19'
4
+ VERSION = '0.1.20'
5
5
  end
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.19
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: 2020-11-30 00:00:00.000000000 Z
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.1.2
111
+ rubygems_version: 3.2.3
112
112
  signing_key:
113
113
  specification_version: 4
114
114
  summary: Salary calculation framework