default value receipt no detail customer filter
This commit is contained in:
@@ -1203,7 +1203,7 @@ end
|
|||||||
|
|
||||||
def self.get_shift_sales_by_receipt_no_detail(shift_sale_range, shift, from, to, payment_type, customer_filter)
|
def self.get_shift_sales_by_receipt_no_detail(shift_sale_range, shift, from, to, payment_type, customer_filter)
|
||||||
## => left join -> show all sales although no orders
|
## => left join -> show all sales although no orders
|
||||||
|
puts customer_filter
|
||||||
query = Sale.includes([:survey, :sale_payments])
|
query = Sale.includes([:survey, :sale_payments])
|
||||||
.select("sales.*, SUM(sale_payments.payment_amount) AS payments_for_credits_amount")
|
.select("sales.*, SUM(sale_payments.payment_amount) AS payments_for_credits_amount")
|
||||||
.select("dining_facilities.type AS table_type, dining_facilities.name AS table_name")
|
.select("dining_facilities.type AS table_type, dining_facilities.name AS table_name")
|
||||||
|
|||||||
@@ -19,6 +19,11 @@
|
|||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="col-lg-2 col-md-2 col-sm-2 mbl-style">
|
||||||
|
<label class="font-14"><%= t("views.right_panel.detail.customer_name") %></label>
|
||||||
|
<input type="text" placeholder="Customer name" class="form-control m-t-3" name="customer" value="<%= params[:customer] %>" id="customer_filter" style="height: 32px;">
|
||||||
|
</div>
|
||||||
|
|
||||||
<% if defined? @payment_methods %>
|
<% if defined? @payment_methods %>
|
||||||
<div class="col-lg-2 col-md-2 col-sm-2 mbl-style">
|
<div class="col-lg-2 col-md-2 col-sm-2 mbl-style">
|
||||||
<label class="font-14 mbl_lbl"><%= t("views.right_panel.detail.select_payments") %></label>
|
<label class="font-14 mbl_lbl"><%= t("views.right_panel.detail.select_payments") %></label>
|
||||||
@@ -31,11 +36,6 @@
|
|||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<div class="col-lg-2 col-md-2 col-sm-2 mbl-style">
|
|
||||||
<label class="font-14"><%= t("views.right_panel.detail.customer_name") %></label>
|
|
||||||
<input type="text" placeholder="Customer name" class="form-control m-t-3" name="customer" id="customer_filter" >
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="col-lg-2 col-md-2 col-sm-2 col-mbl-view mbl-style">
|
<div class="col-lg-2 col-md-2 col-sm-2 col-mbl-view mbl-style">
|
||||||
<!-- <label class="">Select Shift Period</label> -->
|
<!-- <label class="">Select Shift Period</label> -->
|
||||||
<label class="font-14 mbl_lbl"><%= t("views.right_panel.detail.from") %></label>
|
<label class="font-14 mbl_lbl"><%= t("views.right_panel.detail.from") %></label>
|
||||||
|
|||||||
Reference in New Issue
Block a user