Joint Contracts
Joint Contracts are used to track the agreed content of trade (articles, prices, delivery terms, etc.) for a selected period, e.g. a year. Using joint contracts, it is possible to create and link partial documents of the agreed trade. Joint contracts can be used both in the Sale module (tracking trade with customers) and in the Purchase module (tracking trade with suppliers). From the point of view of IS K2, sale contracts are actually sales orders and purchase contracts are purchase orders. These contracts are created in a special sale book / purchase book, which are defined in the Contract settings (see the tree menu Sale/Sales order processing / Joint Contracts or Purchase/Supply / Joint Contracts).
The Contract settings also define the books of sales orders/purchase orders in which the actual sales orders/purchase orders derived from these contracts will then be created.
First, we create specific implementation sales orders / orders in the required book of Sales Orders / Purchase Orders, i.e. in the book for contracts.
Joint Contracts are implemented using standard scripts: CT_Purchase.pas for purchase contracts, CT_Order.pas for sale contracts. These scripts can by default be run from the book of sales orders or from the book of orders, respectively. The scripts are run over a specific contract.
Contract settings
In the contract settings function, contracts for purchase and sale can be configured.

Picture: Contract settings
This sets the script parameters according to the conditions of each client (settings of document books, books of contracts, etc.).

Picture: Contract parameters
If more books need to be entered, they are entered in the items. Only books in the items are offered in Alt+F10. If a book is only in the header, Alt+F10 does not work.
Book of blanket orders
The book of contracts is a special book of sales orders that contains a list of all contracts introduced in IS K2. We enter a new contract into the book with the Ins key; an introduced contract cannot be deleted.
Contract document
A contract document represents one long-term contractual relationship that is to be implemented gradually through several sales orders.
When creating a new contract, we fill in only the Basic data tab. We will not fill in the sales order items. The contract items are then entered after running the script - see below. We save the record of the new contract.

Picture: Creating a new sale contract (with the Ins key)
We fill in the Basic data tab and save the contract.

Picture: Filled-in Basic data tab and saving the contract
Then we run the CT_Order.pas script over this record from the Scripts and reports book. (Note: If the script is run in a book other than the one defined in the Contract settings, an information message is displayed. After the script is run, the contract record is displayed in edit mode. Here we can possibly change the header data or fill in the fields intended only for contracts. These are the Blanket order code and Delivery time fields.
Description of selected fields:
Blanket order code |
Each contract has a specific code assigned. Usually we create a new code for a new contract; in exceptional cases we can assign the contract to an already existing code by unchecking the Create new field and selecting one of the already existing codes. |
Delivery time |
In this field, it is possible to separate already finished contracts from running ones. |

Picture: Contract record after running the CT_Order.pas script
After switching to the Items tab, we will insert items.
The Items tab of the contract displays the contract items, and the state, i.e. the fulfilment, of each individual item is also visible here.

Picture: Book Joint Contracts - 2nd page
The form is divided into 3 parts:
- Header information about the customer, document number and prices.
- Contract items display a list of the agreed items to which the contract relates - their quantities, prices, etc.
- The last part displays the specific breakdown of the fulfilment of the given item.
The Create sales order button can be used if there is at least one contract item in the Called-off qty. state and with the To be ordered flag (the symbol
is displayed in the VD column). By pressing the button, we create an actual implementation sales order / order in the book displayed above this button (the book can be changed). All records with the above flag will be inserted into the document. These items can also be added to an already existing document by checking the Add to sales order field.
Contract items - meaning of selected columns:
Position |
Order of the contract item. |
Abbreviation |
Article abbreviation. |
Articles |
Article description. |
Quantity |
Total agreed quantity. |
Balance |
The quantity for which no call-off order has been created yet and which has not been ordered. It equals Quantity - (Called-off qty. + Ordered) |
Called-off qty. |
The quantity for which a call-off order has been created (i.e. it has been specifically planned), but for which no implementation sales order / order exists yet. |
Ordered |
The quantity for which an implementation sales order / order already exists. |
Delivery date |
The final delivery date by which the item is to be fully processed in terms of quantity. |
We insert a new contract item with the Ins key in the upper table. After creating it and closing the form with the Enter key, we can correct the data by pressing the F5 key on the given item. After the item is saved, its price is automatically transferred to the supplier prices, where it is visible with the relevant contract code.

Picture: Inserting a contract item
The lower part of the form shows the breakdown of the specific contract item on which the cursor in the middle part is placed.
Item type |
Shows the state of this part of the item.
|
Abbreviation |
Article abbreviation. |
Articles |
Article description. |
Quantity |
The quantity processed by this row. The row with the item type Main displays the quantity remaining to be processed. |
Delivery date |
Delivery date of the given item. The date is automatically copied into the Desired delivery field in the item of the implementation sales order. |
MS |
For items of the Call-off order type, the symbol |
A new record for the relevant item on which the cursor in the middle part of the form is placed is created by opening, with the Enter key, an item of the Main type or another item that we want to specify or split.

Picture: Joint Contracts - change of the original item when creating a new item
In the opened form, we press Ins, thus creating a new record by which we split the original one.

Picture: Joint Contracts - New item in the lower part of the form
We adjust the required quantity, the delivery date or the description. If we want to create an implementation document for the given record, we check the To be ordered field. We confirm the item by pressing the OK button. A new row is created in the lower part of the form.
Some data of the record can be changed by pressing the F5 key on the given record. In the same way, we can also arrange for the subsequent creation of a document by checking the Create document field here. The implementation document itself will be created only by pressing the Create sales order button in the upper part of the 2nd page of the contract. All records with the flag in the VD column in the lower part of the form will be inserted into this document. For identification of the sales order, the CT note from the 1st page of the contract and the implementation dates will be automatically copied to the newly created document.