Browse Source

Commandes > Référence annuelle : supprimer fonctionnalité

feature/rotating_product
Guillaume Bourgeois 5 months ago
parent
commit
aca03cb146
2 changed files with 6 additions and 3 deletions
  1. +5
    -2
      backend/views/producer/update.php
  2. +1
    -1
      backend/web/js/backend.js

+ 5
- 2
backend/views/producer/update.php View File

<?= $form->field($model, 'option_weeks_distributions_activated_in_advance') <?= $form->field($model, 'option_weeks_distributions_activated_in_advance')
->dropDownList($choicesWeeksDistributionsActivatedInAdvanceArray) ->dropDownList($choicesWeeksDistributionsActivatedInAdvanceArray)
->hint("Attention, les premières semaines doivent être activées manuellement."); ?> ->hint("Attention, les premières semaines doivent être activées manuellement."); ?>
<?= $form->field($model, 'option_order_reference_type')
<?php
// Fonctionnalité désactivée car elle crée des bugs
// @TODO : à réactiver quand tous les problèmes seront résolus
/*$form->field($model, 'option_order_reference_type')
->dropDownList([ ->dropDownList([
Producer::ORDER_REFERENCE_TYPE_NONE => '--', Producer::ORDER_REFERENCE_TYPE_NONE => '--',
Producer::ORDER_REFERENCE_TYPE_YEARLY => 'Annuelle', Producer::ORDER_REFERENCE_TYPE_YEARLY => 'Annuelle',
], []); ?>
], []);*/ ?>
<?= $form->field($model, 'option_behavior_cancel_order') <?= $form->field($model, 'option_behavior_cancel_order')
->dropDownList([ ->dropDownList([
Producer::BEHAVIOR_DELETE_ORDER_DELETE => 'Suppression de la commande', Producer::BEHAVIOR_DELETE_ORDER_DELETE => 'Suppression de la commande',

+ 1
- 1
backend/web/js/backend.js View File

taxRateSelected = 0; taxRateSelected = 0;
} }
var priceWithTax = $('#product-price-with-tax').val(); var priceWithTax = $('#product-price-with-tax').val();
if (priceWithTax) { if (priceWithTax) {
$('#product-price').val(getPrice(priceWithTax, taxRateSelected)); $('#product-price').val(getPrice(priceWithTax, taxRateSelected));
// formattage // formattage

Loading…
Cancel
Save