Преглед на файлове

[Administration] Distributions : correctif affichage "Limitation accessoires" dans les quantités maximum

feature/rotating_product
Guillaume Bourgeois преди 4 месеца
родител
ревизия
eb02ba0430
променени са 2 файла, в които са добавени 3 реда и са изтрити 2 реда
  1. +2
    -1
      backend/controllers/DistributionController.php
  2. +1
    -1
      backend/views/distribution/index.php

+ 2
- 1
backend/controllers/DistributionController.php Целия файл

@@ -257,7 +257,8 @@ class DistributionController extends BackendController
return [
'credit' => $producer->credit,
'tiller' => $producer->tiller,
'option_distribution_export_orders_grid_pdf' => $producer->option_distribution_export_orders_grid_pdf
'option_distribution_export_orders_grid_pdf' => $producer->option_distribution_export_orders_grid_pdf,
'feature_product_accessory_enabled' => $this->getFeatureModule()->getChecker()->isEnabled(Feature::ALIAS_PRODUCT_ACCESSORY)
];
}


+ 1
- 1
backend/views/distribution/index.php Целия файл

@@ -161,7 +161,7 @@ $this->setPageTitle('Distributions') ;
<input type="text" class="form-control quantity-max" placeholder="&infin;" :data-id-product="product.id" v-model="getProductDistribution(product).quantity_max" @keyup="productQuantityMaxChange" />
<span class="input-group-addon">{{ labelUnitReference(product.unit) }}</span>
</div>
<div class="limit-quantity-accessories" v-if="!showLoading && product.quantity_max && (getProductDistribution(product).quantity_max > product.quantity_max || !getProductDistribution(product).quantity_max)">
<div class="limit-quantity-accessories" v-if="producer.feature_product_accessory_enabled && !showLoading && product.quantity_max && (getProductDistribution(product).quantity_max > product.quantity_max || !getProductDistribution(product).quantity_max)">
<span class="glyphicon glyphicon-warning-sign"></span> Limitation accessoires :
<strong>{{ product.quantity_max }} {{ labelUnitReference(product.unit) }}</strong>
</div>

Loading…
Отказ
Запис