Hi everyone,
I have three main entities: Firms, Contracts, and Allowances.
I have successfully created the firmCode. However, I am struggling to create the contractCode and allowanceCode formulas.
Could someone guide me on how to implement these formulas in EspoCRM so that the codes are generated automatically and sequentially for each firm and contract?
Thanks in advance!
I have three main entities: Firms, Contracts, and Allowances.
- Firms: I have created a firmCode using a formula that takes the initials of each word in the firm name.
Example:
Firm Name: Apples and Bananas Inc. → Firm Code: AABI - Contracts: Linked to Firms. I want to generate a contractCode based on the firmCode, in a sequential manner per firm:
Example:- First contract for this firm → AABI-1
- Second contract → AABI-2
- Allowances: Linked to Contracts. I want to generate an allowanceCode based on the contractCode and the allowance’s sequential number per contract:
Example:- First allowance from second contract → AABI-2-1
I have successfully created the firmCode. However, I am struggling to create the contractCode and allowanceCode formulas.
Could someone guide me on how to implement these formulas in EspoCRM so that the codes are generated automatically and sequentially for each firm and contract?
Thanks in advance!
Comment