Skip to content

Commit

Permalink
Improved: detail of user counted in state and updated pageSize for fe…
Browse files Browse the repository at this point in the history
…tching counts
  • Loading branch information
amansinghbais committed Oct 11, 2024
1 parent d50c4cd commit d43aaf2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/store/modules/count/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const actions: ActionTree<CountState, RootState> = {

const params = {
...payload,
pageSize: 100
pageSize: 200
}

if(state.query.facilityIds.length) {
Expand Down
6 changes: 5 additions & 1 deletion src/views/CountDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,11 @@ async function saveCount() {
product.value.isRecounting = false;
const items = JSON.parse(JSON.stringify(itemsList.value))
items.map((item) => {
if(item.importItemSeqId === product.value?.importItemSeqId) item.quantity = product.value.quantity
if(item.importItemSeqId === product.value?.importItemSeqId) {
item.quantity = product.value.quantity
item.countedByGroupName = userProfile.value.userFullName
item.countedByUserLoginId = userProfile.value.username
}
})
await store.dispatch('count/updateCycleCountItems', items);
await store.dispatch('product/currentProduct', product.value);
Expand Down

0 comments on commit d43aaf2

Please sign in to comment.