瀏覽代碼

[Backend] Documents : correctif prix produits add

refactoring
Guillaume 2 年之前
父節點
當前提交
79e5a3bfa4
共有 2 個檔案被更改,包括 13 行新增8 行删除
  1. +5
    -0
      backend/controllers/DocumentController.php
  2. +8
    -8
      backend/views/document/_form.php

+ 5
- 0
backend/controllers/DocumentController.php 查看文件

@@ -374,6 +374,11 @@ class DocumentController extends BackendController
'user_producer' => $userProducer,
'point_sale' => $pointSale,
]),
'price' => $product->getPrice([
'user' => $document->user,
'user_producer' => $userProducer,
'point_sale' => $pointSale,
]),
'wording_unit' => $product->wording_unit,
'tax_rate' => $product->taxRate->value
]);

+ 8
- 8
backend/views/document/_form.php 查看文件

@@ -178,7 +178,7 @@ use common\models\Producer;
Ajouter un produit
</div>
<div class="panel-body">
<div class="col-md-3">
<div class="col-md-6">
<strong>Produit</strong>
<select class="form-control" v-model="productAddId"
@change="changeProductAdd">
@@ -198,7 +198,7 @@ use common\models\Producer;
class="glyphicon glyphicon-euro"></span> <span v-if="taxRateProducer != 0">HT</span></span>
</div>
</div>
<div class="col-md-3">
<div class="col-md-3 total">
<strong>Quantité</strong>
<div class="input-group input-group-quantity">
<span class="input-group-btn">
@@ -214,8 +214,12 @@ use common\models\Producer;
@click="changeQuantityProductAdd(1)">+</button>
</span>
</div>
<button class="btn btn-primary" value="Ajouter"
@click="submitProductAdd">Ajouter
</button>
<div class="clr"></div>
</div>
<div class="col-md-3 total">
<!--<div class="col-md-3 total">
<strong>Total</strong>
<div class="input-group">
<input type="text" class="form-control input-price" readonly
@@ -223,11 +227,7 @@ use common\models\Producer;
<span class="input-group-addon"><span
class="glyphicon glyphicon-euro"></span> <span v-if="taxRateProducer != 0">HT</span></span>
</div>
<button class="btn btn-primary" value="Ajouter"
@click="submitProductAdd">Ajouter
</button>
<div class="clr"></div>
</div>
</div>-->
</template>
<div class="clr"></div>
</div>

Loading…
取消
儲存