ecom_core 1.0.13 → 1.0.14

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: ec8c8435d3769cd54398ad130b61cb32493ee2c5978f1978140ca2e7bebd212f
4
- data.tar.gz: 3033f40a8d24fa4d980c74e96b78f4ef065ec4817c513f2967a38ab4cab2b632
3
+ metadata.gz: 4bd257f6678b4a6d2d47ef80cd2748716388301e49b71af403d2822171486e12
4
+ data.tar.gz: 2a59d7ff332a8cad20eb48dab49ed92f7209f7211bd0fc2b0ce26fa565fe42b2
5
5
  SHA512:
6
- metadata.gz: 87f7a95dd4538ce2f08600e338e7fe1b8cc3b68b4520f766d66e86c8ef474b95e8e6365dd43159b6091a0dd07d703c8967f6244acaedb024b945234d1c959e63
7
- data.tar.gz: 6fb333cd948e2e96d5b1e8503215682f9ed4fa7f5ee963ac3f125b710f046866fdecfabd22c9710d76217d8f162ff8662ec144523c6f50377c81888610df2965
6
+ metadata.gz: b13fc4b2805f9d1b6459606bc672d2277ec41c8dc111269b29a89847383e845ecd7b22d265a7da697b7401c01d309898e655dd4fde2cab01b249fea6b9a4f61c
7
+ data.tar.gz: bb82c30965b9e6d2b81acc10c86c1171082fee2e3d8fdae3a9894caf4c180c4477edf5bdf53dfc0ff678ebecc615092f9548b87119b3e09e32531a3cf388889d
@@ -1,7 +1,7 @@
1
1
  module Ecom::Core
2
2
  class Payment < ApplicationRecord
3
3
  belongs_to :payroll
4
-
4
+ has_many :payment_details, class_name: 'Ecom::Core::PaymentDetail'
5
5
  validates :from, :to, presence: true
6
6
  end
7
7
  end
@@ -1,8 +1,10 @@
1
- module Ecom::Core
2
- class PaymentDetail < ApplicationRecord
3
- belongs_to :crew
4
- belongs_to :payment
1
+ module Ecom
2
+ module Core
3
+ class PaymentDetail < ApplicationRecord
4
+ belongs_to :crew
5
+ belongs_to :payment
5
6
 
6
- validates :hours, :ot_hours, :base_salary, :overtime, :gross_salary, :tax, :pension, :net_salary, presence: true
7
+ validates :hours, :ot_hours, :base_salary, :overtime, :gross_salary, :tax, :pension, :net_salary, presence: true
8
+ end
7
9
  end
8
- end
10
+ end
@@ -2,6 +2,8 @@ module Ecom
2
2
  module Core
3
3
  class Payroll < ApplicationRecord
4
4
  validates :month, :year, presence: true
5
+
6
+ has_many :payments, class_name: 'Ecom::Core::Payment'
5
7
  end
6
8
  end
7
9
  end
@@ -1,5 +1,5 @@
1
1
  module Ecom
2
2
  module Core
3
- VERSION = '1.0.13'.freeze
3
+ VERSION = '1.0.14'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecom_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.13
4
+ version: 1.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henock L.