Please enable JavaScript to view this site.

Made in EU
Visma.net Financials Forums

Navigation: Catalog: VismaNet > Schemas > Schema: PurchaseOrder > Tables

PurchaseOrderDiscountDetails: Visma.net Financials Purchase Order Discount Details

Get a range of Purchase Order - ScreenId=PO301000Request page size must be lower or equal to the allowed max page size which is returned as part of the metadata information.If requested page size is greater than allowed max page size, request will be limited to max page sizeChange log:2020-May:Added forced pagination

Catalog: VismaNet

Schema: PurchaseOrder

Label: Purchase Order Discount Details

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 PurchaseOrderDiscountDetails. 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

branch

string

 

Filter on Branch

deliveryDate

string

 

This value indicates the date the document is due for delivery. Use it to retrieve all records that have the delivery date since that time, up to the future.Accepted format:* ```yyyy-MM-dd```* ```yyyy-MM-dd HH:mm:ss```* ```yyyy-MM-dd HH:mm:ss.FFF```* ```yyyy-MM-ddTHH:mm:ss```* ```yyyy-MM-ddTHH:mm:ss.FFF```_Note:_ __DeliveryDate__ and __DeliveryDateCondition__ are __mutually inclusive__.

deliveryDateCondition

string

 

This value represents the condition to be applied to the Due Date when retrieving records.Accepted values (without the single quotes):* '>' for greater than* '<' for less than* '>=' for greater than or equal* '<=' for less than or equal_Note:_ __DeliveryDate__ and __DeliveryDateCondition__ are __mutually inclusive__.

greaterThanValue

string

 

Filter on order no. and forward

includeCustomFreeFields

boolean

 

Parameter to include custom free fields information in the result set, if true then custom free fields will be included in the result set

lastModifiedDateTime

string

 

This value, generated by the system, indicates the last time the record was modified. Use it to retrieve all records that have been modified since that time, up to the present.Accepted format:* ```yyyy-MM-dd```* ```yyyy-MM-dd HH:mm:ss```* ```yyyy-MM-dd HH:mm:ss.FFF```* ```yyyy-MM-ddTHH:mm:ss```* ```yyyy-MM-ddTHH:mm:ss.FFF```_Note:_ __LastModifiedDateTime__ and __LastModifiedDateTimeCondition__ are __mutually inclusive__.

lastModifiedDateTimeCondition

string

 

This value represents the condition to be applied when retrieving records.Accepted values (without the single quotes):* '>' for greater than* '<' for less than* '>=' for greater than or equal* '<=' for less than or equal_Note:_ __LastModifiedDateTime__ and __LastModifiedDateTimeCondition__ are __mutually inclusive__.

orderDate

string

 

This value indicates the order date. Use it to retrieve all records that have the order date since that time, up to the future.Accepted format:* ```yyyy-MM-dd```* ```yyyy-MM-dd HH:mm:ss```* ```yyyy-MM-dd HH:mm:ss.FFF```* ```yyyy-MM-ddTHH:mm:ss```* ```yyyy-MM-ddTHH:mm:ss.FFF```_Note:_ __OrderDate__ and __OrderDateCondition__ are __mutually inclusive__.

orderDateCondition

string

 

This value represents the condition to be applied to the order date when retrieving records.Accepted values (without the single quotes):* '>' for greater than* '<' for less than* '>=' for greater than or equal* '<=' for less than or equal_Note:_ __OrderDate__ and __OrderDateCondition__ are __mutually inclusive__.

orderStatus

string

 

Select and filter on Status. (Values: Balanced, Cancelled, Closed, Hold, Open, PendingEmail, PendingPrint, Printed, Voided)

orderType

string

 

Select and filter on Type. (Values: RegularOrder, DropShip, Blanket, StandardBlanket)

supplier

string

 

Filter on Supplier.

 

Columns of Table Function

The columns of the table function PurchaseOrderDiscountDetails are shown below. Each column has an SQL data type.

Name

Data Type

Label

Required

Documentation

branch_name

string

