Discount Schema

M_DiscountSchema

Schema to calculate the trade discount percentage

Overview

Table NameM_DiscountSchema
Access LevelClient Only
Entity TypeD
Is DocumentNo
Is ViewNo
Has UUIDYes
Parent TableAD_Client
WikiView on iDempiere Wiki

Columns (21)

Column Type Required Default Description
AD_Client_ID Table Direct(22) Yes @#AD_Client_ID@ Tenant for this installation.
AD_Org_ID Table Direct(22) Yes @#AD_Org_ID@ Organizational entity within tenant
Created Date+Time(7) Yes SYSDATE Date this record was created
CreatedBy Search(22) Yes - User who created this records
CumulativeLevel List(1) No L Level for cumulative calculations
Description String(255) No - Optional short description of the record
DiscountType List(1) Yes - Type of trade discount calculation
FlatDiscount Number(22) No - Flat discount percentage
IsActive Yes-No(1) Yes Y The record is active in the system
IsBPartnerFlatDiscount Yes-No(1) Yes - Use flat discount defined on Business Partner Level
IsQuantityBased Yes-No(1) Yes Y Trade discount break level based on Quantity (not value)
M_DiscountSchema_ID ID(22) Yes - Schema to calculate the trade discount percentage
Processing Button(1) No - -
Script Text(2000) No - Dynamic Java Language Script to calculate result
Type List(3) Yes GNL Type of Validation (SQL, Java Script, Java Language)
Updated Date+Time(7) Yes SYSDATE Date this record was updated
UpdatedBy Search(22) Yes - User who updated this records
ValidFrom Date(7) Yes - Valid from including this date (first day)
Value String(40) No - Search key for the record in the format required - must be unique
Name String(60) Yes - Alphanumeric identifier of the entity
M_DiscountSchema_UU String(36) No - -

Foreign Keys

Column References Description
AD_Client_ID AD_Client.AD_Client_ID Tenant for this installation.
AD_Org_ID AD_Org.AD_Org_ID Organizational entity within tenant

Generated on 2026-05-03T16:40:56.826861960Z