lucadeal 0.5.7 → 0.5.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f38a6fb61fd01e68eefa964fbac76eb83ee2449e5d1d70ebee0164758d23a8b5
4
- data.tar.gz: 8d72a97c0af4b35fef36771fd35d224f77bbf09b76e90e2d6271988ef6fc2877
3
+ metadata.gz: d94d0cd44e5a8371b0c94f0c3fe6d35576f69751f6c8b267c003f2f377a8d3e7
4
+ data.tar.gz: da59e25e9c66ecdbe833f0e3f49473bf2890c063aebe931dd3beb2bbf6e1af86
5
5
  SHA512:
6
- metadata.gz: a3179e7f88e7022b29e2a10be76847ccf8edbd0a91ab56b70e9a71e0e1c42f828baf68dc701e4fbdf816bd4afc0d449494b81125adb1e78cd3c9f1bb2fd7a3cb
7
- data.tar.gz: 04a7c35dc5bab8b531669b137aadaa746fdbe6853d1c7ca5ca614937eac9aa5e0efa34b349eeb3eacdb358fbb07fbb8f54d8f8c8b11b43d99aa4fc4c6e7072d6
6
+ metadata.gz: 63a8ce879d6fde02a76c9075dffa87b6655f9bd9271c23127fb0b7375d93582c5ff89e97e0054a6cf472ac507dc02c10b87c29dd1170d3c494049110a03a4600
7
+ data.tar.gz: 16485a817cfcebbf628b99e353c90c8b0e37ffe2678d0dd7da2f393621a85bb6ea993f2e0079822301ccf4354158d73e2d02e43a7aff1d35b2969847964fabd5
data/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## LucaDeal 0.5.9
2
+
3
+ * Invoice file prefix is now customizable.
4
+
5
+ ## LucaDeal 0.5.8
6
+
7
+ * Customer has tax ID
8
+ * `luca-deal report balance` now prints tax ID
9
+
1
10
  ## LucaDeal 0.5.7
2
11
 
3
12
  * `luca-deal fee export` now skips no transaction customer.
data/README.md CHANGED
@@ -82,6 +82,8 @@ If you want to send invoices in PDF, you need to install `wkhtmltopdf` command s
82
82
  $ luca-deal invoice mail yyyy m
83
83
  ```
84
84
 
85
+ Set `invoice.attachment_prefix` in `config.yml` to customize the attachment filename prefix (default: `invoice-`). Include any desired separator in the prefix. This also applies to HTML attachments and files generated by `invoice print`.
86
+
85
87
 
86
88
  ### Sales Fee
87
89
 
@@ -99,6 +101,7 @@ Customer consists of label information.
99
101
  | Top level | Second level | | historical | Description |
100
102
  |-----------|--------------|------|------------|--------------------------------|
101
103
  | id | | auto | | uuid |
104
+ | tax_id | | | | taxpayer ID for each contry |
102
105
  | name | | must | x | customer's name |
103
106
  | address | | | x | |
104
107
  | address2 | | | x | |
@@ -170,7 +173,7 @@ Fields for sales fee:
170
173
  Invoice is basically auto generated from Customer and Contract objects.
171
174
 
172
175
  | Top level | Second level | Description |
173
- |------------+--------------+------------------------------------------|
176
+ |------------|--------------|------------------------------------------|
174
177
  | id | | uuid |
175
178
  | issue_date | | |
176
179
  | due_date | | |
@@ -121,6 +121,7 @@ module LucaDeal
121
121
  row = {
122
122
  'id' => k,
123
123
  'customer' => customers.dig(k, 'name'),
124
+ 'tax_id' => customers.dig(k, 'tax_id'),
124
125
  'unsettled' => LucaSupport::Code.readable(item['unsettled']),
125
126
  }
126
127
  if detail
@@ -482,7 +483,8 @@ module LucaDeal
482
483
 
483
484
  def attachment_name(dat, type)
484
485
  id = %r{/}.match(dat['id']) ? dat['id'].gsub('/', '') : dat['id'][0, 7]
485
- "invoice-#{id}.#{type}"
486
+ prefix = LucaRecord::CONST.config.dig('invoice', 'attachment_prefix') || 'invoice-'
487
+ "#{prefix}#{id}.#{type}"
486
488
  end
487
489
 
488
490
  def duplicated_contract?(id)
@@ -12,3 +12,4 @@ mail:
12
12
  cc:
13
13
  invoice:
14
14
  mail_subject:
15
+ attachment_prefix: invoice-
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LucaDeal
4
- VERSION = '0.5.7'
4
+ VERSION = '0.5.9'
5
5
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lucadeal
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.7
4
+ version: 0.5.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chuma Takahiro
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2024-07-02 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: lucarecord
@@ -98,12 +97,11 @@ files:
98
97
  - lib/luca_deal/version.rb
99
98
  homepage: https://github.com/chumaltd/luca/tree/master/lucadeal
100
99
  licenses:
101
- - GPL
100
+ - GPL-3.0-or-later
102
101
  metadata:
103
102
  homepage_uri: https://github.com/chumaltd/luca/tree/master/lucadeal
104
103
  source_code_uri: https://github.com/chumaltd/luca/tree/master/lucadeal
105
104
  changelog_uri: https://github.com/chumaltd/luca/tree/master/lucadeal/CHANGELOG.md
106
- post_install_message:
107
105
  rdoc_options: []
108
106
  require_paths:
109
107
  - lib
@@ -118,8 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
118
116
  - !ruby/object:Gem::Version
119
117
  version: '0'
120
118
  requirements: []
121
- rubygems_version: 3.4.10
122
- signing_key:
119
+ rubygems_version: 3.6.7
123
120
  specification_version: 4
124
121
  summary: Deal with contracts
125
122
  test_files: []