fix: arreglado error de editar facturas

This commit is contained in:
javiermengual 2026-02-10 12:39:04 +01:00
parent 305a69667d
commit b7adb8e9cc
1 changed files with 0 additions and 1 deletions

View File

@ -104,7 +104,6 @@ public class InvoiceService(IDolibarrApiClient apiClient)
{
// GET el JSON completo
var current = await apiClient.GetResourceAsync<InvoiceDetailResponse>($"invoices/{id}");
if (current.statut != "0") throw new ForbiddenException("Solo drafts");
// Modifica solo campos que Dolibarr permite en PUT
if (dto.Number != null) current.@ref = dto.Number;