Merge branch 'master' of bitbucket.org:code2lab/sxrestaurant into crm
This commit is contained in:
@@ -4,7 +4,7 @@ class OrderItemPdf < Prawn::Document
|
||||
def initialize(print_settings,order_item, print_status, options, alt_name)
|
||||
self.page_width = 180
|
||||
self.page_height = 1450
|
||||
self.margin = 5
|
||||
self.margin = 0
|
||||
self.price_width = 40 # No Need for item
|
||||
self.qty_width = 30
|
||||
self.total_width = 40 # No Need for item
|
||||
|
||||
@@ -4,7 +4,7 @@ class OrderSummaryPdf < Prawn::Document
|
||||
def initialize(print_settings,order, print_status, order_items = nil,alt_name)
|
||||
self.page_width = 180
|
||||
self.page_height = 1450
|
||||
self.margin = 5
|
||||
self.margin = 0
|
||||
self.price_width = 40 # No Need for item
|
||||
self.qty_width = 30
|
||||
self.total_width = 40 # No Need for item
|
||||
|
||||
@@ -320,6 +320,9 @@ $(document).on('click', '.cashier_number', function(event){
|
||||
});
|
||||
|
||||
$( document ).ready(function() {
|
||||
// Disable click event cash to prevent
|
||||
$(".payment .cash-color").off('click');
|
||||
|
||||
$('#credit_payment').click(function() {
|
||||
var sale_id = $('#sale_id').text();
|
||||
window.location.href = '/origami/sale/'+ sale_id + "/payment/credit_payment"
|
||||
|
||||
Reference in New Issue
Block a user