diff --git a/views_api.py b/views_api.py index fdb3c18..ffa02f4 100644 --- a/views_api.py +++ b/views_api.py @@ -1125,7 +1125,8 @@ async def api_create_expense_entry( is_equity=data.is_equity, fiat_currency=fiat_currency, fiat_amount=fiat_amount, - reference=castle_reference # Add castle ID as link + reference=castle_reference, + entry_id=entry_id # Pass entry_id so all links match ) # Submit to Fava @@ -1252,7 +1253,8 @@ async def api_create_receivable_entry( entry_date=datetime.now().date(), fiat_currency=fiat_currency, fiat_amount=fiat_amount, - reference=castle_reference # Use castle reference with unique ID + reference=castle_reference, + entry_id=entry_id # Pass entry_id so all links match ) # Submit to Fava