add font size for Total & Net Sales in close cashier and change closed time in transacctions
This commit is contained in:
@@ -227,10 +227,10 @@ class CloseCashierPdf < Prawn::Document
|
||||
|
||||
y_position = cursor
|
||||
bounding_box([0,y_position], :width =>self.item_description_width, :height => 20) do
|
||||
text "Total :", :style => :bold, :size => self.item_font_size, :align => :right
|
||||
text "Total :", :style => :bold, :size => self.header_font_size, :align => :right
|
||||
end
|
||||
bounding_box([self.item_description_width,y_position], :width =>self.price_width, :height => 20) do
|
||||
text "#{@total_payment.round(2)}", :style => :bold, :size => self.item_font_size, :align => :right
|
||||
text "#{@total_payment.round(2)}", :style => :bold, :size => self.header_font_size, :align => :right
|
||||
end
|
||||
|
||||
# end other payment details
|
||||
@@ -259,10 +259,10 @@ class CloseCashierPdf < Prawn::Document
|
||||
|
||||
y_position = cursor
|
||||
bounding_box([0,y_position], :width =>self.item_description_width, :height => 20) do
|
||||
text "Net Sales :", :style => :bold, :size => self.item_font_size, :align => :right
|
||||
text "Net Sales :", :style => :bold, :size => self.header_font_size, :align => :right
|
||||
end
|
||||
bounding_box([self.item_description_width,y_position], :width =>self.price_width, :height => 20) do
|
||||
text "#{shift_sale.nett_sales}", :style => :bold , :size => self.item_font_size, :align => :right
|
||||
text "#{shift_sale.nett_sales}", :style => :bold , :size => self.header_font_size, :align => :right
|
||||
end
|
||||
#end for service charges and commercial tax
|
||||
#COMMENTED FOR NO NEED AND NOT CORRECT WHEN OTHER CHARGES
|
||||
|
||||
@@ -70,7 +70,7 @@
|
||||
<td><%=shift_sale.cashier_terminal.name%></td>
|
||||
<td><%= shift_sale.shift_started_at.utc.getlocal.strftime('%d-%m-%Y %I:%M %p') %>
|
||||
</td>
|
||||
<td><%= shift_sale.shift_started_at.utc.getlocal.strftime('%d-%m-%Y %I:%M %p') rescue '-' %>
|
||||
<td><%= shift_sale.shift_closed_at.utc.getlocal.strftime('%d-%m-%Y %I:%M %p') rescue '-' %>
|
||||
</td>
|
||||
<td><%=shift_sale.opening_balance %></td>
|
||||
<td><%=shift_sale.closing_balance %></td>
|
||||
|
||||
Reference in New Issue
Block a user