DiscountBreakpointsV2: Visma.net Financials Discount Breakpoints (V2) |
Get a range of discounts - ScreenId=AR209500
Catalog: VismaNet
Schema: DiscountV2
Label: Discount Breakpoints (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 DiscountBreakpointsV2. 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 DiscountBreakpointsV2 are shown below. Each column has an SQL data type.
Name |
Data Type |
Label |
Required |
Documentation |
---|---|---|---|---|
active_2 |
boolean |
{res:itgen_vnet_active_2} |
☐ |
The top part > Active > A check box that indicates (if selected) that the series is active. |
active |
boolean |
Active |
☐ |
The top part > Active > A check box that indicates (if selected) that the series is active. |
amountTo |
double |
{res:itgen_vnet_amountto} |
☐ |
|
breakAmount |
double |
{res:itgen_vnet_breakamount} |
☐ |
Discount breakpoints tab > Break amount > The line amount (break point) that starts the new range for the currently effective series. |
breakBy |
string |
{res:itgen_vnet_breakby} |
☐ |
The top part > Break by > The way the breakpoints for this discount series are specified. Quantity, Amount. |
breakQuantity |
double |
{res:itgen_vnet_breakquantity} |
☐ |
Discount breakpoints tab > Break quantity > The quantity of items (break quantity) that starts the new range for a discount level for the currently effective series. Any break quantity should be specified in the base units. |
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. |
discountAmount |
double |
{res:itgen_vnet_discountamount} |
☐ |
Discount breakpoints tab > Discount amount > The discount amount to be used for the quantities that exceed this break quantity if the Amount option is selected as Discount by. |
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. |
discountPercent |
double |
Discount Percent |
☐ |
Discount breakpoints tab > Discount percent > The discount percent to be currently used for the quantities that exceed this break quantity if the Percent option is selected as Discount by. |
effectiveDate_2 |
datetime |
{res:itgen_vnet_effectivedate_2} |
☐ |
The top part > Effective date > The date when the series becomes effective; this field appears for promotional discount series only. |
effectiveDate |
datetime |
Effective Date |
☐ |
|
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. |
freeItemQty |
double |
{res:itgen_vnet_freeitemqty} |
☐ |
Discount breakpoints tab > Free item qty. > The quantity of the free item to be added as the discount to orders for this discount series. |
lastAmountTo |
double |
{res:itgen_vnet_lastamountto} |
☐ |
|
lastBreakAmount |
double |
{res:itgen_vnet_lastbreakamount} |
☐ |
Discount breakpoints tab > Last break amount > The amount (break point) that started the new range for the previously effective series (the one that was used before the effective date). |
lastBreakQuantity |
double |
{res:itgen_vnet_lastbreakquantity} |
☐ |
Discount breakpoints tab > Last break quantity > The quantity of item (break point) that started the range for the discount series used before the effective date. |
lastDiscount |
double |
{res:itgen_vnet_lastdiscount} |
☐ |
Discount breakpoints tab > Last discount amount > The amount used as the discount for the discount series that was in effect before the effective date. |
lastDiscountAmount |
double |
{res:itgen_vnet_lastdiscountamount} |
☐ |
Discount breakpoints tab > Last discount amount > The amount used as the discount for the discount series that was in effect before the effective date. |
lastDiscountPercent |
double |
{res:itgen_vnet_lastdiscountpercent} |
☐ |
Discount breakpoints tab > Last discount percent > The percentage used for the break point in the previously effective 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. |
lastFreeItemQty |
double |
{res:itgen_vnet_lastfreeitemqty} |
☐ |
Discount breakpoints tab > Last free item qty. > The quantity of the free item that was used as the discount for the previously effective series. |
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. |
lastQuantityTo |
double |
{res:itgen_vnet_lastquantityto} |
☐ |
|
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. |
lineNbr |
int32 |
{res:itgen_vnet_linenbr} |
☐ |
|
metadata_maxPageSize |
int64 |
Metadata Max Pagesize |
☐ |
|
metadata_totalCount |
int64 |
Total Count |
☐ |
|
pendingBreakAmount |
double |
{res:itgen_vnet_pendingbreakamount} |
☐ |
Discount breakpoints tab > Pending break amount > The amount (break point) that starts the new range for the pending series (one that is not yet in effect). |
pendingBreakQuantity |
double |
{res:itgen_vnet_pendingbreakquantity} |
☐ |
Discount breakpoints tab > Pending break quantity > The quantity of items (break point) that starts the new range for the pending (not yet effective) series. |
pendingDate |
datetime |
{res:itgen_vnet_pendingdate} |
☐ |
|
pendingDiscountAmount |
double |
{res:itgen_vnet_pendingdiscountamount} |
☐ |
Discount breakpoints tab > Pending discount amount > The amount to be used as the discount for the pending series if the Amount option is selected as Discount by. |
pendingDiscountPercent |
double |
{res:itgen_vnet_pendingdiscountpercent} |
☐ |
Discount breakpoints tab > Pending discount percent > The discount percent to be used for the break point in the pending series. |
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. |
pendingFreeItemQty |
double |
{res:itgen_vnet_pendingfreeitemqty} |
☐ |
Discount breakpoints tab > Pending free item qty. > The quantity of the free item to be added as the discount to orders for the pending discount series. |
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. |
quantityTo |
double |
{res:itgen_vnet_quantityto} |
☐ |
|
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