Price refund

This table is used to log reductions in purchase prices, for suppliers with a price refund agreement.

You can keep the rows as long as you desire. In addition to forming the basis for refunds, you can also use the table to illustrate the price history.

You enable the price refund agreement for a supplier by checking Price refund agreement in the Supplier options field in the Associate table. Reductions in purchase price after discount in percent and -amount are then automatically logged in the Price refund table when:

  • The Price- and discount matrix table is saved or edited, or

  • Values are imported using Overwrite stated fields in the Import dialog

You can also edit the table manually.

These rows are displayed in the Refund request report in the Associate table.

PropertyValueDescription
DatabaseCompanyThis table is in the company databases.
SQL namePrRepThe table name in the database.
API identifierpriceRefundThe API identifier used in GraphQL.
Table no.179The table number in the data model.

The following fields exist in this table:

Amount (dom.)

The price reduction after discount in the default currency.

This field is calculated from the values in the New disc. amount (dom.), New price (dom.), New disc. %, Prev. disc. amount (dom.), Previous price (dom.), Previous discount %, Unrealised stock inc. and Realised stock fields.

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainAmountDecimal
Write AccessNoneYou are not allowed to modify the value in this field.
SQL nameDAmThe database field name.
API identifieramountDomesticThe API identifier used in GraphQL.
Number6793 

Amount

The price reduction after discount in current currency.

This field is calculated from the values in the New disc. amount, New price, New disc. %, Prev. disc. amount, Previous price, Previous discount %, Unrealised stock inc. and Realised stock fields.

PropertyValueDescription
Visible by defaultYesThis field is visible by default in the table display.
DomainAmountDecimal
Write AccessNoneYou are not allowed to modify the value in this field.
SQL nameAmThe database field name.
API identifieramountInCurrencyThe API identifier used in GraphQL.
Number6443 

Currency no.

The currency valid for this price refund.

Note:
If you double-click or press * in this field, you can look up a value in the related table.
PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainCurrency no.Integer
SQL nameCurThe database field name.
API identifiercurrencyNoThe API identifier used in GraphQL.
Number6788 
Table 1. Table relations
To tablePurposeFrom columnsTo columnsComments
CurrencyCurrency
  • Currency no.

Exchange rate

The exchange rate used for this price refund.

The value is retrieved from the Currency table. This field is used to calculate values in the default currency.

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainExchange rateDecimal
SQL nameExRtThe database field name.
API identifierexchangeRateThe API identifier used in GraphQL.
Number6789 

Gr. 1

A group to which the price refund belongs.

Price refund grouping 1 texts for different languages can be defined in the Text table. These texts has text type 133.
Note:
If you double-click or press * in this field, you can look up a Price refund grouping 1 in the Text table.
PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainPrice refund grouping 1Integer
SQL nameGrThe database field name.
API identifiergroup1The API identifier used in GraphQL.
Number6806 

Gr. 2

A group to which the price refund belongs.

Price refund grouping 2 texts for different languages can be defined in the Text table. These texts has text type 134.
Note:
If you double-click or press * in this field, you can look up a Price refund grouping 2 in the Text table.
PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainPrice refund grouping 2Integer
SQL nameGr2The database field name.
API identifiergroup2The API identifier used in GraphQL.
Number6807 

Inf. 1

Additional price refund information.

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainInf. @Text (40)
SQL nameInfThe database field name.
API identifierinformation1The API identifier used in GraphQL.
Number6808 

Inf. 2

Additional price refund information.

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainInf. @Text (40)
SQL nameInf2The database field name.
API identifierinformation2The API identifier used in GraphQL.
Number6809 

Line no.

Each line in the table is given a consecutive number in the order in which they are entered.

Note:
The Line no. does not change when inserting new lines between existing ones. The Sort seq. no. specifies the order of the lines and is affected when new lines are inserted between existing lines.

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainNo.Integer
Primary keyYesSup. no., Line no.
SQL nameLnNoThe database field name.
API identifierlineNoThe API identifier used in GraphQL.
Number6437 

New disc. %

The new percentage discount for the product.

When this field changes, the Amount and Amount (dom.) fields are recalculated.

PropertyValueDescription
Visible by defaultYesThis field is visible by default in the table display.
DomainQuantityDecimal
SQL nameNewDcPThe database field name.
API identifiernewDiscountPercentThe API identifier used in GraphQL.
Number6801 

New disc. amount

The new discount amount for the product in the current currency.

When this field changes, the Amount field is recalculated.

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainQuantityDecimal
SQL nameNewDcAmThe database field name.
API identifiernewDiscountAmountInCurrencyThe API identifier used in GraphQL.
Number6802 

