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 +4 -4
- data/CHANGELOG.md +9 -0
- data/README.md +4 -1
- data/lib/luca_deal/invoice.rb +3 -1
- data/lib/luca_deal/templates/config.yml +1 -0
- data/lib/luca_deal/version.rb +1 -1
- metadata +4 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d94d0cd44e5a8371b0c94f0c3fe6d35576f69751f6c8b267c003f2f377a8d3e7
|
|
4
|
+
data.tar.gz: da59e25e9c66ecdbe833f0e3f49473bf2890c063aebe931dd3beb2bbf6e1af86
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 63a8ce879d6fde02a76c9075dffa87b6655f9bd9271c23127fb0b7375d93582c5ff89e97e0054a6cf472ac507dc02c10b87c29dd1170d3c494049110a03a4600
|
|
7
|
+
data.tar.gz: 16485a817cfcebbf628b99e353c90c8b0e37ffe2678d0dd7da2f393621a85bb6ea993f2e0079822301ccf4354158d73e2d02e43a7aff1d35b2969847964fabd5
|
data/CHANGELOG.md
CHANGED
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 | | |
|
data/lib/luca_deal/invoice.rb
CHANGED
|
@@ -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
|
-
|
|
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)
|
data/lib/luca_deal/version.rb
CHANGED
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.
|
|
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:
|
|
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.
|
|
122
|
-
signing_key:
|
|
119
|
+
rubygems_version: 3.6.7
|
|
123
120
|
specification_version: 4
|
|
124
121
|
summary: Deal with contracts
|
|
125
122
|
test_files: []
|