Branch Name

Click the magnifier. > The name.

branch_number

string

Branch Number

Click the magnifier. > The identifier.

COMPANY_CODE

string(30)

Company Code

Partition code, segmenting the data.

COMPANY_NAME

string(240)

Company Name

Name of the partition.

controlTotal

double

Total for Control

The top part > Control total > The order's total amount (including VAT), which you must enter manually when you attempt to save the order with the Balanced status.

controlTotalInBaseCurrency

double

{res:itgen_vnet_controltotalinbasecurrency}

The top part > View base > A button that recalculates the Control total to your base currency if the amount on the purchase order is in another currency then base currency. When you click the button, the button toggles to View currency.

currency

string

Currency

The top part > Currency > The currency the purchase order will be paid in.

customDateTimeUTC1

datetime

{res:itgen_vnet_customdatetimeutc1}

A free custom colum of type DateTime - in UTC timezone

customDec1

double

{res:itgen_vnet_customdec1}

A free custom colum of type decimal with max 4 decimals.

customDec2

double

{res:itgen_vnet_customdec2}

A free custom colum of type decimal with max 4 decimals.

customInt1

int32

{res:itgen_vnet_customint1}

A free custom colum of type int

customInt2

int32

{res:itgen_vnet_customint2}

A free custom colum of type int

customStr1

string

{res:itgen_vnet_customstr1}

A free custom colum of type string with max length 100.

customStr2

string

{res:itgen_vnet_customstr2}

A free custom colum of type string with max length 100.

customStr3

string

{res:itgen_vnet_customstr3}

A free custom colum of type string with max length 100.

customStr4

string

{res:itgen_vnet_customstr4}

A free custom colum of type string with max length 100.

customStr5

string

{res:itgen_vnet_customstr5}

A free custom colum of type string with max length 100.

date

datetime

Date

Mandatory field: The top part > Date* > The date when the purchase order was created.

description

string

Description

The top part > Description > A brief description of the purchase order.

discount

double

Discount

The table > Discount percent > The discount percent if by definition the discount is calculated as a percentage.

discountableAmt

double

{res:itgen_vnet_discountableamt}

The table > Discountable amt. > The amount used as a base for discount calculation if the discount is defined as based on the amount.

discountableQty

double

{res:itgen_vnet_discountableqty}

The table > Discountable qty. > The quantity used as a base for discount calculation if the discount is defined as based on the item quantity.

discountAmt

double

Discount Amount

The table > Discount amt. > The amount of the discount.

discountCode

string

Discount Code

Mandatory field: The table > Discount code* > The discount code of the supplier discount applied to the document automatically or manually.

dontEmail

boolean

Don't Email

Other information > Do not email > A check box that indicates (if selected) indicates that the purchase order should not be emailed.

dontPrint

boolean

Don't Print

Other information > Do not print > A check box that indicates (if selected) that the current purchase order should not be printed.

emailed

boolean

Emailed

Other information > Emailed > A check box that indicates (if selected) indicates that the current purchase order was emailed.

errorInfo

string

Error Message

 

exchangeRate

double

Exchange Rate

 

fobPoint

string

{res:itgen_vnet_fobpoint}

Delivery instructions tab > The Delivery instructions section > FOB point > The FOB point where the title of goods (listed on this purchase order) is transferred from the supplier to the company.

freeItem

int32

Free Item

The table > Free item > The item ID of the free item, if one is specified by the discount applied to the document.

freeItemQty

double

{res:itgen_vnet_freeitemqty}

The table > Free item qty.> The quantity of the free item to be added as the discount.

hold

boolean

Hold

The top part > Hold > A check box that you select to give the purchase order the On hold status.

lastModifiedDateTime

datetime

Last Modified

System generated information.

lineNbr

int32

{res:itgen_vnet_linenbr}

The table > Line number.

lineTotal

double

Line Total

The top part > Line total > The total sum of the Extended amount entries for all lines in the current purchase order. This value is calculated by the system and users cannot manually change it.

lineTotalInBaseCurrency

