Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Structure

Excerpt


FieldTypeRequiredDescription
postingDateLocalDatetrueUnique identifier for the Date when the product is going to be posted.
quantityIntegertrueCode Number of the items it contains.
productProducttrueName of the Product related to this ProformaProduct.
nameStringtrueName of the product.
amountAfterTaxBigDecimaltrueCost of the product in the related currency after applying taxes.
amountBeforeTaxBigDecimaltrueCost of the product in the related currency before applying taxes.
currencyCurrencyforeignAmountAfterTaxBigDecimalforeignCurrencyCurrencytrueRelated currency to this ProformaProduct.
amountTaxBigDecimaltrue
amountDiscountBigDecimaltrue
amountCommissionBigDecimaltrue
rateRatetrueRelated rate to this ProformaProduct.
offerOffertrueRelated offer to this ProformaProduct.
offerAmountDiscountBigDecimaltrue
offerPercentDiscountBigDecimaltrue
promotionPromotiontrueRelated promotion to this ProformaProduct.
promotionAmountDiscountBigDecimaltrue
promotionPercentDiscountBigDecimaltrue
channelChanneltrueRelated channel to this ProformaProduct.
sourceSourcetrueRelated source to this ProformaProduct.
segmentSegmentrebateReasonStringtrueRelated segment to this ProformaProduct.
remarkStringfalseAdded comments to the ProformaProduct.

proformaProductTaxList

List of ProformaProductTaxfalseDetail of the taxes applied to this ProformaProduct.

proformaProductCommissionList

List of ProformaProductCommissionfalseDetail of the commissions applied to this ProformaProduct.
proformaProductDiscountListList of ProformaProductDiscountfalseDetail of the discounts applied to this ProformaProduct.



JSON representation

Code Block
languagepowershell
themeDJango
{
	"productionDate": "2019-07-28",
	"postingDate": "2019-07-28",
	"quantity": 1,
	"product": {
		"id": 422,
		"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,
	"proformaProductTaxList": [{
		"quantity": 1,
		"product": {
			"id": 797,
			"name": "Tax 21%",
	"createdDate": "2018-04-12T18:13:50.710Z",
			"productType": {
				"id": 8,
				"code": "TAX",
				"name": "Tax"
			}
		},
		"name": "Tax 21%",
		"price": 1.735537,
		"currency": {
			"id": 1,
			"code": "CCRT1EUR",
			"name": "Euro"
		},
		"amount": "ChainCancellationReasonType 1"null,
		"percentage": 21
	}],
	"proformaProductCommissionList": null,
	"proformaProductDiscountList": null
}