瀏覽代碼

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

'user_producer' => $userProducer, 'user_producer' => $userProducer,
'point_sale' => $pointSale, 'point_sale' => $pointSale,
]), ]),
'price' => $product->getPrice([
'user' => $document->user,
'user_producer' => $userProducer,
'point_sale' => $pointSale,
]),
'wording_unit' => $product->wording_unit, 'wording_unit' => $product->wording_unit,
'tax_rate' => $product->taxRate->value 'tax_rate' => $product->taxRate->value
]); ]);

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

Ajouter un produit Ajouter un produit
</div> </div>
<div class="panel-body"> <div class="panel-body">
<div class="col-md-3">
<div class="col-md-6">
<strong>Produit</strong> <strong>Produit</strong>
<select class="form-control" v-model="productAddId" <select class="form-control" v-model="productAddId"
@change="changeProductAdd"> @change="changeProductAdd">
class="glyphicon glyphicon-euro"></span> <span v-if="taxRateProducer != 0">HT</span></span> class="glyphicon glyphicon-euro"></span> <span v-if="taxRateProducer != 0">HT</span></span>
</div> </div>
</div> </div>
<div class="col-md-3">
<div class="col-md-3 total">
<strong>Quantité</strong> <strong>Quantité</strong>
<div class="input-group input-group-quantity"> <div class="input-group input-group-quantity">
<span class="input-group-btn"> <span class="input-group-btn">
@click="changeQuantityProductAdd(1)">+</button> @click="changeQuantityProductAdd(1)">+</button>
</span> </span>
</div> </div>
<button class="btn btn-primary" value="Ajouter"
@click="submitProductAdd">Ajouter
</button>
<div class="clr"></div>
</div> </div>
<div class="col-md-3 total">
<!--<div class="col-md-3 total">
<strong>Total</strong> <strong>Total</strong>
<div class="input-group"> <div class="input-group">
<input type="text" class="form-control input-price" readonly <input type="text" class="form-control input-price" readonly
<span class="input-group-addon"><span <span class="input-group-addon"><span
class="glyphicon glyphicon-euro"></span> <span v-if="taxRateProducer != 0">HT</span></span> class="glyphicon glyphicon-euro"></span> <span v-if="taxRateProducer != 0">HT</span></span>
</div> </div>
<button class="btn btn-primary" value="Ajouter"
@click="submitProductAdd">Ajouter
</button>
<div class="clr"></div>
</div>
</div>-->
</template> </template>
<div class="clr"></div> <div class="clr"></div>
</div> </div>

Loading…
取消
儲存