comee_core 0.3.53 → 0.3.54

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: 04b56b87b13f305eab4e2d8b0747853c6301acba79bb249273fa032bf544f368
4
- data.tar.gz: 076f1e7b830e3fd60d63107d0dfac8be2ef837e833c3bf188711bce066ce0b98
3
+ metadata.gz: d2d04be0ca8cae11e80be3250dc260b6aa796522078752c612739ad31466f86f
4
+ data.tar.gz: da0e081ec0f4c573ab032f11e5ee394feeebc99ca5b18d074d1b8af9e547d878
5
5
  SHA512:
6
- metadata.gz: c54cc734056203efc08a6a9fc1eada602cf6afc8738022728ee695054b68f705ac883c9192e66e4bfcdb2c3d447df7b0fe4381350f731d7779677cbe0b9f0505
7
- data.tar.gz: 10fa973af666aaed4ad2980d619773e227f7a895a01fc0b5a5c9f62baea28cfbb49ebed5152ce61968a566515af4ff37713e27b13ce4faeb438b891041cfddbf
6
+ metadata.gz: d7a5097468dfaa5751480e116f6404d3df56615172fe20e5c337ab5868fec09a7fb4a7365a407eba822289cfcb9a2eab169a69434c1e4ae13b3fefb4370041b8
7
+ data.tar.gz: f7eed1707e676d27d77035eac22516998b01fa62e57412104c633bfaec58222b4c40e54ab067fbc4ac7aa196cbe337a9c50fb3e067730facca19c362a699edf6
@@ -42,16 +42,14 @@ module Comee
42
42
 
43
43
  def calculate_total
44
44
  items = PurchaseOrderItem.where(purchase_order_id: id)
45
- total = items.sum(&:total_price).round(2)
46
- total = (total * (1 - discount / 100.0)).round(2) if discount&.positive?
47
- total
45
+ items.sum(&:total_price).round(2)
46
+ # total = (total * (1 - discount / 100.0)).round(2) if discount&.positive?
48
47
  end
49
48
 
50
49
  def calculate_confirmed_total
51
50
  items = PurchaseOrderItem.where(purchase_order_id: id)
52
- confirmed_total = items.sum(&:confirmed_total_price).round(2)
53
- confirmed_total = (confirmed_total * (1 - confirmed_discount / 100.0)).round(2) if confirmed_discount&.positive?
54
- confirmed_total
51
+ items.sum(&:confirmed_total_price).round(2)
52
+ # confirmed_total = (confirmed_total * (1 - confirmed_discount / 100.0)).round(2) if confirmed_discount&.positive?
55
53
  end
56
54
 
57
55
  def self.ransackable_attributes(_auth_object = nil)
@@ -1,5 +1,5 @@
1
1
  module Comee
2
2
  module Core
3
- VERSION = "0.3.53".freeze
3
+ VERSION = "0.3.54".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.53
4
+ version: 0.3.54
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henock L.