ExpensesProduct
Structure
Field | Type | Required | Description |
---|---|---|---|
postingDate | LocalDate | true | Date when the product is going to be posted. |
productionDate | LocalDate | true | Date when the product is going to be producted. |
quantity | Integer | true | Number of items it contains. |
product | Product | true | Product related to this ExpensesProduct. |
name | String | true | Name of the product. |
amountAfterTax | BigDecimal | true | Cost of the product in the related currency after applying taxes. |
amountBeforeTax | BigDecimal | false | Cost of the product in the related currency before applying taxes. |
currency | Currency | true | Related currency to this ExpensesProduct. |
amountTax | BigDecimal | false | |
amountDiscount | BigDecimal | false | |
amountCommission | BigDecimal | false | |
rate | Rate | true | Related rate to this ExpensesProduct. |
offer | Offer | true | Related offer to this ExpensesProduct. |
offerAmountDiscount | BigDecimal | true | |
offerPercentDiscount | BigDecimal | true | |
promotion | Promotion | false | Related promotion to this ExpensesProduct. |
promotionAmountDiscount | BigDecimal | false | |
promotionPercentDiscount | BigDecimal | false | |
channel | Channel | true | Related channel to this ExpensesProduct. |
source | Source | true | Related source to this ExpensesProduct. |
segment | Segment | true | Related segment to this ExpensesProduct. |
remark | String | false | Added comments to the ExpensesProduct. |
expensesProductTaxList | List of ExpensesProductTax | false | Detail of the taxes applied to this ExpensesProduct. |
expensesProductCommissionList | List of ExpensesProductCommission | false | Detail of the commissions applied to this ExpensesProduct. |
expensesProductDiscountList | List of ExpensesProductDiscount | false | Detail of the discounts applied to this ExpensesProduct. |
JSON representation
{ "productionDate": "2019-07-28", "postingDate": "2019-07-28", "productionDate": "2019-07-28", "quantity": 1, "product": { "id": 422, "code":"PK", "name": "Parking", "productType": { "id": 2, "code": "SER", "name": "Service" } }, "name": "Parking", "amountAfterTax": 10, "amountBeforeTax": null, "currency": { "id": 1, "code": "EUR", "name": "Euro" }, "amountTax": null, "amountDiscount": null, "amountCommission": null, "rate": null, "offer": null, "offerAmountDiscount": null, "offerPercentDiscount": null, "promotion": null, "promotionAmountDiscount": null, "promotionPercentDiscount": null, "propertyChannel": { "id": 62, "code": "WEB", "name": "Booking Engine" }, "propertySource": { "id": 47, "code": "FAX", "name": "Fax" }, "propertySegment": { "id": 47, "code": "CONG", "name": "Congress" }, "remark": null, "expensesProductTaxList": [{ "quantity": 1, "product": { "id": 797, "code":"TAX21", "name": "Tax 21%", "productType": { "id": 8, "code": "TAX", "name": "Tax" } }, "name": "Tax 21%", "price": 1.735537, "currency": { "id": 1, "code": "EUR", "name": "Euro" }, "amount": null, "percentage": 21 }], "expensesProductCommissionList": null, "expensesProductDiscountList": null }