ExpensesProductDiscount

Structure

FieldTypeRequiredDescription
companyCompanytrueCompany related to the ExpensesProductDiscount.
quantityIntegertrueNumber of elements of this type of Product.
productProducttrueProduct related to the ExpensesProductDiscount.
nameStringtrueName of this discount.
priceBigDecimaltruePrice in the related Currency.
currencyCurrencytrueCurrency related to this ExpensesProductDiscount
amountBigDecimalfalseFixed amount of discount 
percentageBigDecimalfalsePercent 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
}