double

{res:itgen_vnet_linetotalinbasecurrency}

The top part > View base > A button that recalculates the Line total to your base currency if the amount on the purchase order is in another currency then base currency. When you click the button, the button toggles to View currency.

location_id

int32

Location ID

Click the magnifier > The identifier

location_name

string

Location Name

Click the magnifier > The displayed name

manualDiscount

boolean

Manual Discount

The table > Manual discount > A check box that indicates (if selected) that the supplier discount shown in this row has been applied manually .

metadata_maxPageSize

int64

Metadata Max Pagesize

 

metadata_totalCount

int64

Total Count

 

note

string

Note

Icon Notes on top of the window > Pop-up window for providing any user-defined text connected to the document.

openBalance

double

Open Balance

Other information > Open amount > The amount of these items that are ordered but not received.

openQuantity

double

{res:itgen_vnet_openquantity}

Other information > Open Quantity > The difference between the quantities of ordered and received items.

orderNbr

string

Order Number

The top part > Order no. > The unique reference number of the purchase order, which the system assigns based on the number series assigned to purchase orders of this type, as specified in the PO101000 window.

orderTotal

double

Order Total

The Top part > Order total > The total sum for the purchase order, including VAT. This read-only value is the sum of the Line total and VAT total values.

orderTotalInBaseCurrency

double

{res:itgen_vnet_ordertotalinbasecurrency}

The top part > View base > A button that recalculates the Order total to your base currency if the amount on the purchase order is in another currency then base currency. When you click the button, the button toggles to View currency.

orderType

string

Order Type

The top part > Type > The type of the purchase order, which can be one of these options: Normal, Drop-ship, Blanket, Default

owner_id

guid

Owner ID

Click the magnifier > The identifier

owner_name

string

Owner Name

Click the magnifier > The displayed name

paymentRefNbr

string

Payment Reference Number

Other information tab > Prepayment ref. no. > The reference number of the prepayment request linked to this purchase order, if any.

printed

boolean

Printed

Other information > Printed > A check box that indicates (if selected) that the current purchase order was printed.

promisedOn

datetime

Promised on

The top part > Delivery date > The date when the supplier promised that the items listed in the order will be received at their destination location.

remitAddress_addressId

int32

{res:itgen_vnet_remitaddress_addressid}

 

remitAddress_addressLine1

string

{res:itgen_vnet_remitaddress_addressline1}

Address 1 > The first line of the customer's/supplier's/company's/employee's contact address.

remitAddress_addressLine2

string

{res:itgen_vnet_remitaddress_addressline2}

Address 2 > The second line of the address.

remitAddress_addressLine3

string

{res:itgen_vnet_remitaddress_addressline3}

Address 3 > The third line of the address.

remitAddress_city

string

{res:itgen_vnet_remitaddress_city}

City > The city.

remitAddress_country_errorInfo

string

{res:itgen_vnet_remitaddress_country_errorinfo}

 

remitAddress_country_id

string

{res:itgen_vnet_remitaddress_country_id}

Mandatory field: Country ID* > The unique two-letter country ID according to international standard ISO 3166.

remitAddress_country_metadata_maxPageSize

int64

{res:itgen_vnet_remitaddress_country_metadata_maxpagesize}

 

remitAddress_country_metadata_totalCount

int64

{res:itgen_vnet_remitaddress_country_metadata_totalcount}

 

remitAddress_country_name

string

{res:itgen_vnet_remitaddress_country_name}

Mandatory field: Country name* > The complete name of the country.

remitAddress_county_id

string

{res:itgen_vnet_remitaddress_county_id}

Click the magnifier > The identifier

remitAddress_county_name

string

{res:itgen_vnet_remitaddress_county_name}

Click the magnifier > The displayed name

remitAddress_overrideAddress

boolean

{res:itgen_vnet_remitaddress_overrideaddress}

The Supplier info tab > The Supplier address section > Override > A check box that you select to override (that is, to edit ) the default shipping address for the supplier.

remitAddress_postalCode

string

