Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Ability to create fee with negative units or amount (#2966)
We still have some invoices stuck in generating status, when units or amount are negative. The goal of this PR is to permit the creation of the fee by converting the value to 0 when it's negative for `units` and `amount` fields. But we keep the calculation details on `amount_details`. Example: <img width="961" alt="Screenshot 2024-12-17 at 10 12 46" src="https://github.com/user-attachments/assets/01270a74-bdcb-4e1a-a811-19c52455d049" />
- Loading branch information