toggle mmqr cancel amount in dailysale and filter in void sale

This commit is contained in:
Dev Team
2025-07-28 19:21:46 +06:30
parent cfa73532db
commit 0ba20f45b3
3 changed files with 32 additions and 14 deletions

View File

@@ -33,14 +33,17 @@
<select class="form-control select" name="shift_name" id="shift_name" style="height: 37px;">
</select>
</div> -->
<div class="form-group col-lg-3 col-md-3 col-sm-3 mbl-style">
<label class="font-20 mbl_lbl">Status</label>
<select class="form-control select" name="void_filter" id="void_filter" style="height: 37px;">
<option value="" <%= 'selected' if params[:void_filter].blank? %>>ALL</option>
<option value="void" <%= 'selected' if params[:void_filter] == 'void' %>>Void</option>
<option value="cancelled_mmqr" <%= 'selected' if params[:void_filter] == 'cancelled_mmqr' %>>Cancelled Payment (MMQR)</option>
</select>
</div>
<% mmqr = PaymentMethodSetting.find_by(payment_method: 'MMQR') %>
<% if mmqr.present? && mmqr.is_active %>
<div class="form-group col-lg-3 col-md-3 col-sm-3 mbl-style">
<label class="font-20 mbl_lbl">Status</label>
<select class="form-control select" name="void_filter" id="void_filter" style="height: 37px;">
<option value="" <%= 'selected' if params[:void_filter].blank? %>>ALL</option>
<option value="void" <%= 'selected' if params[:void_filter] == 'void' %>>Void</option>
<option value="cancelled_mmqr" <%= 'selected' if params[:void_filter] == 'cancelled_mmqr' %>>Cancelled Payment (MMQR)</option>
</select>
</div>
<% end %>
<div class=" col-lg-1 col-md-1 col-sm-1 margin-top-20 mbl-right-btn mbl-style">
<br>
<input type="submit" value="Generate Report" class='btn btn-primary'>