InvoiceProductDiscount

Structure

FieldTypeRequiredDescription
idinttrueUnique identifier for the InvoiceProductDiscount.
companyCompanyfalseCompany related to this InvoiceProductDiscount.
customerCustomerfalseCustomer related to this InvoiceProductDiscount.
travelAgentTravelAgentfalseTravelAgent related to this InvoiceProductDiscount.
discountDiscounttrueDiscount related to this InvoiceProductDiscount.
nameStringtrueName of the InvoiceProductDiscount.
amountBigDecimaltrueValue of the InvoiceProductDiscount(price).
percentageOfDiscountBigDecimalfalsePercent to discount from original price
amountOfDiscountBigDecimalfalseFixed 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
}