lucadeal 0.5.6 → 0.5.7

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: 7938104c239ce8cdc4d5ccc3b7545aba808ee13924705df3ace6bc76be83660e
4
- data.tar.gz: 47b8e214254a6b224488dd1c1691e7bc4257b85f4fdd5338591199ecbaecf6be
3
+ metadata.gz: f38a6fb61fd01e68eefa964fbac76eb83ee2449e5d1d70ebee0164758d23a8b5
4
+ data.tar.gz: 8d72a97c0af4b35fef36771fd35d224f77bbf09b76e90e2d6271988ef6fc2877
5
5
  SHA512:
6
- metadata.gz: b167651ef30ca197bd82dbdc1b20e56489f608647d70b1c16e1e73f8af0c252d65c1fc60dfff020785588ad09f57f4a67f1d3c74c65e49a78e2053fcd9c6fdb1
7
- data.tar.gz: 6d31167a9c6942798551266b27719a90a798ac7edd9c94e71be37117e830e53e70b04faf5a5a68c74b5c74220c278f898f49fddaed3bae54a8b7a2295755e355
6
+ metadata.gz: a3179e7f88e7022b29e2a10be76847ccf8edbd0a91ab56b70e9a71e0e1c42f828baf68dc701e4fbdf816bd4afc0d449494b81125adb1e78cd3c9f1bb2fd7a3cb
7
+ data.tar.gz: 04a7c35dc5bab8b531669b137aadaa746fdbe6853d1c7ca5ca614937eac9aa5e0efa34b349eeb3eacdb358fbb07fbb8f54d8f8c8b11b43d99aa4fc4c6e7072d6
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## LucaDeal 0.5.7
2
+
3
+ * `luca-deal fee export` now skips no transaction customer.
4
+
1
5
  ## LucaDeal 0.5.6
2
6
 
3
7
  * `luca-deal report balance` now prints customer ID.
data/lib/luca_deal/fee.rb CHANGED
@@ -155,11 +155,14 @@ module LucaDeal
155
155
  labels = export_labels
156
156
  [].tap do |res|
157
157
  self.class.asof(@date.year, @date.month) do |dat|
158
- item = {}
159
- item['date'] = dat['issue_date']
160
- item['debit'] = []
161
- item['credit'] = []
162
158
  sub = dat['sales_fee']
159
+ next if readable(sub['fee']) == 0 and readable(sub['deduction']) == 0
160
+
161
+ item = {
162
+ 'date' => dat['issue_date'],
163
+ 'debit' => [],
164
+ 'credit' => []
165
+ }
163
166
  if readable(sub['fee']) != 0
164
167
  item['debit'] << { 'label' => labels[:debit][:fee], 'amount' => readable(sub['fee']) }
165
168
  item['credit'] << { 'label' => labels[:credit][:fee], 'amount' => readable(sub['fee']) }
@@ -226,7 +229,7 @@ module LucaDeal
226
229
  # TODO: load labels from CONST.config before country defaults
227
230
  #
228
231
  def export_labels
229
- case LucaRecord::CONST.confg['country']
232
+ case LucaRecord::CONST.config['country']
230
233
  when 'jp'
231
234
  {
232
235
  debit: { fee: '支払手数料', tax: '支払手数料', deduction: '未払費用' },
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LucaDeal
4
- VERSION = '0.5.6'
4
+ VERSION = '0.5.7'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lucadeal
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.6
4
+ version: 0.5.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chuma Takahiro
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-04-12 00:00:00.000000000 Z
11
+ date: 2024-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lucarecord