ExpensesProductCommission
Structure
Field | Type | Required | Description |
---|---|---|---|
company | Company | true | Company related to the ExpensesProductCommission. |
quantity | Integer | true | Number of elements of this type of Product. |
product | Product | true | Product related to the ExpensesProductCommission. |
name | String | true | Name of this commission. |
price | BigDecimal | true | Price in the related Currency. |
currency | Currency | true | Currency related to this ExpensesProductCommission |
amount | BigDecimal | false | Fixed amount of commission that the company will take off the total price. |
percentage | BigDecimal | false | Percent of commission that the company will take off the total price. |
JSON representation
{ "company": { "id": 1, "name": "Booking" }, "quantity": 1, "product": { "id": 512, "name": "Commission", "productType": { "id": 6, "code": "COM", "name": "Commission" } }, "name": "Commission", "price": 32.467293, "currency": { "id": 1, "code": "EUR", "name": "Euro" }, "amount": 0.5, "percentage": 5 }