ever-co / ever-gauzy

Ever® Gauzy™ - Open Business Management Platform (ERP/CRM/HRM/ATS/PM) - https://gauzy.co
https://gauzy.co
GNU Affero General Public License v3.0
2.29k stars 539 forks source link

[BUG] Adding Products to Invoices & Estimates Produces Error #8253

Closed 503Dev closed 1 month ago

503Dev commented 1 month ago

Description

When adding a product to an invoice or estimate the product is added ok however upon attempting to edit the price, quantity or other values an error is produced. Gauzy throws a notification of "invalid item" and in the console there is some output. The item will not adjust on the invoice and does not appear afterward when viewing the invoice.

How to Reproduce

  1. Goto the Sales -> Invoices module
  2. Add a new invoice and set the basic options
  3. Set the type to "Detailed Items" or "By Products"
  4. Add an item and clock "Generate Invoice Items"
  5. Attempt to edit the price or quantity of the item
  6. Attempt to save the item / validate changes

Note: Same problem if editing it at any point, it only works correctly if the default values are left.

Examples

Shown: Product adds ok with default values image

Shown: Editing any value does not allow the changes to save image

Shown: Sometimes there is console output in the browser, this may be related: image

Shown: The resulting invoice produces a weird result, the item doesn't save, but the value ends up in the tax field even though this was saved with no tax value entered. No item is present in the view: image

Additional Comments

This happens with any product, even new ones for testing. In addition, testing the demo environment provided by Ever online also presents this issue. The example screenshots are from my instance of Gauzy but it does occur on the online demo too.

503Dev commented 1 month ago

Environment

Official docker images running with Docker-Compose on bare metal server with Debian installed.

postgres:15-alpine ghcr.io/ever-co/gauzy-api:latest ghcr.io/ever-co/gauzy-webapp:latest