Change what a journal prints in its numbers
set_number_prefixSets the prefix one journal prints in place of {CODE} in the numbers it draws — FAC instead of SAL, for instance — or puts its code back with null. The journal keeps its code and its counter: the series goes on at the next number. A prefix another journal of the company already prints is refused. The pattern around it (year, width) is the company's number_format in update_company_profile. Needs settings.write.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| company_id | Yes | The company to work in. Ask list_companies if unsure. | |
| journal_id | No | ||
| journal_code | No | The journal by its code, e.g. SAL. get_company lists the journals. | |
| number_prefix | Yes | What {CODE} prints in the numbers this journal draws, e.g. FAC. Null prints the journal's code again. The code itself never changes. |