ExpensesProductDiscount
Structure
Field | Type | Required | Description |
---|---|---|---|
company | Company | true | Company related to the ExpensesProductDiscount. |
quantity | Integer | true | Number of elements of this type of Product. |
product | Product | true | Product related to the ExpensesProductDiscount. |
name | String | true | Name of this discount. |
price | BigDecimal | true | Price in the related Currency. |
currency | Currency | true | Currency related to this ExpensesProductDiscount |
amount | BigDecimal | false | Fixed amount of discount |
percentage | BigDecimal | false | Percent of discount |
JSON representation
{ "company": { "id": 1, "name": "Booking" }, "quantity": 1, "product": { "id": 34, "name": "Discount", "productType": { "id": 7, "code": "DIS", "name": "Discount" } }, "name": "Discount", "price": 2.023234, "currency": { "id": 1, "code": "EUR", "name": "Euro" }, "amount": 1, "percentage": 2 }