comee_core 0.2.28 → 0.2.30

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: 5bae168dac9af22ac996992b57e7175844117f9577681e917f82cde61639c4bf
4
- data.tar.gz: d4b47c43b1a9329608f7ca80642d811afa9dcf5f31caa612be941a99da938442
3
+ metadata.gz: cf5a2a77f951b704d1e1a58d18a83403bede97439aed4f6474a4a2207787e4b7
4
+ data.tar.gz: a7fda80c9b56559e26eb47ca2fd1964e7f2fd91e5ce1d2af06227cb15a6ba8d8
5
5
  SHA512:
6
- metadata.gz: 348bf9c442ee1a11d8bb4dd5ea30a71a0c944c6cf1832186a5bd6cefbfc37a80780805fbc48bbea1b3c37b0381b6e520cf53b686add6ac4ea6a60f5f65cab6c9
7
- data.tar.gz: 9a8c8387ee25de9e8187955f419d68a6ecaa2038c7b7aaefed551b4344f45746e11b68f7bfdb98896017c1defe24107d6337539f96416813e5f2857ffde63430
6
+ metadata.gz: bd1a95c624f08cd3a1e9082ff5bdf3c90270ae73e9e5cf52268426ed49d549117e98b4f08705aa23c5c3d1e0659ab5eedccc720c0686615dc609318745ba5e84
7
+ data.tar.gz: 371ffbc08068a72f4ad329bd1c72c97facf224b3bcfd78d71c5194234886d4e99c4a896ff9c90a657796bde4e263184aeca5925ab86a3bc4a8a3d4b7e2d4641c
@@ -10,7 +10,7 @@ module Comee
10
10
 
11
11
  mappings = field_mapping.map(&:with_indifferent_access)
12
12
  order_fields = %w[order_number order_date delivery_address invoice_address]
13
- item_fields = %w[product_code product_name unit_code quantity price delivery_date]
13
+ item_fields = %w[customer_item_no customer_item_description unit_code quantity price delivery_date]
14
14
  order_dest = mappings.select { |mapping| mapping[:level] == "order" }.map { |m| m[:destination] }
15
15
  item_dest = mappings.select { |mapping| mapping[:level] == "item" }.map { |m| m[:destination] }
16
16
  order_diff = order_fields - order_dest
@@ -6,7 +6,7 @@ module Comee
6
6
  has_many :payments
7
7
 
8
8
  enum :status, {pending: 0, processed: 1}
9
- validates :reference_no, :date_issued, :status, presence: true
9
+ validates :date_issued, :status, presence: true
10
10
  validates :amount, presence: true, numericality: {greater_than: 0}
11
11
 
12
12
  def self.ransackable_attributes(_auth_object = nil)
@@ -5,7 +5,7 @@ class CreateComeeCorePaymentDeposits < ActiveRecord::Migration[7.1]
5
5
  null: false,
6
6
  index: {name: "client_on_ccpd_indx"},
7
7
  foreign_key: {to_table: :comee_core_clients}
8
- t.string :reference_no, null: false
8
+ t.string :reference_no
9
9
  t.string :bank_reference
10
10
  t.references :currency,
11
11
  null: false,
@@ -1,5 +1,5 @@
1
1
  module Comee
2
2
  module Core
3
- VERSION = "0.2.28".freeze
3
+ VERSION = "0.2.30".freeze
4
4
  end
5
5
  end
@@ -8,8 +8,8 @@ FactoryBot.define do
8
8
  {source: "order_date", destination: "order_date", level: :order},
9
9
  {source: "delivery_address", destination: "delivery_address", level: :order},
10
10
  {source: "invoice_address", destination: "invoice_address", level: :order},
11
- {source: "product_code", destination: "product_code", level: :item},
12
- {source: "product_name", destination: "product_name", level: :item},
11
+ {source: "product_code", destination: "customer_item_no", level: :item},
12
+ {source: "product_name", destination: "customer_item_description", level: :item},
13
13
  {source: "unit_code", destination: "unit_code", level: :item},
14
14
  {source: "quantity", destination: "quantity", level: :item},
15
15
  {source: "price", destination: "price", level: :item},
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.28
4
+ version: 0.2.30
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-03-04 00:00:00.000000000 Z
11
+ date: 2024-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_model_serializers
@@ -511,7 +511,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
511
511
  - !ruby/object:Gem::Version
512
512
  version: '0'
513
513
  requirements: []
514
- rubygems_version: 3.5.3
514
+ rubygems_version: 3.5.6
515
515
  signing_key:
516
516
  specification_version: 4
517
517
  summary: An engine for the COMee ERP.