fix custom field issue and report issues

This commit is contained in:
radhika587
2021-12-06 12:51:31 +00:00
committed by Mohit Panjwani
parent 7b6a88ad4e
commit 603bf637a7
7 changed files with 16 additions and 8 deletions

View File

@ -64,7 +64,7 @@
</template>
<script setup>
import { computed, ref, watch } from 'vue'
import { computed, ref, watch, onMounted } from 'vue'
import { useCustomFieldStore } from '@/scripts/stores/custom-field'
const props = defineProps({
@ -121,6 +121,10 @@ watch(
}
)
onMounted(() => {
fetchFields()
})
const value = computed({
get: () => props.modelValue,
set: (value) => {
@ -128,6 +132,10 @@ const value = computed({
},
})
async function fetchFields() {
await customFieldsStore.fetchCustomFields()
}
async function getFields() {
fieldList.value = []
if (props.fields && props.fields.length > 0) {

View File

@ -6,7 +6,7 @@
body {
font-family: "DejaVu Sans";
}
table {
border-collapse: collapse;
}
@ -168,7 +168,7 @@
</td>
<td>
<p class="sales-amount">
{!! format_money_pdf($invoice->total) !!}
{!! format_money_pdf($invoice->base_total) !!}
</p>
</td>
</tr>