lucadeal 0.2.21 → 0.2.22
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +15 -0
- data/lib/luca_deal/invoice.rb +4 -4
- data/lib/luca_deal/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: 364352a3a1e23daeffffcd2750f711617677866abf7576fe1f821404f35fa439
|
4
|
+
data.tar.gz: f7d5eb22d3df29386be2bac8fd6809af96f78663342e91f16a56bda8d2e64e58
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2cffac9d4b4092a312311d8096d7e77c1b9b2e945d4f31a6a0d81bf0842d137ddf0e3dd04e261f07a051ca634c89d10f8020211aed9d9dc9339a2926002d7a56
|
7
|
+
data.tar.gz: 1ab6a3eb3cab72dcdc19efed5a417be613d8ca8f2aded7258b6ad806cec9b0096d81b879763d978809099307db10260087c1fc98df1331c6a7d880811bec5122
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -70,6 +70,21 @@ $ luca-deal invoice create 1d3 yyyy m
|
|
70
70
|
Invoice conditions are defined by contracts.
|
71
71
|
|
72
72
|
|
73
|
+
### Send Invoice
|
74
|
+
|
75
|
+
Invoice is implemented with HTML & ERB. Copy [default template](lib/luca_deal/templates/invoice.html.erb) to `templates/` in the data directory, and customize.
|
76
|
+
If you want to send invoices in PDF, you need to install `wkhtmltopdf command separately. Send mail command is as bellows:`
|
77
|
+
|
78
|
+
```
|
79
|
+
$ luca-deal invoice mail yyyy m
|
80
|
+
```
|
81
|
+
|
82
|
+
|
83
|
+
### Sales Fee
|
84
|
+
|
85
|
+
You can also manage revenue share program with Fee object. Setup proper contract structure.
|
86
|
+
|
87
|
+
|
73
88
|
## Data Structure
|
74
89
|
|
75
90
|
Records are stored in YAML format. On historical records, see [LucaRecord](../lucarecord/README.md#historical-field).
|
data/lib/luca_deal/invoice.rb
CHANGED
@@ -124,10 +124,10 @@ module LucaDeal
|
|
124
124
|
item['debit'] = []
|
125
125
|
item['credit'] = []
|
126
126
|
dat['subtotal'].map do |sub|
|
127
|
-
item['debit'] << { 'label' => '売掛金', '
|
128
|
-
item['debit'] << { 'label' => '売掛金', '
|
129
|
-
item['credit'] << { 'label' => '売上高', '
|
130
|
-
item['credit'] << { 'label' => '売上高', '
|
127
|
+
item['debit'] << { 'label' => '売掛金', 'amount' => readable(sub['items']) }
|
128
|
+
item['debit'] << { 'label' => '売掛金', 'amount' => readable(sub['tax']) }
|
129
|
+
item['credit'] << { 'label' => '売上高', 'amount' => readable(sub['items']) }
|
130
|
+
item['credit'] << { 'label' => '売上高', 'amount' => readable(sub['tax']) }
|
131
131
|
end
|
132
132
|
item['x-customer'] = dat['customer']['name'] if dat.dig('customer', 'name')
|
133
133
|
item['x-editor'] = 'LucaDeal'
|
data/lib/luca_deal/version.rb
CHANGED
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.2.
|
4
|
+
version: 0.2.22
|
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
|
@@ -116,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
116
116
|
- !ruby/object:Gem::Version
|
117
117
|
version: '0'
|
118
118
|
requirements: []
|
119
|
-
rubygems_version: 3.
|
119
|
+
rubygems_version: 3.2.3
|
120
120
|
signing_key:
|
121
121
|
specification_version: 4
|
122
122
|
summary: Deal with contracts
|