receipt no and print pdf

This commit is contained in:
phyusin
2018-03-07 15:36:05 +06:30
parent d8256a93f6
commit aedd79376f
41 changed files with 252 additions and 85 deletions

View File

@@ -3,6 +3,9 @@ class CreateShops < ActiveRecord::Migration[5.1]
create_table :shops do |t|
t.string :logo
t.string :name, :null => false
t.string :shop_code, :null => false
t.string :client_name, :null => false
t.string :client_code, :null => false
t.string :address, :null => false
t.string :township, :null => false
t.string :city, :null => false

View File

@@ -6,7 +6,9 @@ class CreatePrintSettings < ActiveRecord::Migration[5.1]
t.string :template
t.string :font, :default => ""
t.string :printer_name, :null => false
t.string :api_settings
t.string :api_settings,
t.string :brand_name
t.string :type
t.decimal :page_width, :null => false, :default => 210
t.decimal :page_height, :null => false, :default => 1450
t.integer :print_copies, :null => false, :default => 1