mirror of
https://github.com/frappe/books.git
synced 2025-01-23 23:28:24 +00:00
fix: hacky way to update status badge
This commit is contained in:
parent
f56789b579
commit
d5b881c98f
@ -216,17 +216,24 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
chstatus: false,
|
||||||
doc: null,
|
doc: null,
|
||||||
status: null,
|
|
||||||
color: null,
|
color: null,
|
||||||
printSettings: null,
|
printSettings: null,
|
||||||
companyName: null,
|
companyName: null,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
updated() {
|
||||||
|
this.chstatus = !this.chstatus
|
||||||
|
},
|
||||||
computed: {
|
computed: {
|
||||||
address() {
|
address() {
|
||||||
return this.printSettings && this.printSettings.getLink('address');
|
return this.printSettings && this.printSettings.getLink('address');
|
||||||
},
|
},
|
||||||
|
status() {
|
||||||
|
this.chstatus
|
||||||
|
return getInvoiceStatus(this.doc);
|
||||||
|
},
|
||||||
},
|
},
|
||||||
async mounted() {
|
async mounted() {
|
||||||
try {
|
try {
|
||||||
@ -245,15 +252,11 @@ export default {
|
|||||||
if (query.values && query.schemaName === this.schemaName) {
|
if (query.values && query.schemaName === this.schemaName) {
|
||||||
this.doc.set(this.$router.currentRoute.value.query.values);
|
this.doc.set(this.$router.currentRoute.value.query.values);
|
||||||
}
|
}
|
||||||
this.status = getInvoiceStatus(this.doc);
|
|
||||||
|
|
||||||
if (fyo.store.isDevelopment) {
|
if (fyo.store.isDevelopment) {
|
||||||
window.inv = this;
|
window.inv = this;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
updated() {
|
|
||||||
this.status = getInvoiceStatus(this.doc);
|
|
||||||
},
|
|
||||||
methods: {
|
methods: {
|
||||||
routeTo,
|
routeTo,
|
||||||
actions() {
|
actions() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user