update to last store

This commit is contained in:
Naz 2026-03-12 16:06:15 +08:00
parent 45afdec610
commit f943c9dc5d

View File

@ -1125,8 +1125,8 @@
const formData = { const formData = {
...(this.selectedAction === 'user' ? { ...(this.selectedAction === 'user' ? {
lastStore: null, lastStore: this.currentUser.store,
lastUser: this.currentUser.id, lastUser: this.currentUser.id,
toOther: 'On Delivery', toOther: 'On Delivery',
SendDate: this.assigndate, SendDate: this.assigndate,
toUser: this.selectedUser, toUser: this.selectedUser,
@ -1146,8 +1146,8 @@
ConsignmentNote: this.document} : {}), ConsignmentNote: this.document} : {}),
...(this.selectedAction === 'store' ? { ...(this.selectedAction === 'store' ? {
lastStore: this.currentUser.store, lastStore: this.currentUser.store,
lastUser: null, lastUser: this.currentUser.id,
toOther: 'On Delivery', toOther: 'On Delivery',
SendDate: this.assigndate, SendDate: this.assigndate,
toStore: this.selectedStore, toStore: this.selectedStore,
@ -1248,12 +1248,12 @@
receiveToStation = this.thisItem.toStation; receiveToStation = this.thisItem.toStation;
} }
else if (this.thisItem.toStore) { else if (this.thisItem.toStore) {
receiveToUser = null; receiveToUser = this.currentUser.id;
receiveToStore = this.currentUser.store; receiveToStore = this.currentUser.store;
} }
else if (this.thisItem.toUser) { else if (this.thisItem.toUser) {
receiveToUser = this.currentUser.id; receiveToUser = this.currentUser.id;
receiveToStore = null; receiveToStore = this.currentUser.store;
} }
const formData = { const formData = {