New disc. amount (dom.)

The new discount amount for the product in the default currency.

When this field changes, the Amount (dom.) field is recalculated.

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainQuantityDecimal
SQL nameNewDcDAmThe database field name.
API identifiernewDiscountAmountDomesticThe API identifier used in GraphQL.
Number6803 

New price

The new price of the product in the current currency.

When this field changes, the Amount field is recalculated.

PropertyValueDescription
Visible by defaultYesThis field is visible by default in the table display.
DomainPriceDecimal
SQL nameNewPriceThe database field name.
API identifiernewPriceInCurrencyThe API identifier used in GraphQL.
Number6440 

New price (dom.)

The new price of the product in the default currency.

When this field changes, the Amount (dom.) field is recalculated.

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainPriceDecimal
SQL nameNewDPrThe database field name.
API identifiernewPriceDomesticThe API identifier used in GraphQL.
Number6791 

New price after discount

The new price of the product after discount in the current currency.

This field is calculated from the New price, New disc. % and New disc. amount fields.

PropertyValueDescription
Visible by defaultYesThis field is visible by default in the table display.
DomainPriceDecimal
Write AccessNoneYou are not allowed to modify the value in this field.
Memory fieldYesThe value in this field is only displayed in the program, it is not stored in the database.
API identifiernewPriceAfterDiscountInCurrencyThe API identifier used in GraphQL.
Number6796 

New price after discount (dom.)

The new price of the product after discount in the default currency.

This field is calculated from the New price (dom.), New disc. % and New disc. amount (dom.) fields.

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainPriceDecimal
Write AccessNoneYou are not allowed to modify the value in this field.
Memory fieldYesThe value in this field is only displayed in the program, it is not stored in the database.
API identifiernewPriceAfterDiscountDomesticThe API identifier used in GraphQL.
Number6797 

Prev. disc. amount

The previous value of the discount amount in the current currency.

When this field changes, the Amount field is recalculated.

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainQuantityDecimal
SQL namePreDcAmThe database field name.
API identifierpreviousDiscountAmountInCurrencyThe API identifier used in GraphQL.
Number6799 

Prev. disc. amount (dom.)

The previous value of the discount amount in the default currency.

When this field changes, the Amount (dom.) field is recalculated.

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainQuantityDecimal
SQL namePreDcDAmThe database field name.
API identifierpreviousDiscountAmountDomesticThe API identifier used in GraphQL.
Number6800 

Prev. price after disc.

The previous price after discount in the current currency.

This field is calculated from the Previous price, Previous discount % and the Prev. disc. amount fields

PropertyValueDescription
Visible by defaultYesThis field is visible by default in the table display.
DomainPriceDecimal
Write AccessNoneYou are not allowed to modify the value in this field.
Memory fieldYesThe value in this field is only displayed in the program, it is not stored in the database.
API identifierpreviousPriceAfterDiscountInCurrencyThe API identifier used in GraphQL.
Number6794 

Prev. price after disc. (dom.)

The previous price after discount in the default currency.

This field is calculated from the Previous price (dom.), Previous discount % and the Prev. disc. amount (dom.) fields

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainPriceDecimal
Write AccessNoneYou are not allowed to modify the value in this field.
Memory fieldYesThe value in this field is only displayed in the program, it is not stored in the database.
API identifierpreviousPriceAfterDiscountDomesticThe API identifier used in GraphQL.
Number6795 

Previous discount %

The previous percentage discount.

When this field changes, the Amount and Amount (dom.) fields are recalculated.

PropertyValueDescription
Visible by defaultYesThis field is visible by default in the table display.
DomainQuantityDecimal
SQL namePreDcPThe database field name.
API identifierpreviousDiscountPercentThe API identifier used in GraphQL.
Number6798 

Previous price

The previous value of the price in the current currency.

When this field changes, the Amount field is recalculated.

PropertyValueDescription
Visible by defaultYesThis field is visible by default in the table display.
DomainPriceDecimal
SQL namePrePriceThe database field name.
API identifierpreviousPriceInCurrencyThe API identifier used in GraphQL.
Number6439 

Previous price (dom.)

The previous value of the price in the default currency.

When this field changes, the Amount (dom.) field is recalculated.

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainPriceDecimal
SQL namePreDPrThe database field name.
API identifierpreviousPriceDomesticThe API identifier used in GraphQL.
Number6790 

Price protection proc.

Settings defining the behaviour of the price refund record.

The values are suggested from the Price protection proc. field in the Company information table.

A look-up opens the dialog box where you can see the following check boxes and options:

Sales orders

