extface 0.6.2 → 0.6.3
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 +4 -4
- data/app/models/extface/driver/base/fiscal.rb +2 -2
- data/lib/extface/version.rb +1 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +17 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: eb74786ee666c424c8977bd4ccaed5e360a18914
|
|
4
|
+
data.tar.gz: 629436ddadc8c4318a123034e58266ee848ca34e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ca87e9b6830632695727cee3abeb09495a11f09601bd9eeb2f4db961dc8e9dc98f3d19cededc30986bade10d46091da5ea4fe1a94ee16218d1e6157fc168b5f0
|
|
7
|
+
data.tar.gz: 5fe20af7b2587128749fcbe94be9acb372a3208dbb44caf380171bbc0a4ac0b1ad402c52eec45964ea37fad6ca77c7472e6a4578b383fce04ece9499c7b45fe2
|
|
@@ -70,7 +70,7 @@ module Extface
|
|
|
70
70
|
@price, @text1, @text2, @tax_group, @qty, @percent, @neto, @number = attributes[:price], attributes[:text1].to_s, attributes[:text2].to_s, attributes[:tax_group], attributes[:qty], attributes[:percent], attributes[:neto], attributes[:number]
|
|
71
71
|
raise "invalid price" unless price.kind_of?(Float)
|
|
72
72
|
raise "invalid tax group" if tax_group.present? && !tax_group.kind_of?(Fixnum)
|
|
73
|
-
raise "invalid qty" if qty.present? && !qty.kind_of(Float)
|
|
73
|
+
raise "invalid qty" if qty.present? && !qty.kind_of?(Float)
|
|
74
74
|
end
|
|
75
75
|
end
|
|
76
76
|
|
|
@@ -98,7 +98,7 @@ module Extface
|
|
|
98
98
|
text1: charge.name,
|
|
99
99
|
text2: charge.description,
|
|
100
100
|
tax_group: charge.find_tax_group_mapping_for(self), #find tax group mapping by ratio , not nice
|
|
101
|
-
qty: charge.qty,
|
|
101
|
+
qty: charge.qty.try(:to_f),
|
|
102
102
|
neto: neto,
|
|
103
103
|
percent_ratio: percent_ratio #TODO check format
|
|
104
104
|
)
|
data/lib/extface/version.rb
CHANGED
data/test/dummy/db/test.sqlite3
CHANGED
|
Binary file
|
data/test/dummy/log/test.log
CHANGED
|
@@ -18729,3 +18729,20 @@ Completed 200 OK in 10004ms (ActiveRecord: 3.2ms)
|
|
|
18729
18729
|
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
|
18730
18730
|
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
|
18731
18731
|
[1m[35m (0.1ms)[0m [1m[36mcommit transaction[0m
|
|
18732
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
|
18733
|
+
[1m[35m (78.8ms)[0m [1m[35mDROP TABLE IF EXISTS "extface_devices"[0m
|
|
18734
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
|
18735
|
+
[1m[35m (56.9ms)[0m [1m[35mCREATE TABLE "extface_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar, "name" varchar, "extfaceable_id" integer, "extfaceable_type" varchar, "driver_id" integer, "created_at" datetime, "updated_at" datetime, "encoding" varchar)[0m
|
|
18736
|
+
[1m[35m (54.5ms)[0m [1m[35mDROP TABLE IF EXISTS "extface_drivers"[0m
|
|
18737
|
+
[1m[35m (57.3ms)[0m [1m[35mCREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar, "settings" text, "created_at" datetime, "updated_at" datetime)[0m
|
|
18738
|
+
[1m[35m (51.9ms)[0m [1m[35mDROP TABLE IF EXISTS "extface_jobs"[0m
|
|
18739
|
+
[1m[35m (54.4ms)[0m [1m[35mCREATE TABLE "extface_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "device_id" integer, "created_at" datetime, "updated_at" datetime, "description" varchar, "error" varchar, "failed_at" datetime, "completed_at" datetime, "connected_at" datetime, "started_at" datetime)[0m
|
|
18740
|
+
[1m[35m (65.1ms)[0m [1m[35mCREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")[0m
|
|
18741
|
+
[1m[35m (65.4ms)[0m [1m[35mDROP TABLE IF EXISTS "extface_serial_configs"[0m
|
|
18742
|
+
[1m[35m (65.6ms)[0m [1m[35mCREATE TABLE "extface_serial_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "driver_id" integer, "serial_boud_rate" integer, "serial_data_length" integer, "serial_parity_check" integer, "serial_stop_bits" integer, "serial_handshake" integer, "created_at" datetime, "updated_at" datetime)[0m
|
|
18743
|
+
[1m[35m (60.3ms)[0m [1m[35mDROP TABLE IF EXISTS "shops"[0m
|
|
18744
|
+
[1m[35m (62.5ms)[0m [1m[35mCREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)[0m
|
|
18745
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
|
18746
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
|
18747
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
|
18748
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: extface
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.6.
|
|
4
|
+
version: 0.6.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alex Vangelov
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-11-
|
|
11
|
+
date: 2018-11-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: redis
|