fix: reload window when submitting closing pos shift

This commit is contained in:
AbleKSaju
2025-05-08 17:43:21 +05:30
parent b3a8d486e9
commit 355562b370
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -233,6 +233,7 @@ export default defineComponent({
await this.fyo.singles.POSSettings?.setAndSync('isShiftOpen', false);
this.$emit('toggleModal', 'ShiftClose');
ipc.reloadWindow();
} catch (error) {
return showToast({
type: 'error',
+1
View File
@@ -629,6 +629,7 @@ export default defineComponent({
},
async createTransaction(shouldPrint = false, isPay = false) {
try {
this.sinvDoc.date = new Date();
await this.validate();
await this.submitSinvDoc();