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: dd150303402ebb754c70e29639f48678773cce7ddc42471dc879723ffa77a982
4
- data.tar.gz: 9b1f15b65e171d5acada842c27b39d7c0409d2990c5eb68068d65e7aec50908e
3
+ metadata.gz: 6bd51773456e973addf6482d9797a460617acfacb1a5824b35b58965864f775b
4
+ data.tar.gz: 72480dcf7989fb281f683b9c9873855531daf86eb6be8b6acb4b3d80e592baab
5
5
  SHA512:
6
- metadata.gz: f8af4d1990375a472a8d01dfe28cf0aa077917583c90b89800a1b7ea699566ff695fa7f83b40df6470f3598fef284c08be8a82a150ec65f0cd4692c2e3db160d
7
- data.tar.gz: 9ef0c32a54cba5823319101e096488b0773fdfec5418e71ea70fccd54d8bcfc4ea6feadae35a35e73f23dc2b97915706c272b84b04783f61b6433455b2937651
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.#0;[Red]-#,##0.#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, row_offset: 16)
239
- s.col_style(5, currencyStyle, row_offset: 16)
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, row_offset: 16)
248
+ s.col_style(5, currencyStyle)
249
249
 
250
250
  s.insert_row ["","","","Tax", @quotation.total_tax]
251
- s.col_style(5, currencyStyle, row_offset: 16)
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, row_offset: 16)
254
+ s.col_style(5, currencyStyle)
255
255
 
256
256
  end
257
257
 
@@ -1,7 +1,7 @@
1
1
  module Smerp
2
2
  module Quotation
3
3
  module Engine
4
- VERSION = "0.4.3"
4
+ VERSION = "0.4.4"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smerp-quotation-engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ian