{res:itgen_vnet_remitaddress_postalcode}

Postcode > The postcode.

remitContact_attention

string

{res:itgen_vnet_remitcontact_attention}

Attention > The attention line as it is used in your customer's/supplier's/company's business letters. The intention of this line is to direct the letter to the right person if the letter is not addressed to any specific person.

remitContact_contactId

int32

{res:itgen_vnet_remitcontact_contactid}

 

remitContact_email

string

{res:itgen_vnet_remitcontact_email}

Email > The email address of the customer/supplier/company as a business entity.

remitContact_fax

string

{res:itgen_vnet_remitcontact_fax}

Fax > The fax number.

remitContact_name

string

{res:itgen_vnet_remitcontact_name}

Name > The legal name of to appear on the documents.

remitContact_overrideContact

boolean

{res:itgen_vnet_remitcontact_overridecontact}

The Supplier information tab > The Supplier contact section > Override > A check box that you select to override (edit) the default contact settings for the supplier.

remitContact_phone1

string

{res:itgen_vnet_remitcontact_phone1}

Phone 1 > The default phone number.

remitContact_phone2

string

{res:itgen_vnet_remitcontact_phone2}

Phone 2 > An additional phone number.

remitContact_web

string

{res:itgen_vnet_remitcontact_web}

Web > The website of the company, if one exists.

requisitionRefNbr

string

{res:itgen_vnet_requisitionrefnbr}

Other information tab > Requisition ref. no. > The reference number of the requisition document associated with the purchase order, if any.

salesOrderNbr

string

{res:itgen_vnet_salesordernbr}

Other information tab > Sales order no. > The ID of the sales order associated with the purchase order.

salesOrderType

string

{res:itgen_vnet_salesordertype}

Other information tab > Sales order type > The type of the sales order associated with the purchase order.

sequanceID

string

{res:itgen_vnet_sequanceid}

Mandatory field: The table > Series ID* > The ID of the discount sequence applied to the document.

shippingAddress_addressId

int32

{res:itgen_vnet_shippingaddress_addressid}

 

shippingAddress_addressLine1

string

{res:itgen_vnet_shippingaddress_addressline1}

Address 1 > The first line of the customer's/supplier's/company's/employee's contact address.

shippingAddress_addressLine2

string

{res:itgen_vnet_shippingaddress_addressline2}

Address 2 > The second line of the address.

shippingAddress_addressLine3

string

{res:itgen_vnet_shippingaddress_addressline3}

Address 3 > The third line of the address.

shippingAddress_city

string

{res:itgen_vnet_shippingaddress_city}

City > The city.

shippingAddress_country_errorInfo

string

{res:itgen_vnet_shippingaddress_country_errorinfo}

 

shippingAddress_country_id

string

{res:itgen_vnet_shippingaddress_country_id}

Mandatory field: Country ID* > The unique two-letter country ID according to international standard ISO 3166.

shippingAddress_country_metadata_maxPageSize

int64

{res:itgen_vnet_shippingaddress_country_metadata_maxpagesize}

 

shippingAddress_country_metadata_totalCount

int64

{res:itgen_vnet_shippingaddress_country_metadata_totalcount}

 

shippingAddress_country_name

string

{res:itgen_vnet_shippingaddress_country_name}

Mandatory field: Country name* > The complete name of the country.

shippingAddress_county_id

string

{res:itgen_vnet_shippingaddress_county_id}

Click the magnifier > The identifier

shippingAddress_county_name

string

{res:itgen_vnet_shippingaddress_county_name}

Click the magnifier > The displayed name

shippingAddress_overrideAddress

boolean

{res:itgen_vnet_shippingaddress_overrideaddress}

The Supplier info tab > The Supplier address section > Override > A check box that you select to override (that is, to edit ) the default shipping address for the supplier.

shippingAddress_postalCode

string

{res:itgen_vnet_shippingaddress_postalcode}

Postcode > The postcode.

shippingContact_attention

string

{res:itgen_vnet_shippingcontact_attention}

