remove validate brand name and check jade mobile
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
class PrintSetting < ApplicationRecord
|
class PrintSetting < ApplicationRecord
|
||||||
# validations
|
# validations
|
||||||
validates_presence_of :name, :unique_code, :printer_name, :brand_name, :api_settings, :page_width, :page_height, :print_copies, :header_font_size, :item_font_size
|
validates_presence_of :name, :unique_code, :printer_name, :api_settings, :page_width, :page_height, :print_copies, :header_font_size, :item_font_size
|
||||||
|
|
||||||
def self.get_precision_delimiter
|
def self.get_precision_delimiter
|
||||||
PrintSetting.find_by_unique_code("ReceiptBillPdf")
|
PrintSetting.find_by_unique_code("ReceiptBillPdf")
|
||||||
|
|||||||
@@ -140,9 +140,7 @@
|
|||||||
<script>
|
<script>
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
var webview = <%= @webview %>;
|
var webview = <%= @webview %>;
|
||||||
if(webview){
|
|
||||||
code2lab.checkMobile(webview); //js func: for mobile login
|
|
||||||
}
|
|
||||||
showHideNavbar(webview,"index");
|
showHideNavbar(webview,"index");
|
||||||
|
|
||||||
$(".tables").on('click', function(){
|
$(".tables").on('click', function(){
|
||||||
|
|||||||
Reference in New Issue
Block a user