{"$schema":"https://json-schema.org/draft/2020-12/schema","title":"Supplier evaluation (BE)","description":"Belgian supplier evaluation of a buying SME: the supplier, the period, the evaluator, the SME's own scoring scale, the criteria with target, actual, score and weight as typed, the overall score typed by the evaluator (never computed), strengths, improvements, actions, the classification and the previous one, an optional supply-chain risk section and the next evaluation date. Internal by default; shared with the supplier it prints and requires the enterprise number and payment account. Nothing is computed.","type":"object","additionalProperties":false,"required":["company","supplier","evaluation","evaluator","scale","kpis","classification","signatory"],"properties":{"company":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","description":"Name or company name of the enterprise."},"legal_form":{"type":"string","description":"Legal form (for example SRL, SA), as the enterprise writes it."},"enterprise_number":{"type":"string","pattern":"^[01][0-9]{3}\\.[0-9]{3}\\.[0-9]{3}$","description":"Belgian enterprise number (KBO/BCE), written 0123.456.789 (Code of economic law art. III.25, al. 1)."},"vat_number":{"type":"string","pattern":"^BE[01][0-9]{9}$","description":"Belgian VAT number, written BE0123456789 (leave out if the enterprise has none)."},"address":{"type":"string","description":"Street and number of the registered seat."},"postal_code":{"type":"string","description":"Postal code."},"commune":{"type":"string","description":"Municipality."},"rpm_court":{"type":"string","description":"Enterprise court of the registered seat (legal persons: CSA art. 2:20, 5°)."},"in_liquidation":{"type":"boolean","description":"Whether the company is in liquidation (CSA art. 2:20, 7°); printed only when true."},"email":{"type":"string","description":"E-mail address."},"website":{"type":"string","description":"Website of the enterprise."},"phone":{"type":"string","description":"Telephone number."},"iban":{"type":"string","description":"IBAN of a payment account the enterprise holds (Code of economic law art. III.25, al. 2)."},"bic":{"type":"string","description":"BIC of that account."},"logo_base64":{"type":"string","description":"Logo of the issuer as a base64-encoded PNG or JPEG (validated by the renderer)."},"shared_with_supplier":{"type":"boolean","description":"Whether the evaluation is shared with the supplier (then the outward mentions are required)."}},"description":"The enterprise that evaluates its supplier. Internal by default; the outward mentions are printed and required only when the evaluation is shared with the supplier.","required":["name"],"allOf":[{"if":{"properties":{"shared_with_supplier":{"const":true}},"required":["shared_with_supplier"]},"then":{"required":["enterprise_number","iban"]}}]},"supplier":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","description":"Name of the supplier."},"enterprise_number":{"type":"string","pattern":"^[01][0-9]{3}\\.[0-9]{3}\\.[0-9]{3}$","description":"Enterprise number of the supplier, written 0123.456.789."},"category":{"type":"string","description":"Category of the supplier (what it supplies)."}},"description":"The supplier evaluated.","required":["name"]},"evaluation":{"type":"object","additionalProperties":false,"properties":{"period_start":{"type":"string","format":"date","description":"First day of the period evaluated."},"period_end":{"type":"string","format":"date","description":"Last day of the period evaluated."},"date":{"type":"string","format":"date","description":"Date of the evaluation."},"volume_note":{"type":"string","description":"Volume evaluated (orders, deliveries, spend), in the evaluator's words."}},"description":"The evaluation.","required":["period_start","period_end","date"]},"evaluator":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","description":"Name of the evaluator."},"role":{"type":"string","description":"Function of the evaluator."}},"description":"The evaluator.","required":["name"]},"scale":{"type":"object","additionalProperties":false,"properties":{"min":{"type":["string","number"],"description":"Lowest score of the scale used by the SME."},"max":{"type":["string","number"],"description":"Highest score of the scale used by the SME."},"labels":{"type":"array","items":{"type":"string"},"description":"Meaning of the scores, in the SME's words."}},"description":"The scoring scale chosen by the SME (no default).","required":["min","max"]},"kpis":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","description":"Name of the criterion."},"target":{"type":"string","description":"Target, as typed."},"actual":{"type":"string","description":"Result observed, as typed."},"score":{"type":["string","number"],"description":"Score given, as typed by the evaluator."},"weight_pct":{"type":"number","minimum":0,"maximum":100,"description":"Weight of the criterion as the evaluator states it (percent)."}},"description":"","required":["name","score"]},"description":"The criteria evaluated.","minItems":1},"weights_total":{"type":["string","number"],"description":"Total of the weights, as typed (never computed)."},"overall_score":{"type":["string","number"],"description":"Overall score, as typed by the evaluator (never computed)."},"strengths":{"type":"array","items":{"type":"string"},"description":"Strengths observed."},"improvements":{"type":"array","items":{"type":"string"},"description":"Areas for improvement."},"actions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"action":{"type":"string","description":"The action."},"owner":{"type":"string","description":"Who is responsible."},"deadline":{"type":"string","format":"date","description":"Deadline of the action."}},"description":"","required":["action","owner"]},"description":"Actions agreed."},"classification":{"type":"string","enum":["strategic","preferred","approved","conditional","phase_out"],"description":"Classification of the supplier chosen by the SME."},"previous_classification":{"type":"string","enum":["strategic","preferred","approved","conditional","phase_out"],"description":"Previous classification of the supplier."},"risk":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"dimension":{"type":"string","description":"The risk dimension."},"rating":{"type":"string","enum":["low","medium","high"],"description":"Rating of the dimension chosen by the evaluator."},"mitigation":{"type":"string","description":"Mitigation measure."}},"description":"","required":["dimension","rating"]},"description":"Risk section (supply chain)."},"next_evaluation_date":{"type":"string","format":"date","description":"Date of the next evaluation."},"signatory":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","description":"Name of the person who signs."},"title":{"type":"string","description":"Function of that person."},"date":{"type":"string","format":"date","description":"Date of signature."}},"description":"Who signs the document.","required":["name","title","date"]}}}