Attention > The attention line as it is used in your customer's/supplier's/company's business letters. The intention of this line is to direct the letter to the right person if the letter is not addressed to any specific person.

shippingContact_contactId

int32

{res:itgen_vnet_shippingcontact_contactid}

 

shippingContact_email

string

{res:itgen_vnet_shippingcontact_email}

Email > The email address of the customer/supplier/company as a business entity.

shippingContact_fax

string

{res:itgen_vnet_shippingcontact_fax}

Fax > The fax number.

shippingContact_name

string

{res:itgen_vnet_shippingcontact_name}

Name > The legal name of to appear on the documents.

shippingContact_overrideContact

boolean

{res:itgen_vnet_shippingcontact_overridecontact}

The Supplier information tab > The Supplier contact section > Override > A check box that you select to override (edit) the default contact settings for the supplier.

shippingContact_phone1

string

{res:itgen_vnet_shippingcontact_phone1}

Phone 1 > The default phone number.

shippingContact_phone2

string

{res:itgen_vnet_shippingcontact_phone2}

Phone 2 > An additional phone number.

shippingContact_web

string

{res:itgen_vnet_shippingcontact_web}

Web > The website of the company, if one exists.

shippingDestinationType

string

{res:itgen_vnet_shippingdestinationtype}

Shipping instructions tab > The Delivery address section > Shipping destination type > The type of the shipping destination, which is one of the following options: Branch location (meaning a branch of your company), Customer, Supplier, and Warehouse.

shippingLocation_id

int32

Shipping Location ID

Click the magnifier > The identifier

shippingLocation_name

string

Shipping Location Name

Click the magnifier > The displayed name

shipTerms

string

{res:itgen_vnet_shipterms}

Delivery instructions tab > The Delivery instructions section > Shipping terms > The shipping terms for the purchase order.

shipTo_internalId

int32

{res:itgen_vnet_shipto_internalid}

 

shipTo_name

string

{res:itgen_vnet_shipto_name}

The name of the particular destination of the selected type.

shipTo_number

string

{res:itgen_vnet_shipto_number}

The identifier of the particular destination of the selected type.

shipVia

string

Ship Via

Delivery instructions tab > The Delivery instructions section > Ship via > The carrier selected to ship the goods for the purchase order.

skipDiscount

boolean

{res:itgen_vnet_skipdiscount}

The table > Skip discount > A check box that you select to cancel a Group or Document level discount for the document.

status

string

Status

The top part > Status > The system-generated status of the purchase order, which can be one of the following options: On hold, Open, Pending approval, Rejected, Pending printing, Pending e-mail, Closed, Cancelled.

supplier_internalId

int32

Supplier Internal ID

 

supplier_name

string

Supplier Name

The name of the particular destination of the selected type.

supplier_number

string

Supplier Number

The identifier of the particular destination of the selected type.

supplierRef

string

Supplier Reference

The top part > Supplier ref. > The reference number of the supplier document related to this purchase order.

supplierVatZone_defaultTaxCategory_description

string

{res:itgen_vnet_suppliervatzone_defaulttaxcategory_description}

Name of item/description

supplierVatZone_defaultTaxCategory_number

string

{res:itgen_vnet_suppliervatzone_defaulttaxcategory_number}

Number of item

supplierVatZone_defaultVatCategory

string

{res:itgen_vnet_suppliervatzone_defaultvatcategory}

Click the magnifier. The Default VAT category for the VAT zone of the supplier, which is specified in the AP303000 window.

supplierVatZone_description

string

{res:itgen_vnet_suppliervatzone_description}

Click the magnifier. The description for the VAT zone of the supplier, which is specified in the AP303000 window.

supplierVatZone_errorInfo

string

{res:itgen_vnet_suppliervatzone_errorinfo}

 

supplierVatZone_id

string

{res:itgen_vnet_suppliervatzone_id}

Click the magnifier. The identifier for the VAT zone of the supplier, which is specified in the AP303000 window.

supplierVatZone_metadata_maxPageSize

int64

