comee_core 0.3.10 → 0.3.12

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: d65305ef201d7c273369b89facd7d6e94bcf64d6e246da0bbfee00600e2a6b74
4
- data.tar.gz: 6a94eff22f5f2d0713a25041c2d949ff0a2e3510be4aabdb0ceb74c6f4bcd299
3
+ metadata.gz: 11abaf99b54ed5dc68ee24e0c8cca26b6f09fbeee078607a230cde36c0696706
4
+ data.tar.gz: 42041d9a0b6092395e88f6b74548df48fa43f2fbb196bf26a62d0dbcea061f26
5
5
  SHA512:
6
- metadata.gz: 49ee2362707d61722e8d57d283b4305d55caf8f6d58e7edf0f9fb773883d6b9be2aa20258fd370ab47cbd71b1581809b01aa32e9b14f93c58ca7eabfb610e4ad
7
- data.tar.gz: ef323a7902517964593fc9f7f17d1d48cd28a956fa18287503a5f1178934a63b9495a21d7872a68920cac061abeeb672fcb3d30c12f8941e931e84dddc8ee299
6
+ metadata.gz: 8ea45c1b3a673f69c1a7e21ef9e2d0d4c6a47c7e5ab76ed417288385170a183d417268e70dbd15139f6e12b5ce16ceba307cbd18e17f1eac5f27edce7d8ad5a4
7
+ data.tar.gz: 0d92e66de89adf54f1eea5d81d448a54a1015a3c19130fdbb8c07fbbc3a9fb02ceaa13ad11f13a83192cf30b0cddbddfe816dce9205fab8ad80405ca424c0089
@@ -39,6 +39,7 @@ module Comee
39
39
  def update_sales_order
40
40
  sales_order.calculate_total_price
41
41
  sales_order.calculate_vat
42
+ sales_order.save!
42
43
  end
43
44
 
44
45
  def quantity_remaining
@@ -225,6 +225,9 @@ module Comee
225
225
  end
226
226
  SalesOrderItem.insert_all!(items)
227
227
  order.update!(status: CustomerOrder.statuses[:accepted])
228
+ sales_order.calculate_total_price
229
+ sales_order.calculate_vat
230
+ sales_order.save!
228
231
  end
229
232
  sales_order
230
233
  end
@@ -1,5 +1,5 @@
1
1
  module Comee
2
2
  module Core
3
- VERSION = "0.3.10".freeze
3
+ VERSION = "0.3.12".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: comee_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.10
4
+ version: 0.3.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henock L.