瀏覽代碼

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

feature/souke
Guillaume Bourgeois 1 年之前
父節點
當前提交
bc9f243743
共有 2 個文件被更改,包括 3 次插入1 次删除
  1. +1
    -0
      backend/controllers/DistributionController.php
  2. +2
    -1
      backend/views/distribution/index.php

+ 1
- 0
backend/controllers/DistributionController.php 查看文件

@@ -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 查看文件

@@ -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>

Loading…
取消
儲存