billing 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/jobs/billing/issue_fiscal_doc.rb +1 -1
- data/lib/billing/version.rb +1 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +298 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 94919d017a270101a2efc99c13b37fc417d2ae75
|
4
|
+
data.tar.gz: 0210520fe469c56b06287cdc0b2694681ae25aa4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 627bc666c769bd49213e93d9b2e59dd1bc340374060f9218479fdd59bcee7d503c816a4e2d62cf391c15b1de5e57e561f5bc05a64e8805728cdb9609ef179f97
|
7
|
+
data.tar.gz: df019fb7b726d39cba6ce4610a8448d5d7d450cba658b09e1cdc42f6d2076a9344468bddd889ea3e3a3690ee864617c9e035d6f863f684443474d03ae305f2d9
|
@@ -41,7 +41,7 @@ module Billing
|
|
41
41
|
text1: charge.name,
|
42
42
|
text2: charge.description,
|
43
43
|
tax_group: charge.find_tax_group_mapping_for(s), #find tax group mapping by ratio , not nice
|
44
|
-
qty: charge.qty,
|
44
|
+
qty: charge.qty.try(:to_f),
|
45
45
|
neto: neto,
|
46
46
|
percent_ratio: percent_ratio #TODO check format
|
47
47
|
)
|
data/lib/billing/version.rb
CHANGED
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
data/test/dummy/log/test.log
CHANGED
@@ -11249,3 +11249,301 @@ Billing::ModifierTest: test_allow_only_one_modifier_per_charge
|
|
11249
11249
|
[1m[35mBilling::Modifier Exists (0.1ms)[0m SELECT 1 AS one FROM "billing_modifiers" WHERE ("billing_modifiers"."bill_id" = 980190962 AND "billing_modifiers"."charge_id" = 980190962) LIMIT 1
|
11250
11250
|
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
11251
11251
|
[1m[35m (0.1ms)[0m rollback transaction
|
11252
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
11253
|
+
[1m[35m (117.7ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_bills"[0m
|
11254
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
11255
|
+
[1m[35m (81.0ms)[0m [1m[35mCREATE TABLE "billing_bills" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "billable_id" integer, "billable_type" varchar, "created_at" datetime, "updated_at" datetime, "charges_sum_cents" integer DEFAULT 0 NOT NULL, "charges_sum_currency" varchar DEFAULT 'USD' NOT NULL, "discounts_sum_cents" integer DEFAULT 0 NOT NULL, "discounts_sum_currency" varchar DEFAULT 'USD' NOT NULL, "payments_sum_cents" integer DEFAULT 0 NOT NULL, "payments_sum_currency" varchar DEFAULT 'USD' NOT NULL, "total_cents" integer DEFAULT 0 NOT NULL, "total_currency" varchar DEFAULT 'USD' NOT NULL, "balance_cents" integer DEFAULT 0 NOT NULL, "balance_currency" varchar DEFAULT 'USD' NOT NULL, "surcharges_sum_cents" integer DEFAULT 0 NOT NULL, "surcharges_sum_currency" varchar DEFAULT 'USD' NOT NULL, "origin_id" integer, "extface_job_id" integer, "report_id" integer, "autofin" boolean DEFAULT 't', "finalized_at" datetime, "name" varchar, "number" varchar, "deleted_at" datetime, "print_job_id" integer)[0m
|
11256
|
+
[1m[35m (81.9ms)[0m [1m[35mCREATE INDEX "index_billing_bills_on_billable_type_and_billable_id" ON "billing_bills" ("billable_type", "billable_id")[0m
|
11257
|
+
[1m[35m (81.6ms)[0m [1m[35mCREATE INDEX "index_billing_bills_on_extface_job_id" ON "billing_bills" ("extface_job_id")[0m
|
11258
|
+
[1m[35m (81.2ms)[0m [1m[35mCREATE INDEX "index_billing_bills_on_origin_id" ON "billing_bills" ("origin_id")[0m
|
11259
|
+
[1m[35m (90.8ms)[0m [1m[35mCREATE INDEX "index_billing_bills_on_report_id" ON "billing_bills" ("report_id")[0m
|
11260
|
+
[1m[35m (98.6ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_charges"[0m
|
11261
|
+
[1m[35m (79.9ms)[0m [1m[35mCREATE TABLE "billing_charges" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "bill_id" integer, "chargable_id" integer, "chargable_type" varchar, "price_cents" integer DEFAULT 0 NOT NULL, "price_currency" varchar DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "name" varchar, "description" varchar, "origin_id" integer, "value_cents" integer DEFAULT 0 NOT NULL, "value_currency" varchar DEFAULT 'USD' NOT NULL, "deleted_at" datetime, "revenue_at" datetime, "qty" decimal(6,3), "tax_ratio" decimal(6,3))[0m
|
11262
|
+
[1m[35m (88.1ms)[0m [1m[35mCREATE INDEX "index_billing_charges_on_bill_id" ON "billing_charges" ("bill_id")[0m
|
11263
|
+
[1m[35m (91.3ms)[0m [1m[35mCREATE INDEX "index_billing_charges_on_chargable_type_and_chargable_id" ON "billing_charges" ("chargable_type", "chargable_id")[0m
|
11264
|
+
[1m[35m (89.3ms)[0m [1m[35mCREATE INDEX "index_billing_charges_on_deleted_at" ON "billing_charges" ("deleted_at")[0m
|
11265
|
+
[1m[35m (107.6ms)[0m [1m[35mCREATE INDEX "index_billing_charges_on_origin_id" ON "billing_charges" ("origin_id")[0m
|
11266
|
+
[1m[35m (101.8ms)[0m [1m[35mCREATE INDEX "index_billing_charges_on_revenue_at" ON "billing_charges" ("revenue_at")[0m
|
11267
|
+
[1m[35m (102.1ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_departments"[0m
|
11268
|
+
[1m[35m (94.8ms)[0m [1m[35mCREATE TABLE "billing_departments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "master_id" integer, "name" varchar, "tax_group_id" integer, "type" varchar, "created_at" datetime, "updated_at" datetime, "number" integer, "banned" boolean, "deleted_at" datetime)[0m
|
11269
|
+
[1m[35m (91.6ms)[0m [1m[35mCREATE INDEX "index_billing_departments_on_deleted_at" ON "billing_departments" ("deleted_at")[0m
|
11270
|
+
[1m[35m (97.9ms)[0m [1m[35mCREATE INDEX "index_billing_departments_on_tax_group_id" ON "billing_departments" ("tax_group_id")[0m
|
11271
|
+
[1m[35m (98.1ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_modifiers"[0m
|
11272
|
+
[1m[35m (88.8ms)[0m [1m[35mCREATE TABLE "billing_modifiers" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "bill_id" integer, "charge_id" integer, "percent_ratio" decimal(6,3), "created_at" datetime, "updated_at" datetime, "fixed_value_cents" integer DEFAULT 0 NOT NULL, "fixed_value_currency" varchar DEFAULT 'USD' NOT NULL, "deleted_at" datetime)[0m
|
11273
|
+
[1m[35m (91.2ms)[0m [1m[35mCREATE INDEX "index_billing_modifiers_on_bill_id" ON "billing_modifiers" ("bill_id")[0m
|
11274
|
+
[1m[35m (90.2ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_op_fp_mappings"[0m
|
11275
|
+
[1m[35m (90.6ms)[0m [1m[35mCREATE TABLE "billing_op_fp_mappings" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "operator_id" integer, "extface_driver_id" integer, "mapping" integer, "created_at" datetime, "updated_at" datetime, "pwd" varchar)[0m
|
11276
|
+
[1m[35m (98.2ms)[0m [1m[35mCREATE INDEX "index_billing_op_fp_mappings_on_extface_driver_id" ON "billing_op_fp_mappings" ("extface_driver_id")[0m
|
11277
|
+
[1m[35m (97.9ms)[0m [1m[35mCREATE INDEX "index_billing_op_fp_mappings_on_operator_id" ON "billing_op_fp_mappings" ("operator_id")[0m
|
11278
|
+
[1m[35m (89.9ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_operators"[0m
|
11279
|
+
[1m[35m (90.1ms)[0m [1m[35mCREATE TABLE "billing_operators" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "master_id" integer, "name" varchar, "type" varchar, "created_at" datetime, "updated_at" datetime, "number" integer, "banned" boolean, "deleted_at" datetime)[0m
|
11280
|
+
[1m[35m (90.2ms)[0m [1m[35mCREATE INDEX "index_billing_operators_on_deleted_at" ON "billing_operators" ("deleted_at")[0m
|
11281
|
+
[1m[35m (90.0ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_origins"[0m
|
11282
|
+
[1m[35m (90.4ms)[0m [1m[35mCREATE TABLE "billing_origins" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime, "updated_at" datetime, "master_id" integer, "fiscal_device_id" integer, "banned" boolean, "deleted_at" datetime, "type" varchar, "payment_model" varchar DEFAULT 'Billing::PaymentWithType', "transfer_device_id" integer, "print_device_id" integer, "print_header" varchar, "print_footer" varchar, "receipt_config_id" integer)[0m
|
11283
|
+
[1m[35m (89.8ms)[0m [1m[35mCREATE INDEX "index_billing_origins_on_deleted_at" ON "billing_origins" ("deleted_at")[0m
|
11284
|
+
[1m[35m (89.7ms)[0m [1m[35mCREATE INDEX "index_billing_origins_on_fiscal_device_id" ON "billing_origins" ("fiscal_device_id")[0m
|
11285
|
+
[1m[35m (89.0ms)[0m [1m[35mCREATE INDEX "index_billing_origins_on_receipt_config_id" ON "billing_origins" ("receipt_config_id")[0m
|
11286
|
+
[1m[35m (81.6ms)[0m [1m[35mCREATE INDEX "index_billing_origins_on_transfer_device_id" ON "billing_origins" ("transfer_device_id")[0m
|
11287
|
+
[1m[35m (123.4ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_payment_types"[0m
|
11288
|
+
[1m[35m (81.6ms)[0m [1m[35mCREATE TABLE "billing_payment_types" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "cash" boolean, "fiscal" boolean, "created_at" datetime, "updated_at" datetime, "type" varchar, "master_id" integer, "number" integer, "banned" boolean, "deleted_at" datetime, "print_copy" boolean)[0m
|
11289
|
+
[1m[35m (81.7ms)[0m [1m[35mCREATE INDEX "index_billing_payment_types_on_deleted_at" ON "billing_payment_types" ("deleted_at")[0m
|
11290
|
+
[1m[35m (81.5ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_payments"[0m
|
11291
|
+
[1m[35m (81.7ms)[0m [1m[35mCREATE TABLE "billing_payments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "bill_id" integer, "value_cents" integer DEFAULT 0 NOT NULL, "value_currency" varchar DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "type" varchar, "payment_type_id" integer, "status" varchar, "name" varchar, "description" varchar, "external_token" varchar, "note" varchar, "deleted_at" datetime)[0m
|
11292
|
+
[1m[35m (82.2ms)[0m [1m[35mCREATE INDEX "index_billing_payments_on_bill_id" ON "billing_payments" ("bill_id")[0m
|
11293
|
+
[1m[35m (80.7ms)[0m [1m[35mCREATE INDEX "index_billing_payments_on_deleted_at" ON "billing_payments" ("deleted_at")[0m
|
11294
|
+
[1m[35m (82.5ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_plus"[0m
|
11295
|
+
[1m[35m (81.8ms)[0m [1m[35mCREATE TABLE "billing_plus" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime, "updated_at" datetime, "master_id" integer, "tax_group_id" integer, "department_id" integer, "number" integer, "price_cents" integer DEFAULT 0 NOT NULL, "price_currency" varchar DEFAULT 'USD' NOT NULL, "code" varchar, "type" varchar, "banned" boolean, "deleted_at" datetime)[0m
|
11296
|
+
[1m[35m (81.4ms)[0m [1m[35mCREATE INDEX "index_billing_plus_on_department_id" ON "billing_plus" ("department_id")[0m
|
11297
|
+
[1m[35m (89.7ms)[0m [1m[35mCREATE INDEX "index_billing_plus_on_tax_group_id" ON "billing_plus" ("tax_group_id")[0m
|
11298
|
+
[1m[35m (89.1ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_profiles"[0m
|
11299
|
+
[1m[35m (90.7ms)[0m [1m[35mCREATE TABLE "billing_profiles" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime, "updated_at" datetime)[0m
|
11300
|
+
[1m[35m (90.0ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_pt_fp_mappings"[0m
|
11301
|
+
[1m[35m (98.9ms)[0m [1m[35mCREATE TABLE "billing_pt_fp_mappings" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "payment_type_id" integer, "extface_driver_id" integer, "mapping" integer, "created_at" datetime, "updated_at" datetime)[0m
|
11302
|
+
[1m[35m (98.1ms)[0m [1m[35mCREATE INDEX "index_billing_pt_fp_mappings_on_extface_driver_id" ON "billing_pt_fp_mappings" ("extface_driver_id")[0m
|
11303
|
+
[1m[35m (114.3ms)[0m [1m[35mCREATE INDEX "index_billing_pt_fp_mappings_on_payment_type_id" ON "billing_pt_fp_mappings" ("payment_type_id")[0m
|
11304
|
+
[1m[35m (89.9ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_receipt_configs"[0m
|
11305
|
+
[1m[35m (90.4ms)[0m [1m[35mCREATE TABLE "billing_receipt_configs" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "master_id" integer, "type" varchar, "name" varchar, "discount_text" varchar, "surcharge_text" varchar, "sound_signal" boolean, "open_cash_drawer" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "paper_cut" boolean, "custom_commands" boolean, "custom_commands_text" varchar)[0m
|
11306
|
+
[1m[35m (89.7ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_reports"[0m
|
11307
|
+
[1m[35m (98.2ms)[0m [1m[35mCREATE TABLE "billing_reports" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "master_id" integer, "origin_id" integer, "payments_sum_cents" integer DEFAULT 0 NOT NULL, "payments_sum_currency" varchar DEFAULT 'USD' NOT NULL, "payments_cash_cents" integer DEFAULT 0 NOT NULL, "payments_cash_currency" varchar DEFAULT 'USD' NOT NULL, "payments_fiscal_cents" integer DEFAULT 0 NOT NULL, "payments_fiscal_currency" varchar DEFAULT 'USD' NOT NULL, "note" text, "type" varchar, "created_at" datetime, "updated_at" datetime, "extface_job_id" integer, "f_period_from" date, "f_period_to" date, "zeroing" boolean, "f_operation" varchar, "f_amount_cents" integer DEFAULT 0 NOT NULL, "f_amount_currency" varchar DEFAULT 'USD' NOT NULL, "deleted_at" datetime)[0m
|
11308
|
+
[1m[35m (73.9ms)[0m [1m[35mCREATE INDEX "index_billing_reports_on_origin_id" ON "billing_reports" ("origin_id")[0m
|
11309
|
+
[1m[35m (97.4ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_resources"[0m
|
11310
|
+
[1m[35m (65.8ms)[0m [1m[35mCREATE TABLE "billing_resources" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "master_id" integer, "name" varchar, "properties" text, "banned" boolean, "type" varchar, "created_at" datetime, "updated_at" datetime, "deleted_at" datetime)[0m
|
11311
|
+
[1m[35m (65.5ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_tax_groups"[0m
|
11312
|
+
[1m[35m (65.4ms)[0m [1m[35mCREATE TABLE "billing_tax_groups" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime, "updated_at" datetime, "master_id" integer, "number" integer, "percent_ratio" decimal(6,3), "banned" boolean, "type" varchar, "deleted_at" datetime)[0m
|
11313
|
+
[1m[35m (73.3ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_tg_fp_mappings"[0m
|
11314
|
+
[1m[35m (66.0ms)[0m [1m[35mCREATE TABLE "billing_tg_fp_mappings" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "tax_group_id" integer, "extface_driver_id" integer, "mapping" integer, "created_at" datetime, "updated_at" datetime)[0m
|
11315
|
+
[1m[35m (65.2ms)[0m [1m[35mCREATE INDEX "index_billing_tg_fp_mappings_on_extface_driver_id" ON "billing_tg_fp_mappings" ("extface_driver_id")[0m
|
11316
|
+
[1m[35m (64.9ms)[0m [1m[35mCREATE INDEX "index_billing_tg_fp_mappings_on_tax_group_id" ON "billing_tg_fp_mappings" ("tax_group_id")[0m
|
11317
|
+
[1m[35m (65.0ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_versions"[0m
|
11318
|
+
[1m[35m (65.6ms)[0m [1m[35mCREATE TABLE "billing_versions" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "item_type" varchar NOT NULL, "item_id" integer NOT NULL, "event" varchar NOT NULL, "whodunnit" varchar, "object" text, "created_at" datetime, "ip" varchar, "user_agent" varchar, "object_changes" text, "master_id" integer, "master_type" varchar)[0m
|
11319
|
+
[1m[35m (65.5ms)[0m [1m[35mCREATE INDEX "index_billing_versions_on_item_type_and_item_id" ON "billing_versions" ("item_type", "item_id")[0m
|
11320
|
+
[1m[35m (73.5ms)[0m [1m[35mDROP TABLE IF EXISTS "profiles"[0m
|
11321
|
+
[1m[35m (74.1ms)[0m [1m[35mCREATE TABLE "profiles" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)[0m
|
11322
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
11323
|
+
[1m[35m (97.1ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
11324
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
11325
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
11326
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.2ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", "2018-11-15 00:46:01.289678"], ["updated_at", "2018-11-15 00:46:01.289678"]]
|
11327
|
+
[1m[35m (105.1ms)[0m [1m[36mcommit transaction[0m
|
11328
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
11329
|
+
[1m[35m (111.7ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_bills"[0m
|
11330
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
11331
|
+
[1m[35m (82.8ms)[0m [1m[35mCREATE TABLE "billing_bills" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "billable_id" integer, "billable_type" varchar, "created_at" datetime, "updated_at" datetime, "charges_sum_cents" integer DEFAULT 0 NOT NULL, "charges_sum_currency" varchar DEFAULT 'USD' NOT NULL, "discounts_sum_cents" integer DEFAULT 0 NOT NULL, "discounts_sum_currency" varchar DEFAULT 'USD' NOT NULL, "payments_sum_cents" integer DEFAULT 0 NOT NULL, "payments_sum_currency" varchar DEFAULT 'USD' NOT NULL, "total_cents" integer DEFAULT 0 NOT NULL, "total_currency" varchar DEFAULT 'USD' NOT NULL, "balance_cents" integer DEFAULT 0 NOT NULL, "balance_currency" varchar DEFAULT 'USD' NOT NULL, "surcharges_sum_cents" integer DEFAULT 0 NOT NULL, "surcharges_sum_currency" varchar DEFAULT 'USD' NOT NULL, "origin_id" integer, "extface_job_id" integer, "report_id" integer, "autofin" boolean DEFAULT 't', "finalized_at" datetime, "name" varchar, "number" varchar, "deleted_at" datetime, "print_job_id" integer)[0m
|
11332
|
+
[1m[35m (73.5ms)[0m [1m[35mCREATE INDEX "index_billing_bills_on_billable_type_and_billable_id" ON "billing_bills" ("billable_type", "billable_id")[0m
|
11333
|
+
[1m[35m (79.6ms)[0m [1m[35mCREATE INDEX "index_billing_bills_on_extface_job_id" ON "billing_bills" ("extface_job_id")[0m
|
11334
|
+
[1m[35m (74.8ms)[0m [1m[35mCREATE INDEX "index_billing_bills_on_origin_id" ON "billing_bills" ("origin_id")[0m
|
11335
|
+
[1m[35m (72.7ms)[0m [1m[35mCREATE INDEX "index_billing_bills_on_report_id" ON "billing_bills" ("report_id")[0m
|
11336
|
+
[1m[35m (73.8ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_charges"[0m
|
11337
|
+
[1m[35m (67.5ms)[0m [1m[35mCREATE TABLE "billing_charges" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "bill_id" integer, "chargable_id" integer, "chargable_type" varchar, "price_cents" integer DEFAULT 0 NOT NULL, "price_currency" varchar DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "name" varchar, "description" varchar, "origin_id" integer, "value_cents" integer DEFAULT 0 NOT NULL, "value_currency" varchar DEFAULT 'USD' NOT NULL, "deleted_at" datetime, "revenue_at" datetime, "qty" decimal(6,3), "tax_ratio" decimal(6,3))[0m
|
11338
|
+
[1m[35m (60.9ms)[0m [1m[35mCREATE INDEX "index_billing_charges_on_bill_id" ON "billing_charges" ("bill_id")[0m
|
11339
|
+
[1m[35m (73.5ms)[0m [1m[35mCREATE INDEX "index_billing_charges_on_chargable_type_and_chargable_id" ON "billing_charges" ("chargable_type", "chargable_id")[0m
|
11340
|
+
[1m[35m (64.8ms)[0m [1m[35mCREATE INDEX "index_billing_charges_on_deleted_at" ON "billing_charges" ("deleted_at")[0m
|
11341
|
+
[1m[35m (74.5ms)[0m [1m[35mCREATE INDEX "index_billing_charges_on_origin_id" ON "billing_charges" ("origin_id")[0m
|
11342
|
+
[1m[35m (99.6ms)[0m [1m[35mCREATE INDEX "index_billing_charges_on_revenue_at" ON "billing_charges" ("revenue_at")[0m
|
11343
|
+
[1m[35m (91.6ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_departments"[0m
|
11344
|
+
[1m[35m (62.0ms)[0m [1m[35mCREATE TABLE "billing_departments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "master_id" integer, "name" varchar, "tax_group_id" integer, "type" varchar, "created_at" datetime, "updated_at" datetime, "number" integer, "banned" boolean, "deleted_at" datetime)[0m
|
11345
|
+
[1m[35m (62.2ms)[0m [1m[35mCREATE INDEX "index_billing_departments_on_deleted_at" ON "billing_departments" ("deleted_at")[0m
|
11346
|
+
[1m[35m (56.2ms)[0m [1m[35mCREATE INDEX "index_billing_departments_on_tax_group_id" ON "billing_departments" ("tax_group_id")[0m
|
11347
|
+
[1m[35m (57.2ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_modifiers"[0m
|
11348
|
+
[1m[35m (65.5ms)[0m [1m[35mCREATE TABLE "billing_modifiers" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "bill_id" integer, "charge_id" integer, "percent_ratio" decimal(6,3), "created_at" datetime, "updated_at" datetime, "fixed_value_cents" integer DEFAULT 0 NOT NULL, "fixed_value_currency" varchar DEFAULT 'USD' NOT NULL, "deleted_at" datetime)[0m
|
11349
|
+
[1m[35m (81.7ms)[0m [1m[35mCREATE INDEX "index_billing_modifiers_on_bill_id" ON "billing_modifiers" ("bill_id")[0m
|
11350
|
+
[1m[35m (57.2ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_op_fp_mappings"[0m
|
11351
|
+
[1m[35m (57.6ms)[0m [1m[35mCREATE TABLE "billing_op_fp_mappings" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "operator_id" integer, "extface_driver_id" integer, "mapping" integer, "created_at" datetime, "updated_at" datetime, "pwd" varchar)[0m
|
11352
|
+
[1m[35m (56.8ms)[0m [1m[35mCREATE INDEX "index_billing_op_fp_mappings_on_extface_driver_id" ON "billing_op_fp_mappings" ("extface_driver_id")[0m
|
11353
|
+
[1m[35m (65.0ms)[0m [1m[35mCREATE INDEX "index_billing_op_fp_mappings_on_operator_id" ON "billing_op_fp_mappings" ("operator_id")[0m
|
11354
|
+
[1m[35m (65.6ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_operators"[0m
|
11355
|
+
[1m[35m (73.5ms)[0m [1m[35mCREATE TABLE "billing_operators" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "master_id" integer, "name" varchar, "type" varchar, "created_at" datetime, "updated_at" datetime, "number" integer, "banned" boolean, "deleted_at" datetime)[0m
|
11356
|
+
[1m[35m (73.4ms)[0m [1m[35mCREATE INDEX "index_billing_operators_on_deleted_at" ON "billing_operators" ("deleted_at")[0m
|
11357
|
+
[1m[35m (65.8ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_origins"[0m
|
11358
|
+
[1m[35m (78.9ms)[0m [1m[35mCREATE TABLE "billing_origins" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime, "updated_at" datetime, "master_id" integer, "fiscal_device_id" integer, "banned" boolean, "deleted_at" datetime, "type" varchar, "payment_model" varchar DEFAULT 'Billing::PaymentWithType', "transfer_device_id" integer, "print_device_id" integer, "print_header" varchar, "print_footer" varchar, "receipt_config_id" integer)[0m
|
11359
|
+
[1m[35m (73.5ms)[0m [1m[35mCREATE INDEX "index_billing_origins_on_deleted_at" ON "billing_origins" ("deleted_at")[0m
|
11360
|
+
[1m[35m (73.1ms)[0m [1m[35mCREATE INDEX "index_billing_origins_on_fiscal_device_id" ON "billing_origins" ("fiscal_device_id")[0m
|
11361
|
+
[1m[35m (104.5ms)[0m [1m[35mCREATE INDEX "index_billing_origins_on_receipt_config_id" ON "billing_origins" ("receipt_config_id")[0m
|
11362
|
+
[1m[35m (81.3ms)[0m [1m[35mCREATE INDEX "index_billing_origins_on_transfer_device_id" ON "billing_origins" ("transfer_device_id")[0m
|
11363
|
+
[1m[35m (65.3ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_payment_types"[0m
|
11364
|
+
[1m[35m (81.4ms)[0m [1m[35mCREATE TABLE "billing_payment_types" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "cash" boolean, "fiscal" boolean, "created_at" datetime, "updated_at" datetime, "type" varchar, "master_id" integer, "number" integer, "banned" boolean, "deleted_at" datetime, "print_copy" boolean)[0m
|
11365
|
+
[1m[35m (89.9ms)[0m [1m[35mCREATE INDEX "index_billing_payment_types_on_deleted_at" ON "billing_payment_types" ("deleted_at")[0m
|
11366
|
+
[1m[35m (81.9ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_payments"[0m
|
11367
|
+
[1m[35m (73.7ms)[0m [1m[35mCREATE TABLE "billing_payments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "bill_id" integer, "value_cents" integer DEFAULT 0 NOT NULL, "value_currency" varchar DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "type" varchar, "payment_type_id" integer, "status" varchar, "name" varchar, "description" varchar, "external_token" varchar, "note" varchar, "deleted_at" datetime)[0m
|
11368
|
+
[1m[35m (65.2ms)[0m [1m[35mCREATE INDEX "index_billing_payments_on_bill_id" ON "billing_payments" ("bill_id")[0m
|
11369
|
+
[1m[35m (73.3ms)[0m [1m[35mCREATE INDEX "index_billing_payments_on_deleted_at" ON "billing_payments" ("deleted_at")[0m
|
11370
|
+
[1m[35m (89.3ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_plus"[0m
|
11371
|
+
[1m[35m (65.5ms)[0m [1m[35mCREATE TABLE "billing_plus" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime, "updated_at" datetime, "master_id" integer, "tax_group_id" integer, "department_id" integer, "number" integer, "price_cents" integer DEFAULT 0 NOT NULL, "price_currency" varchar DEFAULT 'USD' NOT NULL, "code" varchar, "type" varchar, "banned" boolean, "deleted_at" datetime)[0m
|
11372
|
+
[1m[35m (65.2ms)[0m [1m[35mCREATE INDEX "index_billing_plus_on_department_id" ON "billing_plus" ("department_id")[0m
|
11373
|
+
[1m[35m (64.8ms)[0m [1m[35mCREATE INDEX "index_billing_plus_on_tax_group_id" ON "billing_plus" ("tax_group_id")[0m
|
11374
|
+
[1m[35m (65.5ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_profiles"[0m
|
11375
|
+
[1m[35m (65.7ms)[0m [1m[35mCREATE TABLE "billing_profiles" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime, "updated_at" datetime)[0m
|
11376
|
+
[1m[35m (65.4ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_pt_fp_mappings"[0m
|
11377
|
+
[1m[35m (65.5ms)[0m [1m[35mCREATE TABLE "billing_pt_fp_mappings" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "payment_type_id" integer, "extface_driver_id" integer, "mapping" integer, "created_at" datetime, "updated_at" datetime)[0m
|
11378
|
+
[1m[35m (65.3ms)[0m [1m[35mCREATE INDEX "index_billing_pt_fp_mappings_on_extface_driver_id" ON "billing_pt_fp_mappings" ("extface_driver_id")[0m
|
11379
|
+
[1m[35m (65.0ms)[0m [1m[35mCREATE INDEX "index_billing_pt_fp_mappings_on_payment_type_id" ON "billing_pt_fp_mappings" ("payment_type_id")[0m
|
11380
|
+
[1m[35m (65.4ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_receipt_configs"[0m
|
11381
|
+
[1m[35m (65.5ms)[0m [1m[35mCREATE TABLE "billing_receipt_configs" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "master_id" integer, "type" varchar, "name" varchar, "discount_text" varchar, "surcharge_text" varchar, "sound_signal" boolean, "open_cash_drawer" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "paper_cut" boolean, "custom_commands" boolean, "custom_commands_text" varchar)[0m
|
11382
|
+
[1m[35m (65.3ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_reports"[0m
|
11383
|
+
[1m[35m (65.2ms)[0m [1m[35mCREATE TABLE "billing_reports" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "master_id" integer, "origin_id" integer, "payments_sum_cents" integer DEFAULT 0 NOT NULL, "payments_sum_currency" varchar DEFAULT 'USD' NOT NULL, "payments_cash_cents" integer DEFAULT 0 NOT NULL, "payments_cash_currency" varchar DEFAULT 'USD' NOT NULL, "payments_fiscal_cents" integer DEFAULT 0 NOT NULL, "payments_fiscal_currency" varchar DEFAULT 'USD' NOT NULL, "note" text, "type" varchar, "created_at" datetime, "updated_at" datetime, "extface_job_id" integer, "f_period_from" date, "f_period_to" date, "zeroing" boolean, "f_operation" varchar, "f_amount_cents" integer DEFAULT 0 NOT NULL, "f_amount_currency" varchar DEFAULT 'USD' NOT NULL, "deleted_at" datetime)[0m
|
11384
|
+
[1m[35m (65.3ms)[0m [1m[35mCREATE INDEX "index_billing_reports_on_origin_id" ON "billing_reports" ("origin_id")[0m
|
11385
|
+
[1m[35m (65.4ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_resources"[0m
|
11386
|
+
[1m[35m (65.6ms)[0m [1m[35mCREATE TABLE "billing_resources" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "master_id" integer, "name" varchar, "properties" text, "banned" boolean, "type" varchar, "created_at" datetime, "updated_at" datetime, "deleted_at" datetime)[0m
|
11387
|
+
[1m[35m (65.4ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_tax_groups"[0m
|
11388
|
+
[1m[35m (57.4ms)[0m [1m[35mCREATE TABLE "billing_tax_groups" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime, "updated_at" datetime, "master_id" integer, "number" integer, "percent_ratio" decimal(6,3), "banned" boolean, "type" varchar, "deleted_at" datetime)[0m
|
11389
|
+
[1m[35m (97.7ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_tg_fp_mappings"[0m
|
11390
|
+
[1m[35m (81.9ms)[0m [1m[35mCREATE TABLE "billing_tg_fp_mappings" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "tax_group_id" integer, "extface_driver_id" integer, "mapping" integer, "created_at" datetime, "updated_at" datetime)[0m
|
11391
|
+
[1m[35m (65.3ms)[0m [1m[35mCREATE INDEX "index_billing_tg_fp_mappings_on_extface_driver_id" ON "billing_tg_fp_mappings" ("extface_driver_id")[0m
|
11392
|
+
[1m[35m (73.3ms)[0m [1m[35mCREATE INDEX "index_billing_tg_fp_mappings_on_tax_group_id" ON "billing_tg_fp_mappings" ("tax_group_id")[0m
|
11393
|
+
[1m[35m (73.5ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_versions"[0m
|
11394
|
+
[1m[35m (73.8ms)[0m [1m[35mCREATE TABLE "billing_versions" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "item_type" varchar NOT NULL, "item_id" integer NOT NULL, "event" varchar NOT NULL, "whodunnit" varchar, "object" text, "created_at" datetime, "ip" varchar, "user_agent" varchar, "object_changes" text, "master_id" integer, "master_type" varchar)[0m
|
11395
|
+
[1m[35m (81.7ms)[0m [1m[35mCREATE INDEX "index_billing_versions_on_item_type_and_item_id" ON "billing_versions" ("item_type", "item_id")[0m
|
11396
|
+
[1m[35m (72.4ms)[0m [1m[35mDROP TABLE IF EXISTS "profiles"[0m
|
11397
|
+
[1m[35m (66.9ms)[0m [1m[35mCREATE TABLE "profiles" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)[0m
|
11398
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
11399
|
+
[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]]
|
11400
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
11401
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
11402
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
11403
|
+
[1m[35m (120.6ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_bills"[0m
|
11404
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
11405
|
+
[1m[35m (95.4ms)[0m [1m[35mCREATE TABLE "billing_bills" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "billable_id" integer, "billable_type" varchar, "created_at" datetime, "updated_at" datetime, "charges_sum_cents" integer DEFAULT 0 NOT NULL, "charges_sum_currency" varchar DEFAULT 'USD' NOT NULL, "discounts_sum_cents" integer DEFAULT 0 NOT NULL, "discounts_sum_currency" varchar DEFAULT 'USD' NOT NULL, "payments_sum_cents" integer DEFAULT 0 NOT NULL, "payments_sum_currency" varchar DEFAULT 'USD' NOT NULL, "total_cents" integer DEFAULT 0 NOT NULL, "total_currency" varchar DEFAULT 'USD' NOT NULL, "balance_cents" integer DEFAULT 0 NOT NULL, "balance_currency" varchar DEFAULT 'USD' NOT NULL, "surcharges_sum_cents" integer DEFAULT 0 NOT NULL, "surcharges_sum_currency" varchar DEFAULT 'USD' NOT NULL, "origin_id" integer, "extface_job_id" integer, "report_id" integer, "autofin" boolean DEFAULT 't', "finalized_at" datetime, "name" varchar, "number" varchar, "deleted_at" datetime, "print_job_id" integer)[0m
|
11406
|
+
[1m[35m (88.3ms)[0m [1m[35mCREATE INDEX "index_billing_bills_on_billable_type_and_billable_id" ON "billing_bills" ("billable_type", "billable_id")[0m
|
11407
|
+
[1m[35m (64.9ms)[0m [1m[35mCREATE INDEX "index_billing_bills_on_extface_job_id" ON "billing_bills" ("extface_job_id")[0m
|
11408
|
+
[1m[35m (64.7ms)[0m [1m[35mCREATE INDEX "index_billing_bills_on_origin_id" ON "billing_bills" ("origin_id")[0m
|
11409
|
+
[1m[35m (72.7ms)[0m [1m[35mCREATE INDEX "index_billing_bills_on_report_id" ON "billing_bills" ("report_id")[0m
|
11410
|
+
[1m[35m (80.3ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_charges"[0m
|
11411
|
+
[1m[35m (83.3ms)[0m [1m[35mCREATE TABLE "billing_charges" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "bill_id" integer, "chargable_id" integer, "chargable_type" varchar, "price_cents" integer DEFAULT 0 NOT NULL, "price_currency" varchar DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "name" varchar, "description" varchar, "origin_id" integer, "value_cents" integer DEFAULT 0 NOT NULL, "value_currency" varchar DEFAULT 'USD' NOT NULL, "deleted_at" datetime, "revenue_at" datetime, "qty" decimal(6,3), "tax_ratio" decimal(6,3))[0m
|
11412
|
+
[1m[35m (73.3ms)[0m [1m[35mCREATE INDEX "index_billing_charges_on_bill_id" ON "billing_charges" ("bill_id")[0m
|
11413
|
+
[1m[35m (73.1ms)[0m [1m[35mCREATE INDEX "index_billing_charges_on_chargable_type_and_chargable_id" ON "billing_charges" ("chargable_type", "chargable_id")[0m
|
11414
|
+
[1m[35m (73.1ms)[0m [1m[35mCREATE INDEX "index_billing_charges_on_deleted_at" ON "billing_charges" ("deleted_at")[0m
|
11415
|
+
[1m[35m (73.0ms)[0m [1m[35mCREATE INDEX "index_billing_charges_on_origin_id" ON "billing_charges" ("origin_id")[0m
|
11416
|
+
[1m[35m (101.6ms)[0m [1m[35mCREATE INDEX "index_billing_charges_on_revenue_at" ON "billing_charges" ("revenue_at")[0m
|
11417
|
+
[1m[35m (98.0ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_departments"[0m
|
11418
|
+
[1m[35m (97.0ms)[0m [1m[35mCREATE TABLE "billing_departments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "master_id" integer, "name" varchar, "tax_group_id" integer, "type" varchar, "created_at" datetime, "updated_at" datetime, "number" integer, "banned" boolean, "deleted_at" datetime)[0m
|
11419
|
+
[1m[35m (81.7ms)[0m [1m[35mCREATE INDEX "index_billing_departments_on_deleted_at" ON "billing_departments" ("deleted_at")[0m
|
11420
|
+
[1m[35m (89.5ms)[0m [1m[35mCREATE INDEX "index_billing_departments_on_tax_group_id" ON "billing_departments" ("tax_group_id")[0m
|
11421
|
+
[1m[35m (81.9ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_modifiers"[0m
|
11422
|
+
[1m[35m (82.0ms)[0m [1m[35mCREATE TABLE "billing_modifiers" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "bill_id" integer, "charge_id" integer, "percent_ratio" decimal(6,3), "created_at" datetime, "updated_at" datetime, "fixed_value_cents" integer DEFAULT 0 NOT NULL, "fixed_value_currency" varchar DEFAULT 'USD' NOT NULL, "deleted_at" datetime)[0m
|
11423
|
+
[1m[35m (81.6ms)[0m [1m[35mCREATE INDEX "index_billing_modifiers_on_bill_id" ON "billing_modifiers" ("bill_id")[0m
|
11424
|
+
[1m[35m (73.7ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_op_fp_mappings"[0m
|
11425
|
+
[1m[35m (82.1ms)[0m [1m[35mCREATE TABLE "billing_op_fp_mappings" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "operator_id" integer, "extface_driver_id" integer, "mapping" integer, "created_at" datetime, "updated_at" datetime, "pwd" varchar)[0m
|
11426
|
+
[1m[35m (81.8ms)[0m [1m[35mCREATE INDEX "index_billing_op_fp_mappings_on_extface_driver_id" ON "billing_op_fp_mappings" ("extface_driver_id")[0m
|
11427
|
+
[1m[35m (81.4ms)[0m [1m[35mCREATE INDEX "index_billing_op_fp_mappings_on_operator_id" ON "billing_op_fp_mappings" ("operator_id")[0m
|
11428
|
+
[1m[35m (89.9ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_operators"[0m
|
11429
|
+
[1m[35m (106.0ms)[0m [1m[35mCREATE TABLE "billing_operators" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "master_id" integer, "name" varchar, "type" varchar, "created_at" datetime, "updated_at" datetime, "number" integer, "banned" boolean, "deleted_at" datetime)[0m
|
11430
|
+
[1m[35m (98.7ms)[0m [1m[35mCREATE INDEX "index_billing_operators_on_deleted_at" ON "billing_operators" ("deleted_at")[0m
|
11431
|
+
[1m[35m (65.1ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_origins"[0m
|
11432
|
+
[1m[35m (73.6ms)[0m [1m[35mCREATE TABLE "billing_origins" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime, "updated_at" datetime, "master_id" integer, "fiscal_device_id" integer, "banned" boolean, "deleted_at" datetime, "type" varchar, "payment_model" varchar DEFAULT 'Billing::PaymentWithType', "transfer_device_id" integer, "print_device_id" integer, "print_header" varchar, "print_footer" varchar, "receipt_config_id" integer)[0m
|
11433
|
+
[1m[35m (73.9ms)[0m [1m[35mCREATE INDEX "index_billing_origins_on_deleted_at" ON "billing_origins" ("deleted_at")[0m
|
11434
|
+
[1m[35m (73.2ms)[0m [1m[35mCREATE INDEX "index_billing_origins_on_fiscal_device_id" ON "billing_origins" ("fiscal_device_id")[0m
|
11435
|
+
[1m[35m (73.1ms)[0m [1m[35mCREATE INDEX "index_billing_origins_on_receipt_config_id" ON "billing_origins" ("receipt_config_id")[0m
|
11436
|
+
[1m[35m (80.3ms)[0m [1m[35mCREATE INDEX "index_billing_origins_on_transfer_device_id" ON "billing_origins" ("transfer_device_id")[0m
|
11437
|
+
[1m[35m (65.5ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_payment_types"[0m
|
11438
|
+
[1m[35m (74.4ms)[0m [1m[35mCREATE TABLE "billing_payment_types" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "cash" boolean, "fiscal" boolean, "created_at" datetime, "updated_at" datetime, "type" varchar, "master_id" integer, "number" integer, "banned" boolean, "deleted_at" datetime, "print_copy" boolean)[0m
|
11439
|
+
[1m[35m (73.5ms)[0m [1m[35mCREATE INDEX "index_billing_payment_types_on_deleted_at" ON "billing_payment_types" ("deleted_at")[0m
|
11440
|
+
[1m[35m (73.2ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_payments"[0m
|
11441
|
+
[1m[35m (105.7ms)[0m [1m[35mCREATE TABLE "billing_payments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "bill_id" integer, "value_cents" integer DEFAULT 0 NOT NULL, "value_currency" varchar DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "type" varchar, "payment_type_id" integer, "status" varchar, "name" varchar, "description" varchar, "external_token" varchar, "note" varchar, "deleted_at" datetime)[0m
|
11442
|
+
[1m[35m (97.1ms)[0m [1m[35mCREATE INDEX "index_billing_payments_on_bill_id" ON "billing_payments" ("bill_id")[0m
|
11443
|
+
[1m[35m (95.7ms)[0m [1m[35mCREATE INDEX "index_billing_payments_on_deleted_at" ON "billing_payments" ("deleted_at")[0m
|
11444
|
+
[1m[35m (98.3ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_plus"[0m
|
11445
|
+
[1m[35m (73.8ms)[0m [1m[35mCREATE TABLE "billing_plus" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime, "updated_at" datetime, "master_id" integer, "tax_group_id" integer, "department_id" integer, "number" integer, "price_cents" integer DEFAULT 0 NOT NULL, "price_currency" varchar DEFAULT 'USD' NOT NULL, "code" varchar, "type" varchar, "banned" boolean, "deleted_at" datetime)[0m
|
11446
|
+
[1m[35m (73.4ms)[0m [1m[35mCREATE INDEX "index_billing_plus_on_department_id" ON "billing_plus" ("department_id")[0m
|
11447
|
+
[1m[35m (73.1ms)[0m [1m[35mCREATE INDEX "index_billing_plus_on_tax_group_id" ON "billing_plus" ("tax_group_id")[0m
|
11448
|
+
[1m[35m (73.7ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_profiles"[0m
|
11449
|
+
[1m[35m (73.9ms)[0m [1m[35mCREATE TABLE "billing_profiles" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime, "updated_at" datetime)[0m
|
11450
|
+
[1m[35m (73.6ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_pt_fp_mappings"[0m
|
11451
|
+
[1m[35m (82.1ms)[0m [1m[35mCREATE TABLE "billing_pt_fp_mappings" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "payment_type_id" integer, "extface_driver_id" integer, "mapping" integer, "created_at" datetime, "updated_at" datetime)[0m
|
11452
|
+
[1m[35m (73.7ms)[0m [1m[35mCREATE INDEX "index_billing_pt_fp_mappings_on_extface_driver_id" ON "billing_pt_fp_mappings" ("extface_driver_id")[0m
|
11453
|
+
[1m[35m (87.8ms)[0m [1m[35mCREATE INDEX "index_billing_pt_fp_mappings_on_payment_type_id" ON "billing_pt_fp_mappings" ("payment_type_id")[0m
|
11454
|
+
[1m[35m (81.1ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_receipt_configs"[0m
|
11455
|
+
[1m[35m (105.7ms)[0m [1m[35mCREATE TABLE "billing_receipt_configs" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "master_id" integer, "type" varchar, "name" varchar, "discount_text" varchar, "surcharge_text" varchar, "sound_signal" boolean, "open_cash_drawer" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "paper_cut" boolean, "custom_commands" boolean, "custom_commands_text" varchar)[0m
|
11456
|
+
[1m[35m (65.3ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_reports"[0m
|
11457
|
+
[1m[35m (65.4ms)[0m [1m[35mCREATE TABLE "billing_reports" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "master_id" integer, "origin_id" integer, "payments_sum_cents" integer DEFAULT 0 NOT NULL, "payments_sum_currency" varchar DEFAULT 'USD' NOT NULL, "payments_cash_cents" integer DEFAULT 0 NOT NULL, "payments_cash_currency" varchar DEFAULT 'USD' NOT NULL, "payments_fiscal_cents" integer DEFAULT 0 NOT NULL, "payments_fiscal_currency" varchar DEFAULT 'USD' NOT NULL, "note" text, "type" varchar, "created_at" datetime, "updated_at" datetime, "extface_job_id" integer, "f_period_from" date, "f_period_to" date, "zeroing" boolean, "f_operation" varchar, "f_amount_cents" integer DEFAULT 0 NOT NULL, "f_amount_currency" varchar DEFAULT 'USD' NOT NULL, "deleted_at" datetime)[0m
|
11458
|
+
[1m[35m (64.9ms)[0m [1m[35mCREATE INDEX "index_billing_reports_on_origin_id" ON "billing_reports" ("origin_id")[0m
|
11459
|
+
[1m[35m (65.4ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_resources"[0m
|
11460
|
+
[1m[35m (57.5ms)[0m [1m[35mCREATE TABLE "billing_resources" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "master_id" integer, "name" varchar, "properties" text, "banned" boolean, "type" varchar, "created_at" datetime, "updated_at" datetime, "deleted_at" datetime)[0m
|
11461
|
+
[1m[35m (73.6ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_tax_groups"[0m
|
11462
|
+
[1m[35m (65.6ms)[0m [1m[35mCREATE TABLE "billing_tax_groups" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime, "updated_at" datetime, "master_id" integer, "number" integer, "percent_ratio" decimal(6,3), "banned" boolean, "type" varchar, "deleted_at" datetime)[0m
|
11463
|
+
[1m[35m (73.6ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_tg_fp_mappings"[0m
|
11464
|
+
[1m[35m (73.8ms)[0m [1m[35mCREATE TABLE "billing_tg_fp_mappings" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "tax_group_id" integer, "extface_driver_id" integer, "mapping" integer, "created_at" datetime, "updated_at" datetime)[0m
|
11465
|
+
[1m[35m (73.4ms)[0m [1m[35mCREATE INDEX "index_billing_tg_fp_mappings_on_extface_driver_id" ON "billing_tg_fp_mappings" ("extface_driver_id")[0m
|
11466
|
+
[1m[35m (73.5ms)[0m [1m[35mCREATE INDEX "index_billing_tg_fp_mappings_on_tax_group_id" ON "billing_tg_fp_mappings" ("tax_group_id")[0m
|
11467
|
+
[1m[35m (112.0ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_versions"[0m
|
11468
|
+
[1m[35m (91.5ms)[0m [1m[35mCREATE TABLE "billing_versions" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "item_type" varchar NOT NULL, "item_id" integer NOT NULL, "event" varchar NOT NULL, "whodunnit" varchar, "object" text, "created_at" datetime, "ip" varchar, "user_agent" varchar, "object_changes" text, "master_id" integer, "master_type" varchar)[0m
|
11469
|
+
[1m[35m (96.7ms)[0m [1m[35mCREATE INDEX "index_billing_versions_on_item_type_and_item_id" ON "billing_versions" ("item_type", "item_id")[0m
|
11470
|
+
[1m[35m (73.7ms)[0m [1m[35mDROP TABLE IF EXISTS "profiles"[0m
|
11471
|
+
[1m[35m (73.8ms)[0m [1m[35mCREATE TABLE "profiles" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)[0m
|
11472
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
11473
|
+
[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]]
|
11474
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
11475
|
+
[1m[35m (0.1ms)[0m [1m[36mcommit transaction[0m
|
11476
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
11477
|
+
[1m[35m (97.3ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_bills"[0m
|
11478
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
11479
|
+
[1m[35m (78.5ms)[0m [1m[35mCREATE TABLE "billing_bills" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "billable_id" integer, "billable_type" varchar, "created_at" datetime, "updated_at" datetime, "charges_sum_cents" integer DEFAULT 0 NOT NULL, "charges_sum_currency" varchar DEFAULT 'USD' NOT NULL, "discounts_sum_cents" integer DEFAULT 0 NOT NULL, "discounts_sum_currency" varchar DEFAULT 'USD' NOT NULL, "payments_sum_cents" integer DEFAULT 0 NOT NULL, "payments_sum_currency" varchar DEFAULT 'USD' NOT NULL, "total_cents" integer DEFAULT 0 NOT NULL, "total_currency" varchar DEFAULT 'USD' NOT NULL, "balance_cents" integer DEFAULT 0 NOT NULL, "balance_currency" varchar DEFAULT 'USD' NOT NULL, "surcharges_sum_cents" integer DEFAULT 0 NOT NULL, "surcharges_sum_currency" varchar DEFAULT 'USD' NOT NULL, "origin_id" integer, "extface_job_id" integer, "report_id" integer, "autofin" boolean DEFAULT 't', "finalized_at" datetime, "name" varchar, "number" varchar, "deleted_at" datetime, "print_job_id" integer)[0m
|
11480
|
+
[1m[35m (73.4ms)[0m [1m[35mCREATE INDEX "index_billing_bills_on_billable_type_and_billable_id" ON "billing_bills" ("billable_type", "billable_id")[0m
|
11481
|
+
[1m[35m (65.0ms)[0m [1m[35mCREATE INDEX "index_billing_bills_on_extface_job_id" ON "billing_bills" ("extface_job_id")[0m
|
11482
|
+
[1m[35m (56.5ms)[0m [1m[35mCREATE INDEX "index_billing_bills_on_origin_id" ON "billing_bills" ("origin_id")[0m
|
11483
|
+
[1m[35m (74.7ms)[0m [1m[35mCREATE INDEX "index_billing_bills_on_report_id" ON "billing_bills" ("report_id")[0m
|
11484
|
+
[1m[35m (63.7ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_charges"[0m
|
11485
|
+
[1m[35m (81.6ms)[0m [1m[35mCREATE TABLE "billing_charges" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "bill_id" integer, "chargable_id" integer, "chargable_type" varchar, "price_cents" integer DEFAULT 0 NOT NULL, "price_currency" varchar DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "name" varchar, "description" varchar, "origin_id" integer, "value_cents" integer DEFAULT 0 NOT NULL, "value_currency" varchar DEFAULT 'USD' NOT NULL, "deleted_at" datetime, "revenue_at" datetime, "qty" decimal(6,3), "tax_ratio" decimal(6,3))[0m
|
11486
|
+
[1m[35m (65.2ms)[0m [1m[35mCREATE INDEX "index_billing_charges_on_bill_id" ON "billing_charges" ("bill_id")[0m
|
11487
|
+
[1m[35m (56.8ms)[0m [1m[35mCREATE INDEX "index_billing_charges_on_chargable_type_and_chargable_id" ON "billing_charges" ("chargable_type", "chargable_id")[0m
|
11488
|
+
[1m[35m (64.7ms)[0m [1m[35mCREATE INDEX "index_billing_charges_on_deleted_at" ON "billing_charges" ("deleted_at")[0m
|
11489
|
+
[1m[35m (72.6ms)[0m [1m[35mCREATE INDEX "index_billing_charges_on_origin_id" ON "billing_charges" ("origin_id")[0m
|
11490
|
+
[1m[35m (72.6ms)[0m [1m[35mCREATE INDEX "index_billing_charges_on_revenue_at" ON "billing_charges" ("revenue_at")[0m
|
11491
|
+
[1m[35m (72.3ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_departments"[0m
|
11492
|
+
[1m[35m (75.1ms)[0m [1m[35mCREATE TABLE "billing_departments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "master_id" integer, "name" varchar, "tax_group_id" integer, "type" varchar, "created_at" datetime, "updated_at" datetime, "number" integer, "banned" boolean, "deleted_at" datetime)[0m
|
11493
|
+
[1m[35m (73.6ms)[0m [1m[35mCREATE INDEX "index_billing_departments_on_deleted_at" ON "billing_departments" ("deleted_at")[0m
|
11494
|
+
[1m[35m (89.6ms)[0m [1m[35mCREATE INDEX "index_billing_departments_on_tax_group_id" ON "billing_departments" ("tax_group_id")[0m
|
11495
|
+
[1m[35m (81.8ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_modifiers"[0m
|
11496
|
+
[1m[35m (73.9ms)[0m [1m[35mCREATE TABLE "billing_modifiers" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "bill_id" integer, "charge_id" integer, "percent_ratio" decimal(6,3), "created_at" datetime, "updated_at" datetime, "fixed_value_cents" integer DEFAULT 0 NOT NULL, "fixed_value_currency" varchar DEFAULT 'USD' NOT NULL, "deleted_at" datetime)[0m
|
11497
|
+
[1m[35m (65.2ms)[0m [1m[35mCREATE INDEX "index_billing_modifiers_on_bill_id" ON "billing_modifiers" ("bill_id")[0m
|
11498
|
+
[1m[35m (73.7ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_op_fp_mappings"[0m
|
11499
|
+
[1m[35m (82.2ms)[0m [1m[35mCREATE TABLE "billing_op_fp_mappings" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "operator_id" integer, "extface_driver_id" integer, "mapping" integer, "created_at" datetime, "updated_at" datetime, "pwd" varchar)[0m
|
11500
|
+
[1m[35m (81.7ms)[0m [1m[35mCREATE INDEX "index_billing_op_fp_mappings_on_extface_driver_id" ON "billing_op_fp_mappings" ("extface_driver_id")[0m
|
11501
|
+
[1m[35m (81.5ms)[0m [1m[35mCREATE INDEX "index_billing_op_fp_mappings_on_operator_id" ON "billing_op_fp_mappings" ("operator_id")[0m
|
11502
|
+
[1m[35m (312.2ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_operators"[0m
|
11503
|
+
[1m[35m (117.0ms)[0m [1m[35mCREATE TABLE "billing_operators" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "master_id" integer, "name" varchar, "type" varchar, "created_at" datetime, "updated_at" datetime, "number" integer, "banned" boolean, "deleted_at" datetime)[0m
|
11504
|
+
[1m[35m (156.4ms)[0m [1m[35mCREATE INDEX "index_billing_operators_on_deleted_at" ON "billing_operators" ("deleted_at")[0m
|
11505
|
+
[1m[35m (70.9ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_origins"[0m
|
11506
|
+
[1m[35m (82.4ms)[0m [1m[35mCREATE TABLE "billing_origins" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime, "updated_at" datetime, "master_id" integer, "fiscal_device_id" integer, "banned" boolean, "deleted_at" datetime, "type" varchar, "payment_model" varchar DEFAULT 'Billing::PaymentWithType', "transfer_device_id" integer, "print_device_id" integer, "print_header" varchar, "print_footer" varchar, "receipt_config_id" integer)[0m
|
11507
|
+
[1m[35m (81.7ms)[0m [1m[35mCREATE INDEX "index_billing_origins_on_deleted_at" ON "billing_origins" ("deleted_at")[0m
|
11508
|
+
[1m[35m (81.4ms)[0m [1m[35mCREATE INDEX "index_billing_origins_on_fiscal_device_id" ON "billing_origins" ("fiscal_device_id")[0m
|
11509
|
+
[1m[35m (81.2ms)[0m [1m[35mCREATE INDEX "index_billing_origins_on_receipt_config_id" ON "billing_origins" ("receipt_config_id")[0m
|
11510
|
+
[1m[35m (80.4ms)[0m [1m[35mCREATE INDEX "index_billing_origins_on_transfer_device_id" ON "billing_origins" ("transfer_device_id")[0m
|
11511
|
+
[1m[35m (73.6ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_payment_types"[0m
|
11512
|
+
[1m[35m (82.5ms)[0m [1m[35mCREATE TABLE "billing_payment_types" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "cash" boolean, "fiscal" boolean, "created_at" datetime, "updated_at" datetime, "type" varchar, "master_id" integer, "number" integer, "banned" boolean, "deleted_at" datetime, "print_copy" boolean)[0m
|
11513
|
+
[1m[35m (81.6ms)[0m [1m[35mCREATE INDEX "index_billing_payment_types_on_deleted_at" ON "billing_payment_types" ("deleted_at")[0m
|
11514
|
+
[1m[35m (73.1ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_payments"[0m
|
11515
|
+
[1m[35m (90.2ms)[0m [1m[35mCREATE TABLE "billing_payments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "bill_id" integer, "value_cents" integer DEFAULT 0 NOT NULL, "value_currency" varchar DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "type" varchar, "payment_type_id" integer, "status" varchar, "name" varchar, "description" varchar, "external_token" varchar, "note" varchar, "deleted_at" datetime)[0m
|
11516
|
+
[1m[35m (65.2ms)[0m [1m[35mCREATE INDEX "index_billing_payments_on_bill_id" ON "billing_payments" ("bill_id")[0m
|
11517
|
+
[1m[35m (81.5ms)[0m [1m[35mCREATE INDEX "index_billing_payments_on_deleted_at" ON "billing_payments" ("deleted_at")[0m
|
11518
|
+
[1m[35m (73.6ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_plus"[0m
|
11519
|
+
[1m[35m (73.6ms)[0m [1m[35mCREATE TABLE "billing_plus" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime, "updated_at" datetime, "master_id" integer, "tax_group_id" integer, "department_id" integer, "number" integer, "price_cents" integer DEFAULT 0 NOT NULL, "price_currency" varchar DEFAULT 'USD' NOT NULL, "code" varchar, "type" varchar, "banned" boolean, "deleted_at" datetime)[0m
|
11520
|
+
[1m[35m (73.5ms)[0m [1m[35mCREATE INDEX "index_billing_plus_on_department_id" ON "billing_plus" ("department_id")[0m
|
11521
|
+
[1m[35m (73.2ms)[0m [1m[35mCREATE INDEX "index_billing_plus_on_tax_group_id" ON "billing_plus" ("tax_group_id")[0m
|
11522
|
+
[1m[35m (73.7ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_profiles"[0m
|
11523
|
+
[1m[35m (73.8ms)[0m [1m[35mCREATE TABLE "billing_profiles" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime, "updated_at" datetime)[0m
|
11524
|
+
[1m[35m (114.8ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_pt_fp_mappings"[0m
|
11525
|
+
[1m[35m (82.2ms)[0m [1m[35mCREATE TABLE "billing_pt_fp_mappings" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "payment_type_id" integer, "extface_driver_id" integer, "mapping" integer, "created_at" datetime, "updated_at" datetime)[0m
|
11526
|
+
[1m[35m (65.2ms)[0m [1m[35mCREATE INDEX "index_billing_pt_fp_mappings_on_extface_driver_id" ON "billing_pt_fp_mappings" ("extface_driver_id")[0m
|
11527
|
+
[1m[35m (64.9ms)[0m [1m[35mCREATE INDEX "index_billing_pt_fp_mappings_on_payment_type_id" ON "billing_pt_fp_mappings" ("payment_type_id")[0m
|
11528
|
+
[1m[35m (65.3ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_receipt_configs"[0m
|
11529
|
+
[1m[35m (73.7ms)[0m [1m[35mCREATE TABLE "billing_receipt_configs" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "master_id" integer, "type" varchar, "name" varchar, "discount_text" varchar, "surcharge_text" varchar, "sound_signal" boolean, "open_cash_drawer" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "paper_cut" boolean, "custom_commands" boolean, "custom_commands_text" varchar)[0m
|
11530
|
+
[1m[35m (65.3ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_reports"[0m
|
11531
|
+
[1m[35m (65.2ms)[0m [1m[35mCREATE TABLE "billing_reports" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "master_id" integer, "origin_id" integer, "payments_sum_cents" integer DEFAULT 0 NOT NULL, "payments_sum_currency" varchar DEFAULT 'USD' NOT NULL, "payments_cash_cents" integer DEFAULT 0 NOT NULL, "payments_cash_currency" varchar DEFAULT 'USD' NOT NULL, "payments_fiscal_cents" integer DEFAULT 0 NOT NULL, "payments_fiscal_currency" varchar DEFAULT 'USD' NOT NULL, "note" text, "type" varchar, "created_at" datetime, "updated_at" datetime, "extface_job_id" integer, "f_period_from" date, "f_period_to" date, "zeroing" boolean, "f_operation" varchar, "f_amount_cents" integer DEFAULT 0 NOT NULL, "f_amount_currency" varchar DEFAULT 'USD' NOT NULL, "deleted_at" datetime)[0m
|
11532
|
+
[1m[35m (65.1ms)[0m [1m[35mCREATE INDEX "index_billing_reports_on_origin_id" ON "billing_reports" ("origin_id")[0m
|
11533
|
+
[1m[35m (139.5ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_resources"[0m
|
11534
|
+
[1m[35m (65.6ms)[0m [1m[35mCREATE TABLE "billing_resources" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "master_id" integer, "name" varchar, "properties" text, "banned" boolean, "type" varchar, "created_at" datetime, "updated_at" datetime, "deleted_at" datetime)[0m
|
11535
|
+
[1m[35m (65.4ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_tax_groups"[0m
|
11536
|
+
[1m[35m (65.4ms)[0m [1m[35mCREATE TABLE "billing_tax_groups" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime, "updated_at" datetime, "master_id" integer, "number" integer, "percent_ratio" decimal(6,3), "banned" boolean, "type" varchar, "deleted_at" datetime)[0m
|
11537
|
+
[1m[35m (65.4ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_tg_fp_mappings"[0m
|
11538
|
+
[1m[35m (65.7ms)[0m [1m[35mCREATE TABLE "billing_tg_fp_mappings" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "tax_group_id" integer, "extface_driver_id" integer, "mapping" integer, "created_at" datetime, "updated_at" datetime)[0m
|
11539
|
+
[1m[35m (65.2ms)[0m [1m[35mCREATE INDEX "index_billing_tg_fp_mappings_on_extface_driver_id" ON "billing_tg_fp_mappings" ("extface_driver_id")[0m
|
11540
|
+
[1m[35m (65.0ms)[0m [1m[35mCREATE INDEX "index_billing_tg_fp_mappings_on_tax_group_id" ON "billing_tg_fp_mappings" ("tax_group_id")[0m
|
11541
|
+
[1m[35m (65.3ms)[0m [1m[35mDROP TABLE IF EXISTS "billing_versions"[0m
|
11542
|
+
[1m[35m (57.6ms)[0m [1m[35mCREATE TABLE "billing_versions" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "item_type" varchar NOT NULL, "item_id" integer NOT NULL, "event" varchar NOT NULL, "whodunnit" varchar, "object" text, "created_at" datetime, "ip" varchar, "user_agent" varchar, "object_changes" text, "master_id" integer, "master_type" varchar)[0m
|
11543
|
+
[1m[35m (104.7ms)[0m [1m[35mCREATE INDEX "index_billing_versions_on_item_type_and_item_id" ON "billing_versions" ("item_type", "item_id")[0m
|
11544
|
+
[1m[35m (65.6ms)[0m [1m[35mDROP TABLE IF EXISTS "profiles"[0m
|
11545
|
+
[1m[35m (81.5ms)[0m [1m[35mCREATE TABLE "profiles" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)[0m
|
11546
|
+
[1m[35m (0.6ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
11547
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
11548
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
11549
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: billing
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Vangelov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-11-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -282,7 +282,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
282
282
|
version: '0'
|
283
283
|
requirements: []
|
284
284
|
rubyforge_project:
|
285
|
-
rubygems_version: 2.
|
285
|
+
rubygems_version: 2.6.14
|
286
286
|
signing_key:
|
287
287
|
specification_version: 4
|
288
288
|
summary: Billing for Rails 4 app
|