InvoiceProductDiscount
Structure
Field | Type | Required | Description |
---|---|---|---|
id | int | true | Unique identifier for the InvoiceProductDiscount. |
company | Company | false | Company related to this InvoiceProductDiscount. |
customer | Customer | false | Customer related to this InvoiceProductDiscount. |
travelAgent | TravelAgent | false | TravelAgent related to this InvoiceProductDiscount. |
discount | Discount | true | Discount related to this InvoiceProductDiscount. |
name | String | true | Name of the InvoiceProductDiscount. |
amount | BigDecimal | true | Value of the InvoiceProductDiscount(price). |
percentageOfDiscount | BigDecimal | false | Percent to discount from original price |
amountOfDiscount | BigDecimal | false | Fixed amount to discount from original price |
JSON representation
{ "id": 1, "company": { "id": 1, "code": "VTE", "name": "Viajes Tesipro" }, "customer":null, "travelAgent":{ "id": 1, "code":"VTE", "name": "Viajes Tesipro" }, "discount": { "id": 1, "name": "20% PROMO" }, "name": "20% PROMO", "amount": 1, "percentageOfDiscount": 20, "amountOfDiscount": null }