Interface QapiProductExtensionRow

All Superinterfaces:
Map<String,SelectableExpression>, PersistedObjectColumns, Tables.Columns, Tables.Table

public interface QapiProductExtensionRow extends Tables.Table, PersistedObjectColumns
Table of the rows of one Product Extension (PX) table. Each row holds additional data for one product, typically values that depend on another dimension such as time or sales organization.

Example, the costs of the current product that are valid today:


 def q = api.queryApi()
 def exprs = q.exprs()
 def px = q.tables().productExtensionRows("Costs")
 def date = new Date()

 return q.source(px, [px.sku(), px.SalesOrg, px.Cost, px.Currency],
         exprs.and(px.sku().equal(api.currentItem("sku")), px.ValidFrom.lessOrEqual(date),
                 px.ValidTo.greaterOrEqual(date)))
         .stream { it.collect { it } }
 
Since:
14.0 - Caribou Lou
See Also:
  • Method Details

    • sku

      Returns the Stock Keeping Unit (SKU) of the product that the row holds data for.
      Returns:
      the sku column as a String expression