Table of Contents

Concept

A Pricing Calculation Lock (or Pricing Lock for short) refers to the ability to lock an order from price changes associated with calculated changes in the base price. The following items will not be recalculated when pricing calculation lock is in affect:

The system essentially treats these items as overridden and does not update their value. All other values are calculated normally.

The pricing lock is turned on or off for then entire order, though it may be temporarily disabled for any line item to permit changes to that line.

Lock States

If an order has a pricing lock, the initial state of every line item is Locked. For each line item on a locked order, you can right-click on the line item and change the lock to one of the following statesThere is an option in product setup to disallow that product from being locked. (This is most desirable for shipping and installation products where the final price is not known when the order is created.)For these products, the menu option will simply indicate that “Locking is not allowed due to this products settings.” :

Allowed Actions for Different Lock States

When the line item is Locked for Pricing Calculations the following changes are still permitted but do not change the price:

When the line item is Unlocked for Pricing Calculations the following changes are allowed:

When the line item is Unlocked for Values Entry, the following changes are allowed but will not affect price:

, height, width, or any other variable.

The price lock does not prevent changes in pricing due to the following actions:

.

Locking Rules

  1. A locked order is always thought of as entirely locked or entirely unlocked.
  2. You may temporarily unlock a line item.
  3. When a locked order or estimate is saved, all temporary locks are removed. (i.e., All line items revert to being locked on next edit.)
  4. You can unlock a line item or a child item. Unlocking a parent item does not unlock its children automatically.
  5. You can not lock or unlock variations. They follow the locking of the estimate as a whole.
  6. You can add new line items to a locked TransHeader (provided it is in edit mode).
  7. You can add new child items to a locked line item.
  8. You can promote or demote locked line items.
  9. You can delete a locked line item.
  10. You can add new line items to a locked TransHeader. Upon save, those items will also be locked.
  11. You can move locked line items up and down.
  12. You can clone a locked item. The new child item is not locked.
  13. You can Assign-To, Complete, and Change the station of a locked line item.
  14. You can manually add or override part information on locked line items.
  15. You can change all information on the advanced tab on locked line items.

Options

The following options are user defined under System Setup | Price Calculation Locks. (Default values are indicated below. An 'x' indicates it defaults to checked, blank indicates it defaults to unchecked.)

The following option is available for each product. (Default values are indicated below. An 'x' indicates it defaults to checked, blank indicates it defaults to unchecked.)

Actions

The following actions were added to orders, service tickets, and estimates (security rights permitting):

The following actions were added to locked line items (security rights permitting):

Security Rights

The rights to set and release locks are automatically granted to users that can edit the order. There are no additional rights associated with locking and unlocking.

User Interface Changes

The icon on the items tree in the order or estimate will be changed to a “locked” or “unlocked” icon. Changing the locked/unlocked state can be set by clicking on the icon. Depending on the current lock state, the order may be immediately locked or an unlock menu will appear.

Order Level Locking

If the order is currently unlocked, clicking on any unlocked icon on the order level row locks the (entire) order.

If the order is already locked and the user clicks on the order level row, a menu appears with the “Remove All Locks on All Line Items” option.

Line Item Level Locking

If the order is currently unlocked, clicking on any unlocked icon on any line item locks the (entire) order.

If the order is already locked and the user clicks on a locked line item, a menu appears with the various options to remove locks.

If the order is already locked and the user clicks on a unlocked line item, a menu appear with the options to re-lock the line item and remove all locks.

Product Level Locking

At the product level :

Other Changes

The following other changes are implemented in Control as part of this revision:

Import

All imported Orders and Estimates automatically default to locked.

CFL

The PriceLock property of the TrasnDetail and TransHeader is accessible inside of CFL, as in the following example:

code format="pascal"

IF (Transaction.IsPriceCalcLocked = True) THEN

“Order/Estimate Locked Out!”

ELSEIF (IsPriceCalcLocked = True) THEN

“Line Locked Out!”

ELSE

“Free to Change!”

ENDIF

<code>

Reports

No reports are included or modified with this feature.

Database Changes

The following fields would be added to the database. (Each new field is represented as TableName.FieldName below.)

Technical Notes

Additional technical notes:

Source

Contributor: Team Cyrious Date: May, 2010 Version: Control 5.0