Rename search method in WarehouseOfferModel and update usage in WarehouseOfferController for clarity

This commit is contained in:
2025-12-02 16:01:11 +01:00
parent 14b7e69c42
commit a453a05344
2 changed files with 2 additions and 2 deletions

View File

@@ -123,7 +123,7 @@ class WarehouseOfferController extends TTCrud
{
$id = $this->request->id;
if (!$id) self::sendError("ID fehlt");
$journalEntries = WarehouseOfferJournalModel::search(['offerId' => $id], ['create' => 'DESC']);
$journalEntries = WarehouseOfferJournalModel::searchOfferJournal(['offerId' => $id], ['create' => 'DESC']);
self::returnJson($journalEntries);
}

View File

@@ -93,7 +93,7 @@ class WarehouseOfferJournalModel extends TTCrudBaseModel
* @param false $count
* @return array|int
*/
public static function search(array $filter = [], array $orderBy = [], $limit = null, $offset = null, $count = false)
public static function searchOfferJournal(array $filter = [], array $orderBy = [], $limit = null, $offset = null, $count = false)
{
$db = self::getDB();
$tableName = self::getFullyQualifiedTable();