many bug fixes
Some checks failed
Image optimization / general_image_workflow (push) Has been cancelled
CI / general_module_workflow_php (push) Has been cancelled
CI / general_module_workflow_js (push) Has been cancelled

This commit is contained in:
Dennis Eichhorn 2025-03-11 03:09:20 +00:00
parent f96e97827d
commit d3c89868bb

View File

@ -446,7 +446,7 @@ final class ApiController extends Controller
$new = clone $old;
if (!empty($request->files)) {
$request->setData('element', $element->id, true);
$request->setData('ref', $element->id, true);
$this->apiMediaAddToExpenseElement($request, $response, $data);
}
@ -471,6 +471,10 @@ final class ApiController extends Controller
* from the uploaded media for empty fields (i.e. description, price, ...)
* https://github.com/Karaka-Management/oms-BusinessExpenses/issues/1
*
* @feature When uploading an expense check the date on the bill with the date of the element.
* If different warn user.
* https://github.com/Karaka-Management/phpOMS/issues/391
*
* @since 1.0.0
*/
public function apiExpenseElementFromUploadCreate(RequestAbstract $request, ResponseAbstract $response, array $data = []) : void