====== AIRS-1724 Concession - Attachment size limitation per NCR ====== [[https://tasks.supplyon.de/browse/AIRS-1724|AIRS-1724 Concession - Attachment size limitation per NCR]]\\ [[https://doc.supplyon.de/pages/viewpage.action?spaceKey=S10058&title=Concession+-+Attachment+size+limitation+per+NCR|Spec in Confluence]] ===== Acceptance Criteria ===== - **-** The maximum filesize for one single attachment for the Convession process can be configured per customer company (legal entity) - **-** The total maximum attachments size for one single NCR object can be configured per customer company (legal entity) - **-** The maximum size of attachments that can be stored in one NCR object is set to 1 GB - **-** The maximum size of a single attachment is set to 20 MB ===== TODO ===== Make attachment configs customer "legal entity"-dependent * **+** What is "legal entity"? -> Org Id * **+** ''""+procData.getCustomerCGId()'' as Type ? -> No * **-** ''NCRAttachmentUploadScreen'' -> screen where the upload takes place * **-** ''NCRXMLImportUtil'' -> fetches configuration for NCR import The following config params are related: * MAX_ATTACHMENT_MESSAGE_SIZE_NCR -> max. Größe pro NCR Nachricht * MAX_ATTACHMENT_FILE_SIZE_NCR -> max. Größe pro Attachment ===== Misc ===== ==== Beispiel aus PO-Prozess ==== boolean bundlingEnabledForCG = (new Config(IPOConstants.CLIENT_ID)).getBoolean(IPOConstants.CONFIG_PO_RESPONSE_BUNDLING_ENABLED_FOR_CGID, ""+procData.getCustomerCGId(), false); ==== Legal Entity holen ==== ''NCRHeaderModel.getRelation().getCustomerOrgId()'' holt die Customer Org Id (=Legal Entity)