Update sales price
Update cost price

Purchase orders

Update purchase prices
Update cost price

____

Update shipments and produce transactions
PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainPrice protection proc.Integer
SQL namePrRepPThe database field name.
API identifierpriceProtectionProcessingThe API identifier used in GraphQL.
Number6805 

Price reduction

The difference between value in the Prev. price after disc. field and the value in the New price after discount field.

PropertyValueDescription
Visible by defaultYesThis field is visible by default in the table display.
DomainPriceDecimal
Write AccessNoneYou are not allowed to modify the value in this field.
Memory fieldYesThe value in this field is only displayed in the program, it is not stored in the database.
API identifierpriceReductionInCurrencyThe API identifier used in GraphQL.
Number6441 

Price reduction (dom.)

The difference between value in the Prev. price after disc. (dom.) field and the value in the New price after discount (dom.) field.

The field is updated when the values in the Prev. price after disc. (dom.) and New price after discount (dom.) fields changes.

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainPriceDecimal
Write AccessNoneYou are not allowed to modify the value in this field.
Memory fieldYesThe value in this field is only displayed in the program, it is not stored in the database.
API identifierpriceReductionDomesticThe API identifier used in GraphQL.
Number6792 

Product no.

The product that this price refund record is valid for.

Note:
If you double-click or press * in this field, you can look up a value in the related table.
PropertyValueDescription
Visible by defaultYesThis field is visible by default in the table display.
DomainProduct no.Text (40)
SQL nameProdNoThe database field name.
API identifierproductNoThe API identifier used in GraphQL.
Number6438 
Table 2. Table relations
To tablePurposeFrom columnsTo columnsComments
ProductProduct
  • Product no.
Search productSearchProduct
  • Product no.
Stock balanceStockBalance
  • Product no.
  • Warehouse no.
This is a combined foreign key. Making a lookup in one of the fields may also fill in value in the others.

Realised stock

The realised stock, which is the total of the records in the Shipment table for the supplier.

When this field changes, the Amount and Amount (dom.) fields are recalculated.

PropertyValueDescription
Visible by defaultYesThis field is visible by default in the table display.
DomainQuantityDecimal
SQL nameBalThe database field name.
API identifierrealisedStockThe API identifier used in GraphQL.
Number6442 

Refund no.

When you approve printed refund requests, a unique document number is inserted in this field.

The document number is fetched from the Next voucher no. field in the Voucher series table. The record to use from the Voucher series table is specified in the Refund series field in the Company information table.

PropertyValueDescription
Visible by defaultYesThis field is visible by default in the table display.
DomainNo.Integer
SQL nameRepNoThe database field name.
API identifierrefundNoThe API identifier used in GraphQL.
Number6455 

Refund status

The status of the price refund record.

A look-up in this field gives you the following list of possible values:
1 - Requested
This value is set on approval of printed refund requests
2 - Confirmed
This value is set when running the Price refund confirmed processing.
3 - Refused
This value is set when running the Price refund refused processing.
4 - Credit received
This value is set when running the Credit received processing.
PropertyValueDescription
Visible by defaultYesThis field is visible by default in the table display.
DomainRefund statusInteger
SQL nameRepStThe database field name.
API identifierrefundStatusThe API identifier used in GraphQL.
Number6444 

Sort seq. no.

The order of the lines.

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainSort seq. no.Integer
Write AccessNoneYou are not allowed to modify the value in this field.
SQL nameSrtThe database field name.
API identifiersortSequenceNoThe API identifier used in GraphQL.
Number6445 

Sup. no.

The supplier that is connected to this price refund record.

Note:
If you double-click or press * in this field, you can look up a value in the related table.
PropertyValueDescription
Visible by defaultYesThis field is visible by default in the table display.
DomainSup. no.Integer
Primary keyYesSup. no., Line no.
SQL nameSupNoThe database field name.
API identifiersupplierNoThe API identifier used in GraphQL.
Number6436 
Table 3. Table relations
To tablePurposeFrom columnsTo columnsComments
AssociateSupplier
  • Sup. no.

Unrealised stock inc.

The unrealised stock increase, which is the total of the records in the Shipment table, for the specified supplier.

When this field changes, the Amount and Amount (dom.) fields are recalculated.

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainQuantityDecimal
SQL nameStcIncThe database field name.
API identifierunrealisedStockIncreaseThe API identifier used in GraphQL.
Number6506 

Warehouse no.

The warehouse where the specified product is located.

