Invert sign of budget amount

As budget is based on income statement, the amount must be credit - debit.

Closes #13764
This commit is contained in:
Cédric Krier
2025-02-10 13:08:22 +01:00
parent efdda3a111
commit 6c67d2958c
7 changed files with 39 additions and 25 deletions
+12
View File
@@ -46,6 +46,18 @@ After
Shipment.save(shipments)
transaction.commit()
* If ``account_budget`` module is activated, invert amount sign:
.. code-block:: SQL
UPDATE "account_budget_line" SET amount = -amount;
* If ``analytic_budget`` module is activated, invert amount sign:
.. code-block:: SQL
UPDATE "analytic_account_budget_line" SET amount = -amount;
7.4
---