import { Entity, DefaultDeSerializers, DeSerializers, DeserializedType } from '@sap-cloud-sdk/odata-v2'; /** * This class represents the entity "A_PurContrItemCondition" of service "API_PURCHASECONTRACT_PROCESS_SRV". */ export declare class PurContrItemCondition extends Entity implements PurContrItemConditionType { /** * Technical entity name for PurContrItemCondition. */ static _entityName: string; /** * Default url path for the according service. */ static _defaultServicePath: string; /** * All key fields of the PurContrItemCondition entity */ static _keys: string[]; /** * Purchasing Document Number. * Alphanumeric key uniquely identifying the document. * Maximum length: 10. */ purchaseContract: DeserializedType; /** * Item Number of Purchasing Document. * Specifies the number that uniquely identifies an item in . * Maximum length: 5. */ purchaseContractItem: DeserializedType; /** * Condition Validity End Date. */ conditionValidityEndDate: DeserializedType; /** * Condition Type. * The key that uniquely identifies the condition. * The condition type indicates, for example, whether, during pricing, the system applies a price, a discount, a surcharge, or other pricing elements, such as freight costs and sales taxes. For each of these pricing elements, there is a condition type defined in the system. * Maximum length: 4. */ conditionType: DeserializedType; /** * Number of the Condition Record. * Number that uniquely identifies a condition record. * The system uses the condition record number to store and retrieve information during processing (pricing, for example). * Maximum length: 10. */ conditionRecord: DeserializedType; /** * Sequential number of the condition. * The sequential number that uniquely identifies the condition if a condition supplement exists. * If you have assigned a condition supplement to the condition, the system automatically assigns the number. * Maximum length: 2. */ conditionSequentialNumber: DeserializedType; /** * Condition Validity Start Date. * @nullable */ conditionValidityStartDate?: DeserializedType | null; /** * Number of texts. * Maximum length: 10. * @nullable */ conditionTextId?: DeserializedType | null; /** * Scale Type. * Indicator that controls the validity of the scale value or percentage: * From a certain quantity or value (base scale)Up to a certain quantity or value (to-scale)Alternatively, it is possible to work with interval scales. Interval scales must be stored in the condition type, that is, the scale type "interval scale" cannot be changed in the condition record. The reason for this is technical restrictions resulting from the programming within pricing. * Maximum length: 1. * @nullable */ pricingScaleType?: DeserializedType | null; /** * Scale Base Type. * Determines how the system interprets a pricing scale in a condition. For example, the scale can be based on quantity, weight, or volume. * Maximum length: 1. * @nullable */ pricingScaleBasis?: DeserializedType | null; /** * Condition Scale Quantity. * Scale quantity (for example, number of pieces) to which a scale refers. * @nullable */ conditionScaleQuantity?: DeserializedType | null; /** * Condition Scale Unit of Measure. * Unit of measure to which the quantity scale refers. * Maximum length: 3. * @nullable */ conditionScaleQuantityUnit?: DeserializedType | null; /** * Scale Value. * A value that is part of a pricing scale. The value is an amount in a particular currency. * @nullable */ conditionScaleAmount?: DeserializedType | null; /** * Scale Currency. * Specifies a currency for a pricing scale in a condition record. * If a pricing scale is based on a value instead of a quantity, you can specify a currency for the value. In the standard version of the SAP System, this field is only relevant in condition records for the following discounts:Price groupPrice group/Material pricing groupYou apply a price group discount to customers in a particular foreign country. When you create a condition record for this discount and enter values in the pricing scale, you can also enter the corresponding foreign currency. During pricing, the system then calculates discounts based on scale values in the foreign currency. The discount amount is then converted into the currency you are using in the sales document.After you enter a currency in this field and save the condition record, you cannot change the currency without deleting the record and creating it again. * Maximum length: 5. * @nullable */ conditionScaleAmountCurrency?: DeserializedType | null; /** * Calculation Type for Condition. * A rule that specifies how pricing uses the condition amount and the condition base value to calculate the condition value. The following are the main cases: * A percentage value referring to an amount.An absolute amountAn amount referring to a quantity, weight, or volumeYou can set the calculation type when you configure a condition type. The selected value of the calculation type is used as the default when you create a new condition record for this condition type.Note: You can specify another calculation type for the same condition type in a new condition record, but you cannot change it afterwards. The value of the calculation type specified in the condition record finally determines how the value for this price condition is calculated during pricing.In general, the system calculates the condition value by multiplying the condition amount with the condition base value after the appropriate currency and quantity conversions. The following table shows which condition base value the system uses for a specific calculation type:Calculation Type Description Condition Base Value Dimension of Condition Base ValueA Percentage Amount CurrencyB Fixed Amount 1 CurrencyC Quantity Quantity of a Document Item or Group of Items UoM of QuantityD Gross Weight Gross Weight of a Document Item or Group of Items UoM of Gross WeightE Net Weight Net Weight of a Document Item or Group of Items UoM of Net WeightF Volume Volume of a Document Item or Group of Items UoM of VolumeG Formula For more information, see Special Calculation Logic for Calculation Type ā€šGā€˜ (Formula)H Percentage (in Hundreds) Amount CurrencyI Percentage (Travel Costs) Amount CurrencyM Quantity - Monthly Price Quantity of a Document Item or Group of Items UoM of QuantityN Quantity - Year Price Quantity of a Document Item or Group of Items UoM of QuantityO Quantity - Daily Price Quantity of a Document Item or Group of Items UoM of QuantityP Quantity - Weekly Price Quantity of a Document Item or Group of Items UoM of QuantitySpecial Calculation Logic for Calculation Type ā€šGā€˜ (Formula)If you set this value, during the standard pricing for this condition type, the system does not determine a condition base value nor a condition amount or condition value. When the system has executed the standard logic to determine the condition base value and the condition value, the fields are filled with random values.Note: You can use formulas in a pricing procedure without setting calculation type G for the condition type.Follow-up Activity for Calculation Type G (Formula):Formulas are represented as routines. You must use routines to ensure that the condition base value and the condition value are determined. Therefore, in the pricing procedures that contain the affected condition type, you must assign a routine for the condition base value and a routine for the condition value to this condition type. If the condition base value is of no importance or if both, the condition base value and the condition value, are determined within the routine of the condition value, you do not have to use a routine for the condition base value.Note: If you use the calculation type G, you are responsible for the calculation of the values in the pricing result. * Maximum length: 1. * @nullable */ conditionCalculationType?: DeserializedType | null; /** * Condition amount or percentage where no scale exists. * The rate that determines how the system calculates pricing using this condition. Depending on the condition type, the rate can be a fixed amount or a percentage. If the condition includes a pricing scale, the rate displays the first line of the scale. * The following examples illustrate how you can use the rate in different condition types:If you create a condition that includes prices (for example, prices for a material), you enter an amount.If you are creating a condition based on percentage discounts or surcharges (for example, a customer-specific discount), you enter the value of a percentage. If the condition is a discount, the system automatically enters a minus sign behind the amount and a percent sign in the Rate unit field. * @nullable */ conditionRateValue?: DeserializedType | null; /** * Condition Unit (Currency or Percentage). * The unit that determines whether the condition for a material is based on a percentage or on an amount in a particular currency. The use of the condition unit depends on the condition type (for example, whether the condition is a material price or a customer discount). * The following examples illustrate what you can do when using different condition types.If you create a condition that includes prices (for example, prices for a material), you enter the currency that applies to the condition (for example, "USD" for US dollars)If you are creating a condition based on percentage discounts or surcharges (for example, a customer-specific discount), you cannot enter a value in the Condition unit field. Instead, the system automatically enters a percent sign as the condition unit when you enter a value in the Condition Amount field. * Maximum length: 5. * @nullable */ conditionRateValueUnit?: DeserializedType | null; /** * Condition Pricing Unit. * The quantity on which the amount or percentage is based. The quantity is expressed in sales units (for example, bottles). * You want to create a condition record for a material price of US$8 for 1 piece. You enter "8" in the Rate field, "USD" in the Unit field, and "1" as the condition pricing unit in this field.You create a condition record that gives a fixed discount of $10 to a customer who buys 1000 bottles. In this case, the condition pricing unit is 1000. * @nullable */ conditionQuantity?: DeserializedType | null; /** * Condition Unit. * Quantity unit to which the condition amount refers. * Maximum length: 3. * @nullable */ conditionQuantityUnit?: DeserializedType | null; /** * Numerator for converting condition units to base units. * The numerator of the conversion factor that the system uses to convert condition units into base units of measure. * Many material processing functions, such as creating production requirements, may require that sales units are converted into base units.You store a soft drink in gallons, but sell it in 1 pint bottles. The conversion factor looks like this:8 Pt <=> 1 GThe first number (the denominator) represents the sales units, in this case, pints. The second number (the numerator) represents the equivalent quantity of base units, in this case, gallons. * @nullable */ conditionToBaseQtyNmrtr?: DeserializedType | null; /** * Denominator for converting condition units to base units. * The denominator of the conversion factor that the system uses to convert condition units into base units of measure. * Many material processing functions, such as the creation of production requirements, may require that sales units are converted into base units of measure.You produce a soft-drink in gallons, but sell it in 1 pint bottles. The conversion factor looks like this:8 Pt <=> 1 GThe first number (the denominator) represents the sales units, in this case, pints. The second number (the numerator) represents the equivalent quantity of base units of measure, in this case, gallons. * @nullable */ conditionToBaseQtyDnmntr?: DeserializedType | null; /** * Base Unit of Measure. * Unit of measure in which stocks of the material are managed. The system converts all the quantities you enter in other units of measure (alternative units of measure) to the base unit of measure. * You define the base unit of measure and also alternative units of measure and their conversion factors in the material master record.Since all data is updated in the base unit of measure, your entry is particularly important for the conversion of alternative units of measure. A quantity in the alternative unit of measure can only be shown precisely if its value can be shown with the decimal places available. To ensure this, please note the following:The base unit of measure is the unit satisfying the highest necessary requirement for precision.The conversion of alternative units of measure to the base unit should result in simple decimal fractions (not, for example, 1/3 = 0.333...).Inventory ManagementIn Inventory Management, the base unit of measure is the same as the stockkeeping unit.ServicesServices have units of measure of their own, including the following:Service unitUnit of measure at the higher item level. The precise quantities of the individual services are each at the detailed service line level.BlanketUnit of measure at service line level for services to be provided once only, and for which no precise quantities can or are to be specified. * Maximum length: 3. * @nullable */ baseUnit?: DeserializedType | null; /** * Lower limit of the condition rate/amount. * Indicates whether, during document processing, the system checks if manual changes fall short of the lower limit allowed for the corresponding condition record. * When you maintain the scales in a condition record, the system checks whether the scale value falls below the lower limit. * @nullable */ conditionLowerLimit?: DeserializedType | null; /** * Upper limit for the condition rate. * Indicates, during document processing, whether a manually entered price exceeds the upper limit allowed for the corresponding condition record and/or the condition type. * When you maintain a condition record, the system checks automatically whether the scale value exceeds the upper limit. * @nullable */ conditionUpperLimit?: DeserializedType | null; /** * Condition Currency (for Cumulation Fields). * Maximum length: 5. * @nullable */ conditionAlternativeCurrency?: DeserializedType | null; /** * Condition exclusion indicator. * Indicates whether the system automatically excludes the discounts that are proposed during pricing. * You can set this indicator in two ways:For a particular condition record (the field appears on the Details screen)For all records of a particular condition type (the field appears on the screen where you define the condition type)If you set the indicator to exclude conditions, there are several things to consider:The system will still take into account any condition supplements that are part of the condition record for the price (condition type PR00, for example)You can allow for exceptions where you want to include discounts in spite of the condition exclusion indicator (for a particular discount condition you can specify a requirement that applies the discount ONLY when the indicator is set). * Maximum length: 1. * @nullable */ conditionExclusion?: DeserializedType | null; /** * Deletion Indicator for Condition Record. * Indicates whether the condition is no longer taken into account during document processing. The condition is deleted during the next reorganization run. * @nullable */ conditionIsDeleted?: DeserializedType | null; /** * Additional Value Days. * The number of days between the billing date and the date on which the terms of payment for the sales document become effective. * If you enter a value in this field, you cannot enter a date in the fixed value date field. * Maximum length: 2. * @nullable */ additionalValueDays?: DeserializedType | null; /** * Fixed Value Date. * The date on which the terms of payment related to the sales document become effective. * If you enter a date in this field, you cannot enter a value in the additional value days field. * @nullable */ fixedValueDate?: DeserializedType | null; /** * Terms of Payment Key. * Key for defining payment terms composed of cash discount percentages and payment periods. * It is used in sales orders, purchase orders, and invoices. Terms of payment provide information for:Cash managementDunning proceduresPayment transactionsData can be entered in the field for the terms of payment key in various ways as you enter a business transaction:In most business transactions, the system defaults the key specified in the master record of the customer/vendor in question.In some transactions (for example, credit memos), however, the system does not default the key from the master record. Despite this, you can use the key from the customer/vendor master record by entering "*" in the field.Regardless of whether or not a key is defaulted from the master record, you can manually enter a key during document entry at:item level in sales ordersheader level in purchase orders and invoicesMaster records have separate areas for Financial Accounting, Sales, and Purchasing. You can specify different terms of payment keys in each of these areas. When you then enter a business transaction, the application in question will use the key specified in its area of the master record. * Maximum length: 4. * @nullable */ paymentTerms?: DeserializedType | null; /** * Maximum number of sales orders per condition record. * Specifies - up to a maximum of three - the number of sales orders that can benefit from this condition record. * You introduce a new product for which you offer an introductory discount. The customer gets this discount only on the first two orders - the initial order and the first replenishment order. Thereafter, the discount is inactive. In this case, you enter '2' in this field.To see how many orders have already benefitted from a particular condition record, you select Details -> Cumulative values in the overview screen of the condition record. * Maximum length: 2. * @nullable */ cndnMaxNumberOfSalesOrders?: DeserializedType | null; /** * Minimum condition base value. * @nullable */ minimumConditionBasisValue?: DeserializedType | null; /** * Maximum condition base value. * Specifies the maximum condition base value for this condition record. * You use this field to specify a maximum cumulative quantity, weight, or volume for a condition record.You offer a customer a special discount on a certain product but want to limit this discount to a specified total number of cases. You enter the maximum number of cases in this field. As you process orders that use this condition record, the system updates the cumulative quantity. When the maximum quantity is reached, the system automatically deactivates the condition record in subsequent orders.To see the current cumulative condition base value for a particular condition record, you select Extras -> Cumulative values in the overview screen of the condition record. * @nullable */ maximumConditionBasisValue?: DeserializedType | null; /** * Maximum condition value. * Specifies the maximum condition value for this condition record. * You use this field to limit the use of a particular condition record to a specified total value.You offer a customer a special discount on a certain product but want to limit this discount to a specified total amount. You enter the maximum amount (for example, 1000 USD) in this field. As you process orders that use this condition record, the system updates the cumulative value. When the maximum value is reached, the system automatically deactivates the condition record in subsequent orders.To see the current cumulative value for a particular condition record, you select Details -> Cumulative values in the overview screen of the condition record. * @nullable */ maximumConditionAmount?: DeserializedType | null; /** * Number of incremental scale. * Maximum length: 4. * @nullable */ incrementalScale?: DeserializedType | null; /** * Scale number for pricing. * Maximum length: 4. * @nullable */ pricingScaleLine?: DeserializedType | null; /** * Release Status. * The release status controls in which scenarios the condition records are found. * If the status is set at 'B', for example, then the corresponding records are taken into account during a pricing simulation, but are not used in current documents.The release status can only be maintained directly for agreements (sales deals). For condition records, this is done via the processing status for conditions. * Maximum length: 1. * @nullable */ conditionReleaseStatus?: DeserializedType | null; /** * Condition Classification. * Maximum length: 1. * @nullable */ conditionClassification?: DeserializedType | null; } export interface PurContrItemConditionType { purchaseContract: DeserializedType; purchaseContractItem: DeserializedType; conditionValidityEndDate: DeserializedType; conditionType: DeserializedType; conditionRecord: DeserializedType; conditionSequentialNumber: DeserializedType; conditionValidityStartDate?: DeserializedType | null; conditionTextId?: DeserializedType | null; pricingScaleType?: DeserializedType | null; pricingScaleBasis?: DeserializedType | null; conditionScaleQuantity?: DeserializedType | null; conditionScaleQuantityUnit?: DeserializedType | null; conditionScaleAmount?: DeserializedType | null; conditionScaleAmountCurrency?: DeserializedType | null; conditionCalculationType?: DeserializedType | null; conditionRateValue?: DeserializedType | null; conditionRateValueUnit?: DeserializedType | null; conditionQuantity?: DeserializedType | null; conditionQuantityUnit?: DeserializedType | null; conditionToBaseQtyNmrtr?: DeserializedType | null; conditionToBaseQtyDnmntr?: DeserializedType | null; baseUnit?: DeserializedType | null; conditionLowerLimit?: DeserializedType | null; conditionUpperLimit?: DeserializedType | null; conditionAlternativeCurrency?: DeserializedType | null; conditionExclusion?: DeserializedType | null; conditionIsDeleted?: DeserializedType | null; additionalValueDays?: DeserializedType | null; fixedValueDate?: DeserializedType | null; paymentTerms?: DeserializedType | null; cndnMaxNumberOfSalesOrders?: DeserializedType | null; minimumConditionBasisValue?: DeserializedType | null; maximumConditionBasisValue?: DeserializedType | null; maximumConditionAmount?: DeserializedType | null; incrementalScale?: DeserializedType | null; pricingScaleLine?: DeserializedType | null; conditionReleaseStatus?: DeserializedType | null; conditionClassification?: DeserializedType | null; } //# sourceMappingURL=PurContrItemCondition.d.ts.map