Pārlūkot izejas kodu

[Administration] Distribution > édition commande : mettre champs prix facturés en disabled si liés à une facture validée #1310

feature/souke
Guillaume Bourgeois pirms 1 gada
vecāks
revīzija
bc9f243743
2 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  1. +1
    -0
      backend/controllers/DistributionController.php
  2. +2
    -1
      backend/views/distribution/index.php

+ 1
- 0
backend/controllers/DistributionController.php Parādīt failu

@@ -382,6 +382,7 @@ class DistributionController extends BackendController
'paymentsArray' => $paymentArray,
'oneProductUnactivated' => $oneProductUnactivated,
'isLinkedToValidDocument' => $orderManager->isLinkedToValidDocument($order),
'isLinkedToValidInvoice' => $orderManager->isLinkedToValidInvoice($order),
'isCreditAutoPayment' => $orderManager->isCreditAutoPayment($order),
'isCreditContext' => $orderManager->isCreditContext($order),
'isPaid' => $orderManager->isOrderPaid($order),

+ 2
- 1
backend/views/distribution/index.php Parādīt failu

@@ -737,7 +737,8 @@ $this->setPageTitle('Distributions') ;
<div class="invoice-price" v-show="vatMode == 'all'" v-if="(order.id_invoice || order.id_delivery_note || order.id_quotation) && order.productOrder[product.id].quantity > 0">
<span class="label-invoice-price">Prix facturé</span><br />
<div class="input-group">
<input type="text" v-model="order.productOrder[product.id].invoice_price" class="form-control input-sm" :data-id-product="product.id" />
<input v-if="order.isLinkedToValidInvoice" type="text" v-model="order.productOrder[product.id].invoice_price" class="form-control input-sm" :data-id-product="product.id" disabled="disabled" title="La commande est liée à une facture validée, le prix facturé n'est donc plus modifiable" />
<input v-else type="text" v-model="order.productOrder[product.id].invoice_price" class="form-control input-sm" :data-id-product="product.id" />
<span class="input-group-addon" id="basic-addon2">€ HT</span>
</div>
</div>

Notiek ielāde…
Atcelt
Saglabāt