{res:itgen_vnet_suppliervatzone_metadata_maxpagesize}

 

supplierVatZone_metadata_totalCount

int64

{res:itgen_vnet_suppliervatzone_metadata_totalcount}

 

taxTotal

double

Tax Total

The Top part > VAT total > The total VAT amount for all lines added to the current purchase order. This value, also calculated by the system, is the sum of the VAT amounts for each line.

taxTotalInBaseCurrency

double

{res:itgen_vnet_taxtotalinbasecurrency}

The top part > View base > A button that recalculates the VAT total to your base currency if the amount on the purchase order is in another currency then base currency. When you click the button, the button toggles to View currency.

terms_description

string

Terms Description

Click on the magnifier. > The description.

terms_id

string

Terms ID

Click on the magnifier. > The identifier.

timeStamp

byte[]

Timestamp

 

type

string

Type

The table > Type > The type of discount applied to the document (Group or Document).

vatExemptTotal

double

VAT Exempt Total

The Top part > VAT exempt total > The document total that is exempt from VAT. This total is calculated as the taxable amount for the VAT with the Include in VAT exempt total check box selected in the TX205000 window.

vatExemptTotalInBaseCurrency

double

{res:itgen_vnet_vatexempttotalinbasecurrency}

The top part > View base > A button that recalculates the VAT exempt total to your base currency if the amount on the purchase order is in another currency then base currency. When you click the button, the button toggles to View currency.

warehouse_description

string

Warehouse Description

Click on the magnifier. > The description.

warehouse_id

string

Warehouse ID

Click on the magnifier. > The identifier.

workgroupID

int32

{res:itgen_vnet_workgroupid}

Other information tab > Work group ID > The work group to which the purchase order was assigned for processing.

 

23-06-2025 19:16 Version 24.1.116-BETA+5455

X

Important Safety and Usage Information

Intended Use and Limitations: This software, developed by Invantive, is designed to support a variety of business and information technology data processing functions, such as accounting, financial reporting an sales reporting. It is important to note that this software is not designed, tested, or approved for use in environments where malfunction or failure could lead to life-threatening situations or severe physical or environmental damage. This includes, but is not limited to:

  • Nuclear facilities: The software should not be used for operations or functions related to the control, maintenance, or operation of nuclear facilities.
  • Defense and Military Applications: This software is not suitable for use in defense-related applications, including but not limited to weaponry control, military strategy planning, or any other aspects of national defense.
  • Aviation: The software is not intended for use in the operation, navigation, or communication systems of any aircraft or air traffic control environments.
  • Healthcare and Medicine Production: This software should not be utilized for medical device operation, patient data analysis for critical health decisions, pharmaceutical production, or medical research where its failure or malfunction could impact patient health.
  • Chemical and Hazardous Material Handling: This software is not intended for the management, control, or operational aspects of chemical plants or hazardous material handling facilities. Any malfunction in software used in these settings could result in dangerous chemical spills, explosions, or environmental disasters.
  • Transportation and Traffic Control Systems: The software should not be used for the control, operation, or management of transportation systems, including railway signal controls, subway systems, or traffic light management. Malfunctions in such critical systems could lead to severe accidents and endanger public safety.
  • Energy Grid and Utility Control Systems: This software is not designed for the control or operation of energy grid systems, including electrical substations, renewable energy control systems, or water utility control systems. The failure of software in these areas could lead to significant power outages, water supply disruptions, or other public utility failures, potentially endangering communities and causing extensive damage.
  • Other High-Risk Environments: Any other critical infrastructure and environments where a failure of the software could result in significant harm to individuals or the environment.

User Responsibility: Users must ensure that they understand the intended use of the software and refrain from deploying it in any setting that falls outside of its designed purpose. It is the responsibility of the user to assess the suitability of the software for their intended application, especially in any scenarios that might pose a risk to life, health, or the environment.

Disclaimer of Liability: Invantive disclaims any responsibility for damage, injury, or legal consequences resulting from the use or misuse of this software in prohibited or unintended applications.

  
Disclaimer