@furkot/export-expense-report 0.0.4 → 0.0.5

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.
@@ -80,6 +80,7 @@ function* expenseReport(options) {
80
80
  cost,
81
81
  costRoute,
82
82
  day,
83
+ dayLabel,
83
84
  distance,
84
85
  mode,
85
86
  name,
@@ -98,6 +99,7 @@ function* expenseReport(options) {
98
99
 
99
100
  line.push(format.description(
100
101
  [from, to].join(' - '),
102
+ dayLabel,
101
103
  format.distance(distance, 1, units, true),
102
104
  format.amount(mileageRate / 100, 3, currency)
103
105
  ));
@@ -111,7 +113,7 @@ function* expenseReport(options) {
111
113
  if (costRoute) {
112
114
  const line = [];
113
115
 
114
- line.push(format.description([from, to].join(' - ')));
116
+ line.push(format.description([from, to].join(' - '), dayLabel));
115
117
  line.push(date);
116
118
  line.push(format.amount(costRoute / 100, 2));
117
119
  line.push(currency);
@@ -122,7 +124,7 @@ function* expenseReport(options) {
122
124
  if (cost) {
123
125
  const line = [];
124
126
 
125
- line.push(format.description(name || address, tags,
127
+ line.push(format.description(name || address, tags, dayLabel,
126
128
  nights > 1 &&
127
129
  [
128
130
  format.amount(cost / 100, 2, currency),
@@ -139,7 +141,7 @@ function* expenseReport(options) {
139
141
  if (per_diem) {
140
142
  const line = [];
141
143
 
142
- line.push(format.description(address || name, tags));
144
+ line.push(format.description(address || name, tags, dayLabel));
143
145
  line.push(date);
144
146
  line.push(format.amount(per_diem / 100, 2));
145
147
  line.push(currency);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@furkot/export-expense-report",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "Generate CSV expense report from Furkot trip data.",
5
5
  "author": {
6
6
  "name": "Natalia Kowalczyk",