update
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
#Form object to use during the installation process - will handle creation of shop model into db after verification from the cloud
|
#Form object to use during the installation process - will handle creation of shop model into db after verification from the cloud
|
||||||
#provising service through license verification
|
#provising service through license verification
|
||||||
|
|
||||||
class ShopForm < ActiveModel
|
# class ShopForm < ActiveModel
|
||||||
:attr_accessor :logo, :name, :address, :township, :city, :state, :country, :license, :base_currency, :password, :password_confirmation
|
# # attr_accessor :logo, :name, :address, :township, :city, :state, :country, :license, :base_currency, :password, :password_confirmation
|
||||||
|
#
|
||||||
end
|
# end
|
||||||
|
|||||||
@@ -115,12 +115,10 @@ class ReceiptBillPdf < Prawn::Document
|
|||||||
y_position = cursor
|
y_position = cursor
|
||||||
|
|
||||||
pad_top(15) {
|
pad_top(15) {
|
||||||
# @item_width.to_i + @half_qty.to_i
|
|
||||||
text_box "#{product_name}", :at =>[0,y_position], :width => self.item_width, :height =>self.item_height, :overflow => :shrink_to_fix, :size => self.item_font_size, :overflow => :shrink_to_fix
|
text_box "#{product_name}", :at =>[0,y_position], :width => self.item_width, :height =>self.item_height, :overflow => :shrink_to_fix, :size => self.item_font_size, :overflow => :shrink_to_fix
|
||||||
text_box "#{price}", :at =>[self.item_width,y_position], :width => self.price_width, :height =>self.item_height, :size => self.item_font_size, :align => :right, :overflow => :shrink_to_fix
|
text_box "#{price}", :at =>[self.item_width,y_position], :width => self.price_width, :height =>self.item_height, :size => self.item_font_size, :align => :right, :overflow => :shrink_to_fix
|
||||||
text_box "#{qty.to_i}", :at =>[item_name_width,y_position], :width => self.qty_width, :height =>self.item_height, :size => self.item_font_size, :align => :right, :overflow => :shrink_to_fix
|
text_box "#{qty.to_i}", :at =>[item_name_width,y_position], :width => self.qty_width, :height =>self.item_height, :size => self.item_font_size, :align => :right, :overflow => :shrink_to_fix
|
||||||
text_box "#{total_price}", :at =>[(item_name_width+2),y_position], :width =>self.total_width+2, :height =>self.item_height, :size => self.item_font_size, :align => :right, :overflow => :shrink_to_fix
|
text_box "#{total_price}", :at =>[(item_name_width+2),y_position], :width =>self.total_width+2, :height =>self.item_height, :size => self.item_font_size, :align => :right, :overflow => :shrink_to_fix
|
||||||
|
|
||||||
}
|
}
|
||||||
move_down 3
|
move_down 3
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
class MenuReport < Compendium::Report
|
# class MenuReport < Compendium::Report
|
||||||
query :list, collect: :active_record do |params|
|
# query :list, collect: :active_record do |params|
|
||||||
Menu.all
|
# Menu.all
|
||||||
end
|
# end
|
||||||
end
|
# end
|
||||||
|
|||||||
@@ -10,14 +10,14 @@
|
|||||||
<nav class="pagination">
|
<nav class="pagination">
|
||||||
<%= first_page_tag unless current_page.first? %>
|
<%= first_page_tag unless current_page.first? %>
|
||||||
<%= prev_page_tag unless current_page.first? %>
|
<%= prev_page_tag unless current_page.first? %>
|
||||||
<% each_page do |page| -%>
|
<% each_page do |page| %>
|
||||||
<% if page.left_outer? || page.right_outer? || page.inside_window? -%>
|
<% if page.left_outer? || page.right_outer? || page.inside_window? %>
|
||||||
<%= page_tag page %>
|
<%= page_tag page %>
|
||||||
<% elsif !page.was_truncated? -%>
|
<% elsif !page.was_truncated? %>
|
||||||
<%= gap_tag %>
|
<%= gap_tag %>
|
||||||
<% end -%>
|
<% end %>
|
||||||
<% end -%>
|
<% end %>
|
||||||
<%= next_page_tag unless current_page.last? %>
|
<%= next_page_tag unless current_page.last? %>
|
||||||
<%= last_page_tag unless current_page.last? %>
|
<%= last_page_tag unless current_page.last? %>
|
||||||
</nav>
|
</nav>
|
||||||
<% end -%>
|
<% end %>
|
||||||
|
|||||||
Reference in New Issue
Block a user