DiscountItemPriceClassesV2: Visma.net Financials Discount Item Price Classes (V2) |
Get a range of discounts - ScreenId=AR209500
Catalog: VismaNet
Schema: DiscountV2
Label: Discount Item Price Classes (V2)
This is a read-only table function. The Visma.net Financials API may not support changing the data or the Invantive UniversalSQL driver for Visma.net Financials does not cover it. In the latter case, please use the table NativePlatformScalarRequests to upload data to the Visma.net Financials API.
Parameters of Table Function
The following parameters can be used to control the behaviour of the table function DiscountItemPriceClassesV2. A value must be provided at all times for required parameters, but optional parameters in general do not need to have a value and the execution will default to a pre-defined behaviour. Values can be specified by position and by name. In both cases, all parameters not specified will be evaluated using their default values.
Value specification by position is done by listing all values from the first to the last needed value. For example: a `select * from table(value1, value2, value3)` on a table with four parameters will use the default value for the fourth parameter and the specified values for the first three.
Value specification by name is done by listing all values that require a value. For example with `select * from table(name1 => value1, name3 => value3)` on the same table will use the default values for the second and fourth parameters and the specified values for the first and third.
Name |
Data Type |
Required |
Default Value |
Documentation |
---|---|---|---|---|
createdDateTime |
string |
☐ |
|
System retrieved information for created date and time. |
createdDateTimeCondition |
string |
☐ |
|
System retrieved information for state/condition. |
discountCode |
string |
☐ |
|
|
lastModifiedDateTime |
string |
☐ |
|
|
lastModifiedDateTimeCondition |
string |
☐ |
|
System retrieved information for state/condition. |
series |
string |
☐ |
|
|
Columns of Table Function
The columns of the table function DiscountItemPriceClassesV2 are shown below. Each column has an SQL data type.
Name |
Data Type |
Label |
Required |
Documentation |
---|---|---|---|---|
active |
boolean |
Active |
☐ |
The top part > Active > A check box that indicates (if selected) that the series is active. |
breakBy |
string |
{res:itgen_vnet_breakby} |
☐ |
The top part > Break by > The way the breakpoints for this discount series are specified. Quantity, Amount. |
COMPANY_CODE |
string(30) |
Company Code |
☑ |
Partition code, segmenting the data. |
COMPANY_NAME |
string(240) |
Company Name |
☑ |
Name of the partition. |
createdDateTime |
datetime |
Created |
☐ |
|
description |
string |
Description |
☐ |
The top part > Description > A brief description of the series. |
discountBy |
string |
{res:itgen_vnet_discountby} |
☐ |
The top part > Discount by > The way the discount for the series is specified. Percent, Amount, Free item. |
discountCode |
string |
Discount Code |
☐ |
Mandatory field: The top part > Discount code > The code of the discount for which you want to create a new series or view an existing one. |
effectiveDate |
datetime |
Effective Date |
☐ |
The top part > Effective date > The date when the series becomes effective; this field appears for promotional discount series only. |
errorInfo |
string |
Error Message |
☐ |
|
expirationDate |
datetime |
Expiration Date |
☐ |
The top part > Expiration date > The date when the promotional discount expires. This field appears for the series if the Promotional check box is selected. |
freeItem |
int32 |
Free Item |
☐ |
Free item tab > Free item > The free item (by its item ID) that is added to orders as the discount for this series. |
lastFreeItem |
int32 |
{res:itgen_vnet_lastfreeitem} |
☐ |
Free item tab > Last free item > The free item (by its item ID) that had been added to orders as the discount for this series before the date shown in the Last date column on the Discount breakpoints tab. |
lastModifiedDateTime |
datetime |
Last Modified |
☐ |
Free item tab > Last update date > A read-only field that shows the date when this discount series has been updated last. |
lastUpdateDate |
datetime |
{res:itgen_vnet_lastupdatedate} |
☐ |
The top part > Last update date > A read-only field that shows the date when the discount series was last updated. |
lineCntr |
int32 |
{res:itgen_vnet_linecntr} |
☐ |
Free item tab > A line counter for the table. |
metadata_maxPageSize |
int64 |
Metadata Max Pagesize |
☐ |
|
metadata_totalCount |
int64 |
Total Count |
☐ |
|
pendingFreeItem |
int32 |
{res:itgen_vnet_pendingfreeitem} |
☐ |
Free item tab > Pending free item > The free item (by its item ID) that will be added to orders as the discount for this series, starting on the date specified in the Pending date column on the Discount breakpoints tab. |
priceClassId |
string |
{res:itgen_vnet_priceclassid} |
☐ |
|
promotional |
boolean |
{res:itgen_vnet_promotional} |
☐ |
The top part > Promotional > A check box that indicates (if selected) that the series is a promotional discount. |
prorateDiscount |
boolean |
{res:itgen_vnet_proratediscount} |
☐ |
The top part > Prorate discount > A check box that indicates (if selected) that the discount can be prorated. |
series |
string |
{res:itgen_vnet_series} |
☐ |
Mandatory field: The top part > Series > The ID of the series defined for the discount. |
23-06-2025 19:16 Version 24.1.116-BETA+5455