m3 Security Fixes
This commit is contained in:
@@ -29,21 +29,21 @@ Solon Sentinel Portal - Orders On Hold Summary
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="card-body">
|
||||
|
||||
|
||||
<form>
|
||||
@csrf
|
||||
|
||||
@csrf
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-sm-10">
|
||||
<label for="inputWhs" class="col-sm-2 col-form-label">Please choose Selling warehouse subset</label>
|
||||
@foreach($whs_list as $key => $val)
|
||||
<input value="{{ $val->SLSRWH }}" id="whs" name="whs[]" type="checkbox" aria-describedby="textHelpBlock"
|
||||
<input value="{{ $val->SLSRWH }}" id="whs" name="whs[]" type="checkbox" aria-describedby="textHelpBlock"
|
||||
@if(array_key_exists($val->SLSRWH, $checked_whs)) checked @endif
|
||||
> {{ $val->SLSRWH }}
|
||||
> {{ $val->SLSRWH }}
|
||||
@endforeach
|
||||
<button name="submit" type="submit" class="btn btn-primary">Submit</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
@@ -109,7 +109,7 @@ Solon Sentinel Portal - Orders On Hold Summary
|
||||
"columnDefs": [{ targets: [2, 3, 4, 5], className: 'dt-body-right' }, { targets: [1], className: 'dt-body-center' }],
|
||||
"footerCallback": function ( row, data, start, end, display ) {
|
||||
var api = this.api(), data;
|
||||
|
||||
|
||||
// converting to interger to find total
|
||||
var intVal = function ( i ) {
|
||||
return typeof i === 'string' ?
|
||||
@@ -117,8 +117,8 @@ Solon Sentinel Portal - Orders On Hold Summary
|
||||
typeof i === 'number' ?
|
||||
i : 0;
|
||||
};
|
||||
|
||||
// computing column Total of the complete result
|
||||
|
||||
// computing column Total of the complete result
|
||||
var orderTotal = api
|
||||
.column( 1 )
|
||||
.data()
|
||||
@@ -132,30 +132,30 @@ Solon Sentinel Portal - Orders On Hold Summary
|
||||
.reduce( function (a, b) {
|
||||
return intVal(a) + intVal(b);
|
||||
}, 0 ).toFixed(2);
|
||||
|
||||
|
||||
var whtotal = api
|
||||
.column( 3 )
|
||||
.data()
|
||||
.reduce( function (a, b) {
|
||||
return intVal(a) + intVal(b);
|
||||
}, 0 ).toFixed(2);
|
||||
|
||||
|
||||
var whtotalReserved = api
|
||||
.column( 4 )
|
||||
.data()
|
||||
.reduce( function (a, b) {
|
||||
return intVal(a) + intVal(b);
|
||||
}, 0 ).toFixed(2);
|
||||
|
||||
|
||||
var whtotalOnpick = api
|
||||
.column( 5 )
|
||||
.data()
|
||||
.reduce( function (a, b) {
|
||||
return intVal(a) + intVal(b);
|
||||
}, 0 ).toFixed(2);
|
||||
|
||||
|
||||
// Update footer by showing the total with the reference of the column index
|
||||
|
||||
|
||||
// Update footer by showing the total with the reference of the column index
|
||||
$( api.column( 0 ).footer() ).html('Total');
|
||||
$( api.column( 1 ).footer() ).html(Intl.NumberFormat('en-US').format(orderTotal));
|
||||
$( api.column( 2 ).footer() ).html('$ '+Intl.NumberFormat('en-US').format(totalTotal));
|
||||
|
||||
Reference in New Issue
Block a user