{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"description":"Budget category to which an amount can be allocated.","properties":{"$schema":{"default":"https://bib.rero.ch/schemas/acq_accounts/acq_account-v0.0.1.json","minLength":9,"title":"Schema","type":"string"},"allocated_amount":{"default":0,"description":"The amount allocated for the acquisition account.","minimum":0,"title":"Allocated amount","type":"number","widget":{"formlyConfig":{"props":{"fieldMap":"amount","itemCssClass":"ui:md:w-3/12"}}}},"budget":{"description":"The acquisition account belongs to which budget.","properties":{"$ref":{"pattern":"^https://bib.rero.ch/api/budgets/.*?$","title":"Budget URI","type":"string"}},"required":["$ref"],"title":"Budget","type":"object"},"encumbrance_exceedance":{"default":0,"description":"The exceedance percentage of account amount that linked pending orders can reach.","maximum":100,"minimum":0,"title":"Encumbrance exceedance","type":"number","widget":{"formlyConfig":{"props":{"addonRight":["%"],"itemCssClass":"ui:md:w-2/12"}}}},"expenditure_exceedance":{"default":0,"description":"The exceedance percentage of account amount than linked paid invoices can reach.","maximum":100,"minimum":0,"title":"Expenditure exceedance","type":"number","widget":{"formlyConfig":{"props":{"addonRight":["%"],"itemCssClass":"ui:md:w-2/12"}}}},"library":{"properties":{"$ref":{"pattern":"^https://bib.rero.ch/api/libraries/.*?$","title":"Library URI","type":"string"}},"title":"Library","type":"object"},"name":{"description":"Common name of the acquisition account.","minLength":1,"title":"Name","type":"string","widget":{"formlyConfig":{"focus":true}}},"number":{"description":"Reference account number in accounting system.","minLength":1,"title":"Account number","type":"string"},"organisation":{"additionalProperties":false,"properties":{"$ref":{"pattern":"^https://bib.rero.ch/api/organisations/.*?$","title":"Organisation URI","type":"string"}},"required":["$ref"],"title":"Organisation","type":"object"},"parent":{"properties":{"$ref":{"pattern":"^https://bib.rero.ch/api/acq_accounts/.*?$","title":"Account URI","type":"string","widget":{"formlyConfig":{"props":{"filterChildren":true,"hideLabel":true},"type":"account-select"}}}},"title":"Parent account","type":"object"},"pid":{"title":"Account ID","type":"string"}},"propertiesOrder":["name","number","parent","allocated_amount","encumbrance_exceedance","expenditure_exceedance"],"required":["$schema","pid","name","allocated_amount","budget","library"],"title":"Acquisition account","type":"object"}
