Rejects pending expense entries by voiding them

Instead of deleting pending expense entries, marks them as voided by adding a #voided tag.
This ensures an audit trail while excluding them from balances.

Updates the Fava client to use 'params' for the delete request.
This commit is contained in:
padreug 2025-11-10 00:35:41 +01:00
parent cfca10b782
commit 1362ada362
2 changed files with 39 additions and 7 deletions

View file

@ -652,7 +652,7 @@ class FavaClient:
async with httpx.AsyncClient(timeout=self.timeout) as client:
response = await client.delete(
f"{self.base_url}/source_slice",
json={
params={
"entry_hash": entry_hash,
"sha256sum": sha256sum
}