Note:
If you double-click or press * in this field, you can look up a value in the related table.
PropertyValueDescription
Visible by defaultYesThis field is visible by default in the table display.
DomainWarehouse no.Integer
SQL nameStcThe database field name.
API identifierwarehouseNoThe API identifier used in GraphQL.
Number6804 
Table 4. Table relations
To tablePurposeFrom columnsTo columnsComments
WarehouseWarehouse
  • Warehouse no.
Stock balanceStockBalance
  • Product no.
  • Warehouse no.
This is a combined foreign key. Making a lookup in one of the fields may also fill in value in the others.

Control columns

Control columns include information about who has changed the record last and when, and which process that is currently editing the record.

Changed by provenance

The provenance for the record change.

A look-up in this field gives you the following list of possible values:

0 - None

1 - UI

10 - External API

20 - GAiA

21 - AI Connect

100 - Internal service

101 - Task automation

102 - AutoInvoice download

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainProvenanceInteger
Write AccessNoneYou are not allowed to modify the value in this field.
SQL nameChPvnThe database field name.
API identifierchangedByProvenanceThe API identifier used in GraphQL.
NumberA unique column number. 

Changed by user

The name of the user that changed the record.

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainUser nameText (24)
Write AccessNoneYou are not allowed to modify the value in this field.
SQL nameChUsrThe database field name.
API identifierchangedByUserThe API identifier used in GraphQL.
NumberA unique column number. 

Changed date

The date when the record was changed.

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainDateInteger
Write AccessNoneYou are not allowed to modify the value in this field.
SQL nameChDtThe database field name.
API identifierchangedDateThe API identifier used in GraphQL.
NumberA unique column number. 

Changed time

The time when the record was changed.

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainTimeInteger
Write AccessNoneYou are not allowed to modify the value in this field.
SQL nameChTmThe database field name.
API identifierchangedTimeThe API identifier used in GraphQL.
NumberA unique column number. 

Changed time stamp

The date and time when the record was changed.

The field is updated with the UTC time.

This value can be used by external systems to replicate changed data. The column is indexed. 

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainDate/timeDateTime
Write AccessNoneYou are not allowed to modify the value in this field.
SQL nameChTsThe database field name.
API identifierchangedTimestampThe API identifier used in GraphQL.
NumberA unique column number. 

Created by provenance

The provenance for the record creation.

A look-up in this field gives you the following list of possible values:

0 - None

1 - UI

10 - External API

20 - GAiA

21 - AI Connect

100 - Internal service

101 - Task automation

102 - AutoInvoice download

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainProvenanceInteger
Write AccessNoneYou are not allowed to modify the value in this field.
SQL nameCrePvnThe database field name.
API identifiercreatedByProvenanceThe API identifier used in GraphQL.
NumberA unique column number. 

Created by user

The name of the user that created the record.

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainUser nameText (24)
Write AccessNoneYou are not allowed to modify the value in this field.
SQL nameCreUsrThe database field name.
API identifiercreatedByUserThe API identifier used in GraphQL.
NumberA unique column number. 

Created date

The date when the record was created.

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainDateInteger
Write AccessNoneYou are not allowed to modify the value in this field.
SQL nameCreDtThe database field name.
API identifiercreatedDateThe API identifier used in GraphQL.
NumberA unique column number. 

Created time

The time when the record was created.

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainTimeInteger
Write AccessNoneYou are not allowed to modify the value in this field.
SQL nameCreTmThe database field name.
API identifiercreatedTimeThe API identifier used in GraphQL.
NumberA unique column number. 

Created time stamp

The date and time when the record was created.

The field is updated with the UTC time.

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainDate/timeDateTime
Write AccessNoneYou are not allowed to modify the value in this field.
SQL nameCreTsThe database field name.
API identifiercreatedTimestampThe API identifier used in GraphQL.
NumberA unique column number. 

Edit status

The current status of the record.

A look-up in this field gives you the following list of possible values:

0 - Unchanged: The record is read, but not changed.

1 - Inserted: The record is new.

2 - Changed: The record is changed.

3 - Deleted: The record is deleted.

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainEdit statusInteger
Write AccessNoneYou are not allowed to modify the value in this field.
SQL nameLckStThe database field name.
API identifiereditStatusThe API identifier used in GraphQL.
NumberA unique column number. 

Process no

The Process no. from the Active company process table which is currently using or has control of this record.

Note:
If you double-click or press * in this field, you can look up a value in the related table.
PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainProcess no.Integer
Write AccessNoneYou are not allowed to modify the value in this field.
SQL nameChPrcThe database field name.
API identifierlockedByProcessNoThe API identifier used in GraphQL.
NumberA unique column number. 
Table 5. Table relations
To table Purpose From columns To columns Comments
Active company process CompanyProcess Process no. Process no.