Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
devel:documentation:adm:contracts [2019/02/07 14:08] kotisovam created (admin guide) page on time slices |
— (current) | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Time slices of contractual relationships | ||
- | |||
- | Many companies employ data sources about users, employees or org. structures that work with so-called time slices. For this purpose, an agenda of contract time slices was designed. | ||
- | |||
- | < | ||
- | |||
- | <note important> | ||
- | |||
- | ===== Task for updating a contract using a current slice ===== | ||
- | To recalculate the current slice, you can use the `SelectCurrentContractSliceTaskExecutor` task. This task seeks all slices that should be used for the current date, and copy their values to their parent contracts. | ||
- | |||
- | <note important> | ||
- | |||
- | <note tip>By default, this task is triggered every day at **0:30 AM**.</ | ||
- | |||
- | |||
- | ===== Protection of the contract validity ===== | ||
- | |||
- | There may be a situation when one time slice **ends** the contract, while there is another time slice that **restarts** this contract. If there is no gap between its termination and restart dates, then the contract will not terminate (no accounts will be deleted). | ||
- | However, if the dates do not follow seamlessly, then (by default) **the contract is terminated**, | ||
- | |||
- | In some situations (projects), a **protection period** must be used over the course of which a contract will **not be terminated**, | ||
- | |||
- | < | ||
- | |||
- | <note tip> | ||
- | **By default**, protection interval is **disabled**. The method how to create/ | ||
- | |||
- | <note important> | ||
- | |||
- | |||
- | ===== Sync ===== | ||
- | The synchronization of time slices is very similar to the sync of contracts. | ||
- | |||
- | Sync of slices adds new attributes: | ||
- | * **Contract code** - Code of the parent contract. This `String` value represents relation between all slices for the same contract. It means all slices of a contract must have the same value. | ||
- | * **Valid from of slice** - Defines time from which a slice is valid. **Valid till of slice** is computed automatically (relying on the validity of the next slice) after saving. | ||
- | |||
- | < | ||
- | |||
- | **More informations about sync** of time slices are [[|here]]. | ||