feat(opportunities): Uebernahme zurueck in die Akquise schieben
Im Dialog einer Opportunity aus der Akquise nimmt "Zurueck in die Akquise" eine versehentliche Uebernahme zurueck: alle Opportunities aus dem Eintrag wandern in den Papierkorb, der Eintrag steht mit seinem Funddatum wieder in Eingang bzw. Archiv. Neue Spalte crm_opportunities.acquisition_id, damit bei mehreren Beratern alle gefunden werden. Wiederherstellen haengt den Eintrag wieder an die Opportunity. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
0ad7b32dbf
commit
33dedaedfb
@@ -223,6 +223,15 @@ export const opportunitiesApi = {
|
||||
remove: (id: number) => request<{ ok: true }>(`/opportunities/${id}`, { method: 'DELETE' }),
|
||||
restore: (id: number) =>
|
||||
request<Opportunity>(`/opportunities/${id}/restore`, { method: 'POST' }),
|
||||
/**
|
||||
* Nimmt die Uebernahme aus der Akquise zurueck: alle Opportunities aus dem
|
||||
* Eintrag wandern in den Papierkorb, der Eintrag steht wieder in der Akquise.
|
||||
*/
|
||||
backToAcquisition: (id: number) =>
|
||||
request<{ ok: true; acquisition_id: number; trashed: number[] }>(
|
||||
`/opportunities/${id}/acquisition`,
|
||||
{ method: 'POST' }
|
||||
),
|
||||
emptyTrash: () =>
|
||||
request<{ ok: true; purged: number }>('/opportunities/trash/empty', { method: 'POST' }),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user