# Changelog

All notable changes to this project are documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [3.0.4] - 2026-07-23

### Added
- Add `GET /api/v3/invoices-payment?invoice_id=` to list payment rows for an invoice.

### Fixed
- Fall back invoice `payment_terms` to 30 days when the client or customer value is zero.

## [3.0.3] - 2026-07-22

### Changed
- Default invoice create fields when omitted or empty: `payment_terms` from customer (fallback 30)

### Added
- Add API V3 assistant endpoints: info-query catalog plus document workflows for offers, orders, and invoices (`/api/v3/assistant/*`).
- Expose `deadline_description` on API V3 offers, orders, and invoices.
- Expose project default order texts `default_order_header`, `default_order_content`, and `default_order_footer` on API V3 projects.
- Expose API V3 outgoings (`/api/v3/outgoings`) with distributor, customer, project, state, tax, currency, and encashment relations.
- Expose API V3 distributors (`/api/v3/distributors`).
- Expose reference resources `outgoing-states` and `outgoing-taxes`.
- Add outgoing PDF archive API (`GET/POST /api/v3/outgoings/{id}/pdf`, `GET .../content`) with Master-aligned `pdf_*` fields and immutable single-PDF storage.
- Update OpenAPI for outgoings, distributors, outgoing-states, and outgoing-taxes.

## [3.0.2] - 2026-07-15

### Added
- Expose `vat_id` on API V3 customers (create/update and model validation).
- Expose e-invoice fields `e_invoice_xml_created_at` and `e_invoice_profile` on API V3 invoices.
- Add e-invoicing / payment reference fields to resource profiles and models:
  - `article_taxes`: `vat_category_code`, `vat_exemption_reason`
  - `article_units`: `unece_code`
  - `bank_accounts`: `bic`
  - `encashments`: `payment_means_code`

## [3.0.1] - 2026-07-15

### Added
- Baseline release notes established (this changelog).
