Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stock Quantity incorrect bug #777

Open
Jace996 opened this issue Jan 13, 2025 · 2 comments
Open

Stock Quantity incorrect bug #777

Jace996 opened this issue Jan 13, 2025 · 2 comments

Comments

@Jace996
Copy link

Jace996 commented Jan 13, 2025

@ameir Good day,

i found 3 Pages show different quantity for 1 item.

Inventory Item Details (Correct quantity)
Screenshot 2025-01-14 at 5 08 34 AM

Inventory valuation (Incorrect quantity)
Screenshot 2025-01-14 at 5 09 38 AM

Item List (Incorrect quantity)
Screenshot 2025-01-14 at 5 10 06 AM

The Inventory Item Details page is showing quantity correctly. Others two is incorrect.
In addition, the quantity on hand in item list bugs can reproduce following steps below

  1. Go to create Sales or Purchase invoice
  2. Must add two inventory item above to the invoice. (single inventory item no issue)
  3. Go to edit created invoice
  4. No need change anything. Just click Edit and save it.
  5. Go to check item list.

I attached video for reference.

Screen.Recording.2025-01-14.at.5.25.06.AM.mov
Copy link

linear bot commented Jan 13, 2025

@tusada
Copy link

tusada commented Jan 16, 2025

I confirmed this bug too.
Beside the bug, my instance becomes irresponsive and crashed few seconds after editing the bill or invoice

KnexTimeoutError: Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?
bigcapital-server | at Client_MySQL.acquireConnection (/app/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/knex/lib/client.js:332:26)
...
bigcapital-server | at async PaginationQueryBuilder.execute (/app/node_modules/.pnpm/[email protected][email protected][email protected][email protected]_/node_modules/objection/lib/queryBuilder/QueryBuilder.js:446:22)
bigcapital-server | at async GetItems.getItems (/app/packages/server/build/index.js:97243:48)
bigcapital-server | at async ItemsController.getItemsList (/app/packages/server/build/index.js:8832:55)
bigcapital-server | KnexTimeoutError: Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?
...
bigcapital-server | at async DashboardService.getBootAbilities (/app/packages/server/build/index.js:66148:32)
bigcapital-server | at async DashboardService.getBootMeta (/app/packages/server/build/index.js:66122:31)
bigcapital-server | at async DashboardMetaController.getDashboardBoot (/app/packages/server/build/index.js:4189:30)

Then, it crashed after this error

bigcapital-server | /app/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/knex/lib/client.js:332
bigcapital-server | convertedError = new KnexTimeoutError(
bigcapital-server | ^
bigcapital-server |
bigcapital-server | KnexTimeoutError: Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?
bigcapital-server | at Client_MySQL.acquireConnection (/app/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/knex/lib/client.js:332:26)
bigcapital-server | at async Runner.ensureConnection (/app/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/knex/lib/execution/runner.js:305:28)
bigcapital-server | at async Runner.run (/app/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/knex/lib/execution/runner.js:30:19)
bigcapital-server | at async PaginationQueryBuilder.execute (/app/node_modules/.pnpm/[email protected][email protected][email protected][email protected]_/node_modules/objection/lib/queryBuilder/QueryBuilder.js:446:22)
bigcapital-server | at async SettingsStore.load (/app/packages/server/build/index.js:25170:26)
bigcapital-server | at async webpack_modules.57181.exports.default (/app/packages/server/build/index.js:18808:5) {
bigcapital-server | sql: undefined,
bigcapital-server | bindings: undefined
bigcapital-server | }
bigcapital-mysql | 2025-0X-XX X:01:46 XXXXXXXXXXXXXX [Warning] Aborted connection 109 to db: 'bigcapital_tenant_XXXXXXXXXXXXXXXX' user: 'bigcapital' host: '172.18.0.7' (Got an error reading communication packets)
bigcapital-server exited with code 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants