mirror of
https://github.com/frappe/books.git
synced 2026-08-24 10:04:45 -05:00
fix: reload window when submitting closing pos shift
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user