2
0
mirror of https://github.com/frappe/books.git synced 2025-01-23 15:18:24 +00:00

fix: hacky way to update status badge

This commit is contained in:
18alantom 2022-06-13 18:52:47 +05:30
parent f56789b579
commit d5b881c98f

View File

@ -216,17 +216,24 @@ export default {
},
data() {
return {
chstatus: false,
doc: null,
status: null,
color: null,
printSettings: null,
companyName: null,
};
},
updated() {
this.chstatus = !this.chstatus
},
computed: {
address() {
return this.printSettings && this.printSettings.getLink('address');
},
status() {
this.chstatus
return getInvoiceStatus(this.doc);
},
},
async mounted() {
try {
@ -245,15 +252,11 @@ export default {
if (query.values && query.schemaName === this.schemaName) {
this.doc.set(this.$router.currentRoute.value.query.values);
}
this.status = getInvoiceStatus(this.doc);
if (fyo.store.isDevelopment) {
window.inv = this;
}
},
updated() {
this.status = getInvoiceStatus(this.doc);
},
methods: {
routeTo,
actions() {