comee_core 0.2.7 → 0.2.8

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: 670586905f9895d6c3487ff94875e86da88ce295d4ad6d6872c2e6444fab879e
4
- data.tar.gz: 7f07f76dc1f4c5bc4b1612377d97cd3060ce87a37e4f816ce2881da2b91dee3d
3
+ metadata.gz: 71f18440aaa5414fe5fb11cf03c38c81b4a58f3c8130d59bd4927ca035479ee9
4
+ data.tar.gz: 3e9392b406f61a347f057aec16a52b81ba53894170fb8c4c8c0dfa24854fa9fd
5
5
  SHA512:
6
- metadata.gz: d55b0187ea81f6d91b4ed5a5fc0ca02c35fbf749f54a9f8d0ae08fc90a93118c9f73ba4ac0a75a7ca62e01944deca58ac449f41efbed1f667ae2fa6abd4da8de
7
- data.tar.gz: 92f2a3bf4ff75fd5f9a00b117f1e5fa18cf71f2cd764fff183211076859f999f212ae61cf844ece48aa74a758a09074799be4e85868cfc5832d86f419852963f
6
+ metadata.gz: 53234c4b8a684a64f1cb9e9fd7f45fb0a904854dee645fca3a44ed1ab0b07b82b97fd959464cec8e36736c0a2c4e8f1b921f22d353f2d331365d74dcb50514ea
7
+ data.tar.gz: f664676dd16c43c037aca6340158b7913a51afd9075bd6e63c6fc79b570cb419715aba0c66b59f2f5e05b7bb7f27f2b05db555577e805a3f48ae3594e813db12
@@ -1,6 +1,7 @@
1
1
  module Comee
2
2
  module Core
3
3
  class AdditionalItem < ApplicationRecord
4
+ before_save { self.total_price = unit_price * quantity }
4
5
  belongs_to :invoice
5
6
 
6
7
  validates :quantity, :unit_price, presence: true, numericality: {greater_than: 0}
@@ -1,5 +1,5 @@
1
1
  module Comee
2
2
  module Core
3
- VERSION = "0.2.7".freeze
3
+ VERSION = "0.2.8".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: comee_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henock L.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-25 00:00:00.000000000 Z
11
+ date: 2024-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_model_serializers