New features
1. API calls saveProductPicture, saveProductFile, saveProductPicture2, saveProductFile2 will now upload new pictures and files to CDN, and store only the image's URL in Erply database.
Improvements
1. POS receipts, too, will now undergo a check for duplicate numbers in the saveSalesDocument call. If the API detects that the POS has assigned a receipt number already used before (for a different document), it will renumber the new receipt.
2. When the saveSalesDocument renumbers a document because it detects the number has already been used, it will additionally:
- save the old number in the field "Web shop order number"
- append a comment to the "Notes" field, saying that the document has been assigned a new number.
3. API call getCampaigns: when using the "warehouseID" filter, it will no longer return promotions that apply in another store region only. (The filtering is applied at the output stage, so the call can return less records than the caller requested with `recordsOnPage`, or it can return no records at all; this does not necessarily mean that all matching promotions have already been returned.)
4. API calls getProjects, getStoreRegions no longer require permissions for the respective modules.
5. API now uses the EMS "getDefault" filter for looking up an EMS mailbox (saveUser call only).