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 +4 -4
- data/app/models/comee/core/purchase_order_item.rb +0 -2
- data/db/migrate/20230728123039_create_comee_core_clients.rb +1 -0
- data/db/migrate/20230728123827_create_comee_core_purchase_order_items.rb +0 -1
- data/db/migrate/20240105205522_create_comee_core_invoices.rb +1 -0
- data/lib/comee/core/version.rb +1 -1
- data/spec/factories/comee/core/purchase_order_items.rb +0 -1
- metadata +1 -3
- data/db/migrate/20240303191625_add_amount_paid_field_to_invoice.rb +0 -5
- data/db/migrate/20240315163900_add_subsidiary_to_client.rb +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 648d9242a879f4bf1bf6b53063492e0d1dc838e9cfea2efd16182b0d34bd1b3b
|
4
|
+
data.tar.gz: f0065c5281ce3ce540e467d4ba82973a1f39e1e4260c280a6f6829e7cf426794
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/comee/core/version.rb
CHANGED
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.
|
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
|