comee_core 0.2.36 → 0.2.37

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: 9e9e650443cc408aaf5be8f1ecb6838100af7f2a51ea36b1dbf6c9a63154e30d
4
- data.tar.gz: 5030a418187ced18a1afd12ec36127858d02461c7dd796889c6dca205664f2e2
3
+ metadata.gz: 648d9242a879f4bf1bf6b53063492e0d1dc838e9cfea2efd16182b0d34bd1b3b
4
+ data.tar.gz: f0065c5281ce3ce540e467d4ba82973a1f39e1e4260c280a6f6829e7cf426794
5
5
  SHA512:
6
- metadata.gz: e49268b1d68d607ef6a1c284f8d21c77e2dfdf84986d13299b522faf64c9dc55f188ac9481623cabccd790778c110f9ee8bf21c60b7906d0893a6cd5113dc8a9
7
- data.tar.gz: 25262be73c2e10219a3c74769f8356a0e0026ba7edc324425c8f96c24d4ce678a3812e843c76e78f24e58cb60a05af7225c7cc8e644f8f98b2868c03f00358eb
6
+ metadata.gz: '08e1b3e077ef735b7f2ec304baed986053e50cf578450b5acd0600016f017d71c482009b479bdb14132a269f90694df57edbe52b057bc283fc06641205ca89d3'
7
+ data.tar.gz: ca7ec01335e9fd2d5b5ae08068be2ee9e76335b8725353d6a524b10f9a41784a51ac684382214b782fe6a7288b51655fe8a42716e6db38989a17779ab64130db
@@ -7,7 +7,6 @@ module Comee
7
7
 
8
8
  belongs_to :purchase_order
9
9
  belongs_to :unit
10
- belongs_to :source, polymorphic: true
11
10
 
12
11
  validates :quantity, presence: true, numericality: {greater_than: 0}
13
12
  validates :price, presence: true, numericality: {greater_than_or_equal_to: 0}
@@ -43,7 +42,6 @@ module Comee
43
42
  def self.ransackable_associations(_auth_object = nil)
44
43
  %w[
45
44
  purchase_order
46
- source
47
45
  unit
48
46
  ]
49
47
  end
@@ -20,6 +20,7 @@ class CreateComeeCoreClients < ActiveRecord::Migration[7.0]
20
20
  index: {name: "currency_on_ccc_indx"},
21
21
  foreign_key: {to_table: :comee_core_currencies}
22
22
 
23
+ t.boolean :subsidiary, default: false
23
24
  t.timestamps
24
25
  end
25
26
  add_index :comee_core_clients, :code, unique: true
@@ -6,7 +6,6 @@ class CreateComeeCorePurchaseOrderItems < ActiveRecord::Migration[7.1]
6
6
  index: {name: "pos_on_ccpoitm_indx"},
7
7
  foreign_key: {to_table: :comee_core_purchase_orders}
8
8
 
9
- t.references :source, polymorphic: true, null: false
10
9
  t.float :quantity, null: false
11
10
  t.float :confirmed_quantity, null: false
12
11
  t.references :unit,
@@ -13,6 +13,7 @@ class CreateComeeCoreInvoices < ActiveRecord::Migration[7.0]
13
13
  t.date :date_issued
14
14
  t.date :due_date
15
15
  t.float :total_price
16
+ t.float :amount_paid, default: 0
16
17
  t.string :payment_term
17
18
  t.integer :notifications_sent
18
19
  t.integer :status, null: false, default: 0
@@ -1,5 +1,5 @@
1
1
  module Comee
2
2
  module Core
3
- VERSION = "0.2.36".freeze
3
+ VERSION = "0.2.37".freeze
4
4
  end
5
5
  end
@@ -2,7 +2,6 @@ FactoryBot.define do
2
2
  factory :purchase_order_item, class: "Comee::Core::PurchaseOrderItem" do
3
3
  purchase_order
4
4
  unit
5
- source factory: :purchase_requisition_item
6
5
  quantity { 10 }
7
6
  confirmed_quantity { quantity }
8
7
  price { 100 }
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.2.36
4
+ version: 0.2.37
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henock L.
@@ -437,10 +437,8 @@ files:
437
437
  - db/migrate/20240124161320_create_comee_core_additional_items.rb
438
438
  - db/migrate/20240125003634_create_comee_core_payment_deposits.rb
439
439
  - db/migrate/20240125044630_create_comee_core_payments.rb
440
- - db/migrate/20240303191625_add_amount_paid_field_to_invoice.rb
441
440
  - db/migrate/20240314111117_create_comee_core_purchase_requisitions.rb
442
441
  - db/migrate/20240314111307_create_comee_core_purchase_requisition_items.rb
443
- - db/migrate/20240315163900_add_subsidiary_to_client.rb
444
442
  - lib/comee/core.rb
445
443
  - lib/comee/core/engine.rb
446
444
  - lib/comee/core/version.rb
@@ -1,5 +0,0 @@
1
- class AddAmountPaidFieldToInvoice < ActiveRecord::Migration[7.1]
2
- def change
3
- add_column :comee_core_invoices, :amount_paid, :integer, default: 0
4
- end
5
- end
@@ -1,5 +0,0 @@
1
- class AddSubsidiaryToClient < ActiveRecord::Migration[7.1]
2
- def change
3
- add_column :comee_core_clients, :subsidiary, :boolean, default: false
4
- end
5
- end