Partner — client / supplier
Fields
| Field | Type | Required on AddPartner | Description |
|---|---|---|---|
Id | integer | (auto) | Unique identifier |
Code | string | no | Unique code. Auto-generated if missing |
Name | string | yes | Commercial name |
CIF / TaxCode | string | no | Fiscal code (CIF/CNP) |
TaxAttribute | string | no | RO = VAT payer, null = non-payer |
RegistrationNumber | string | no | Trade Register number (J40/.../...) |
IsCompany | boolean | no | true = legal entity, false = individual/PFA |
IsClient | boolean | no | Appears in client lists |
IsSupplier | boolean | no | Appears in supplier lists |
Address | string | no | Full address |
Sold | number | (read) | Current balance — debit positive, credit negative |
JSON example
{
"Id": 27501,
"Code": "CLI0001",
"Name": "ACME SRL",
"CIF": "RO12345678",
"TaxAttribute": "RO",
"RegistrationNumber": "J40/123/2010",
"IsCompany": true,
"IsClient": true,
"IsSupplier": false,
"Address": "Bucuresti, Calea Victoriei 100",
"Sold": -1240.55
}
Associated operations
GetAllPartners,GetPartnerbyCode,GetPartnerById,GetSoldAddPartner,UpdatePartner,AddOrUpdatePartner,UpdateCIFDeletePartnerByCode,DeletePartnerById
Business notes
- Negative
Sold= the ERP owes us (we collected in excess). - Positive
Sold= the partner owes us (an active receivable). - A partner can be both a client and a supplier at the same time.
- The fiscal code is not unique at database level — partners with the same fiscal code can exist.