smerp-quotation-engine 0.4.3 → 0.4.4
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6bd51773456e973addf6482d9797a460617acfacb1a5824b35b58965864f775b
|
|
4
|
+
data.tar.gz: 72480dcf7989fb281f683b9c9873855531daf86eb6be8b6acb4b3d80e592baab
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6102da50b16c8896be1935eaa9f43d139d9f1702caf68bafda623a3a4332ed9924ab91c229253fb51c5080260e2e812b3f091b16b50791ca73d0078ea3e9153c
|
|
7
|
+
data.tar.gz: 6b7a19d3903283b24e8567b65bfbb6e89e9900c93b8e1260b2e46e96c5870093895a9a8bc4c1455d4f2ac6dec1d843a3b6cfe2e685b27a80767d6625e5aee598
|
|
@@ -210,7 +210,7 @@ module Smerp::Quotation::Engine
|
|
|
210
210
|
exp = Smerp::Exporter::Excel::Exporter.instance
|
|
211
211
|
exp.start_cell(8,0)
|
|
212
212
|
|
|
213
|
-
currencyStyle = exp.workbook.styles.add_style(format_code: "#,##0
|
|
213
|
+
currencyStyle = exp.workbook.styles.add_style(format_code: "#,##0.00;[Red]-#,##0.#0")
|
|
214
214
|
exp.worksheet("quotation") do |s|
|
|
215
215
|
s.insert_row ["Ref. No.", @quotation.qid]
|
|
216
216
|
s.insert_row ["Date", @quotation.qdate]
|
|
@@ -235,8 +235,8 @@ module Smerp::Quotation::Engine
|
|
|
235
235
|
name << i.name
|
|
236
236
|
|
|
237
237
|
s.insert_row [name.join, i.quantity, i.unit, i.unit_price, i.line_total]
|
|
238
|
-
s.col_style(4, currencyStyle
|
|
239
|
-
s.col_style(5, currencyStyle
|
|
238
|
+
s.col_style(4, currencyStyle)
|
|
239
|
+
s.col_style(5, currencyStyle)
|
|
240
240
|
|
|
241
241
|
recurse_items(i, s, level+1)
|
|
242
242
|
seq += 1
|
|
@@ -245,13 +245,13 @@ module Smerp::Quotation::Engine
|
|
|
245
245
|
s.insert_row
|
|
246
246
|
|
|
247
247
|
s.insert_row ["","","","Total", @quotation.total]
|
|
248
|
-
s.col_style(5, currencyStyle
|
|
248
|
+
s.col_style(5, currencyStyle)
|
|
249
249
|
|
|
250
250
|
s.insert_row ["","","","Tax", @quotation.total_tax]
|
|
251
|
-
s.col_style(5, currencyStyle
|
|
251
|
+
s.col_style(5, currencyStyle)
|
|
252
252
|
|
|
253
253
|
s.insert_row ["","","","Grand Total", @quotation.total_with_tax]
|
|
254
|
-
s.col_style(5, currencyStyle
|
|
254
|
+
s.col_style(5, currencyStyle)
|
|
255
255
|
|
|
256
256
|
end
|
|
257
257
|
|