POST api/OrdineFornitore/Crea
Creazione ordine fornitore semplificata. Se tutte le quantità sono a 0 l'ordine viene chiuso. Possono essere passati Barcode o Descrizione. Se viene passata la Descrizione viene inserita una riga descrittiva. N.B. La Descrizone VINCE sul Barcode se vengono passati entrambi.
Request Information
URI Parameters
None.
Body Parameters
DTOInserimentoOrdineFornitore| Name | Description | Type | Additional information |
|---|---|---|---|
| IdBollettario | integer |
Required |
|
| IdFornitore | integer |
Required |
|
| IdMagazzinoDestinazione | integer |
Required |
|
| IdPagamento | integer |
None. |
|
| Note | string |
None. |
|
| DTOInserimentoOrdineFornitoreDettagli | Collection of DTOInserimentoOrdineFornitoreDettaglio |
None. |
Request Formats
application/json, text/json
Sample:
{
"IdBollettario": 1,
"IdFornitore": 2,
"IdMagazzinoDestinazione": 3,
"IdPagamento": 1,
"Note": "sample string 4",
"DTOInserimentoOrdineFornitoreDettagli": [
{
"Barcode": "sample string 1",
"Descrizione": "sample string 2",
"PrezzoImponibile": 3.1,
"Quantita": 4.1,
"Sconto1": 5.1,
"Sconto2": 6.1,
"Sconto3": 7.1,
"Sconto4": 8.1
},
{
"Barcode": "sample string 1",
"Descrizione": "sample string 2",
"PrezzoImponibile": 3.1,
"Quantita": 4.1,
"Sconto1": 5.1,
"Sconto2": 6.1,
"Sconto3": 7.1,
"Sconto4": 8.1
}
]
}
Response Information
Resource Description
DTOInserimentoOrdineFornitoreResult| Name | Description | Type | Additional information |
|---|---|---|---|
| IdOrdine | integer |
None. |
|
| NumeroOrdine | integer |
None. |
|
| RifOrdine | string |
None. |
|
| TotaleQuantita | decimal number |
None. |
|
| TotaleImponibile | decimal number |
None. |
|
| TotaleImporto | decimal number |
None. |
|
| TotaleIva | decimal number |
None. |
Response Formats
application/json, text/json
Sample:
{
"IdOrdine": 1,
"NumeroOrdine": 1,
"RifOrdine": "sample string 1",
"TotaleQuantita": 1.1,
"TotaleImponibile": 1.1,
"TotaleImporto": 1.1,
"TotaleIva": 1.1
}