Ostendo User Rules - Custom Procedures Controlling Sales Order Pricing and Discounts

Ostendo User Rules - Custom Procedures Controlling Sales Order Pricing and Discounts

Overview:

Within Ostendo, we have built in some specific Stored Procedures within the database that allow technical users to include logic that maybe required specific to a sites requirements.

These Stored Procedures are always called within Ostendo and by default will always return standard output parameters that control the standard behaviour within Ostendo logic relevant to that Stored Procedure.

If these Stored Procedures are modified to include your own specific logic, they will in effect override the standard Ostendo behaviour.

These Stored Procedures are able to be used in scripting or to control discount and pricing behaviour in Ostendo order / invoicing screens.

UserRules Stored Procedures:

USERRULES_GETDISCOUNTQTY

This procedure allows for User specific Discount Logic when order or invoice lines are inserted or updated

There 2 output parameters - the first is either 0 or 1 dependant on whether a discount is being passed back or not (Defaults to 0  - Std Ostendo behaviour)

The second parameter returns the actual discount percent (Defaults to 0)

USERRULES_GETORDERPRICING

This procedure allows for User specific Order Pricing Logic

There 2 output parameters - the first is either 0 or 1 (0 = Don’t run the Standard Order Pricing Logic & 1 = Run the Standard Order Pricing Logic (Defaults to 1 – standard Ostendo behaviour)

The second parameter determines whether the Order/Invoice lines grid needs to be refreshed

USERRULES_GETPRICE

This procedure allows for User specific Pricing Logic when order or invoice lines are inserted or updated

The Input parameter PASSEDDESCRIPTORORITEM is either 'Descriptor Code' or 'Item Code'

There 3 output parameters

 1) the first is whether a price is returned 1 or 0 (Defaults to 0 – std Ostendo behaviour)

 2) The second parameter returns the actual unit price (Defaults to 0 – std Ostendo behaviour)

 3) the third is whether the price is Tax Inclusive 1 or 0 (Defaults to 0 – std Ostendo behaviour)

    • Related Articles

    • Ostendo User Rules - Custom Procedures Controlling Sales Order Pricing and Discounts

      Overview: Within Ostendo, we have built in some specific Stored Procedures within the database that allow technical users to include logic that maybe required specific to a sites requirements. These Stored Procedures are always called within Ostendo ...
    • Summarisation Of Sales and Purchases Invoice Lines

      The purpose of this is to reduce the volume of line records being posted to the Accounting Software. For example, if we have a 50 line invoice, each line is presently posted to the Accounting Software. If this enhancement is turned on, Ostendo would ...
    • 24/11/2021 - Summarisation of Sales and Purchase Lines

      Summarisation of Sales and Purchase Lines As indicated in the Daily Summaries Article published 23th November 2021 we have now built in an enhancement whereby Sales and / or Purchase Lines can be summarised at a Cost Centre level within an invoice ...
    • 20/06/2023 - Ostendo User Defined Constants

      Development-X Ltd User Defined Constants User-Defined Constants allow an Administrator to specify a fixed value for a Constant. By having the Constant in this table called USERDEFINEDCONSTANTS, it allows you to amend the value of the Constant without ...
    • How do I set up Discounts relating to the evaluated Sell Price?

      There are two options relating to Discounts. 1. You can apply a Discount to the base or calculated price for Items or Descriptors. To create a Discount go into Pricing>Discount Matrix where you will see the Discounting maintenance screen. 2. You can ...