Skip to main content

SaleInvoice — sales invoice

Fields

FieldTypeRequiredDescription
Idinteger(auto)
Numberstring(auto)FAC-NNNNNN
SeriesstringnoDefault FAC
Datedateno
PartnerIdintegeryes
Currencystringno
TotalValuenumber(computed)
IsStornoboolean(read)true if it is a reversal
LinesarrayyesAt least one line

JSON example

{
"Id": 7001,
"Number": "FAC-001024",
"Series": "FAC",
"Date": "2026-05-13",
"PartnerId": 27501,
"Currency": "RON",
"TotalValue": 4589.00,
"IsStorno": false,
"Lines": [
{ "ArticleCode": "0000002", "Quantity": 1, "UnitPrice": 4500.00, "VATRateId": 1, "WarehouseId": 1 }
]
}

Associated operations

  • AddSaleInvoice, UpdateSaleInvoice, DeleteSaleInvoices
  • StornoSaleInvoice → creates a negative invoice with the same partner
  • GetSaleInvoice, GetSaleInvoicesWithSold
  • MarkSaleInvoice (fiscal-receipt marking)
  • ExportSaleInvoices (export to external systems)
  • SendDocumentToEmail (send a PDF by e-mail)

Validation rules

  1. Lines required: at least 1
  2. Available stock >= Quantity for non-service articles (validated by the mock with Stoc insuficient pentru ...).
  3. Valid VATRateId — see VATRate.