Optimized code by adding the previous missing validations

This commit is contained in:
vishalsingh.qlo325
2024-01-31 11:19:03 +05:30
parent a614aee387
commit 4b9fc9987b
3 changed files with 676 additions and 597 deletions

View File

@@ -171,12 +171,12 @@
</div>
</div>
<div class="form-group" id="csv_file_selected" style="display: none;">
<div class="alert alert-success clearfix">
<div class="alert alert-success clearfix" style="display:flex; align-items:center;">
<input type="hidden" value="{$csv_selected}" name="csv" id="csv_selected_value" />
<div class="col-lg-8">
<div class="col-xs-8">
<span id="csv_selected_filename">{$csv_selected|escape:'html':'UTF-8'}</span>
</div>
<div class="col-lg-4">
<div class="col-xs-4">
<div class="btn-group pull-right">
<button id="file-remove-button" type="button" class="btn btn-default">
<i class="icon-refresh"></i>
@@ -339,7 +339,7 @@
{l s='Sample Customers file'}
</a>
<a class="list-group-item _blank" href="../docs/csv_import/bookings_import.csv">
{l s='Sample Orders file'}
{l s='Sample Bookings file'}
</a>
{* <a class="list-group-item _blank" href="../docs/csv_import/addresses_import.csv">
{l s='Sample Addresses file'}

View File

@@ -430,6 +430,7 @@ abstract class PaymentModuleCore extends Module
if ($order_status->logable
&& number_format($cart_total_paid, _PS_PRICE_COMPUTE_PRECISION_) != number_format($amount_paid, _PS_PRICE_COMPUTE_PRECISION_)
&& $this->name != 'wsorder'
&& $this->name != 'csvbooking'
) {
// if customer is paying full payment amount
$id_order_state = Configuration::get('PS_OS_ERROR');

File diff suppressed because it is too large Load Diff