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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f73de0d5baa72b53fcaeb3ec5ef85c0d3d80a21b7d7531f914892ff476d8eee0
4
- data.tar.gz: 3ecfc52d4a1e2257e926773f3e7db455dccce71e8fe89822fccb91402d0a979e
3
+ metadata.gz: 364352a3a1e23daeffffcd2750f711617677866abf7576fe1f821404f35fa439
4
+ data.tar.gz: f7d5eb22d3df29386be2bac8fd6809af96f78663342e91f16a56bda8d2e64e58
5
5
  SHA512:
6
- metadata.gz: 1f8c7a3301a69e5891736379fb9cf4fac3d1cda121e295d77903bb36f9f87ab6485be8d69e4bb398b23cf18af80f47f3d1b4a2f67d2dc3cfba5cc1f9c6fcf5cf
7
- data.tar.gz: 1515a346552be7a7ec33a37bd3af941b57f8be9c890d67ccfde40bf0f0ece6f678a405d0723ad1d04649ae70e745e4dfa5d3a869400314b366fddf576c31c21a
6
+ metadata.gz: 2cffac9d4b4092a312311d8096d7e77c1b9b2e945d4f31a6a0d81bf0842d137ddf0e3dd04e261f07a051ca634c89d10f8020211aed9d9dc9339a2926002d7a56
7
+ data.tar.gz: 1ab6a3eb3cab72dcdc19efed5a417be613d8ca8f2aded7258b6ad806cec9b0096d81b879763d978809099307db10260087c1fc98df1331c6a7d880811bec5122
@@ -1,3 +1,7 @@
1
+ ## LucaDeal 0.2.25
2
+
3
+ * Breaking change: export key 'value' -> 'amount'
4
+
1
5
  ## LucaDeal 0.2.21
2
6
 
3
7
  * Implement `luca-deal fee` subcommands.
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).
@@ -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' => '売掛金', 'value' => readable(sub['items']) }
128
- item['debit'] << { 'label' => '売掛金', 'value' => readable(sub['tax']) }
129
- item['credit'] << { 'label' => '売上高', 'value' => readable(sub['items']) }
130
- item['credit'] << { 'label' => '売上高', 'value' => readable(sub['tax']) }
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'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LucaDeal
4
- VERSION = '0.2.21'
4
+ VERSION = '0.2.22'
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.2.21
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: 2020-12-01 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
@@ -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.1.2
119
+ rubygems_version: 3.2.3
120
120
  signing_key:
121
121
  specification_version: 4
122
122
  summary: Deal with contracts