fix purchase order input bug

This commit is contained in:
omair saleh
2021-12-19 19:35:10 +08:00
parent e85379f58e
commit 37479a1324
2 changed files with 5 additions and 1 deletions
@@ -69,7 +69,7 @@
</div>
<div class="row" v-for="(product, index) in products">
<div class="col p-b-10 p-t-10 b-b b-grey">
<purchase-order-item-form-component :data="product" :index="index" :currency="data.fixed_currency.short_code" :section="section" @change="updateProduct($event, index)" v-on:remove="removeProduct(index)"></purchase-order-item-form-component>
<purchase-order-item-form-component :data="product" :index="index" :currency="data.fixed_currency.short_code" :editable="!submitted" :section="section" @change="updateProduct($event, index)" v-on:remove="removeProduct(index)"></purchase-order-item-form-component>
</div>
</div>
</div>
@@ -36,6 +36,10 @@
import formHandler from '../../../general/mixins/formHandler';
export default {
props: {
editable: {
type: Boolean,
default: false
},
currency:{
type: String,
required: true