refs #5837 fix filter existingClient France #1668
No reviewers
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: verdnatura/salix#1668
Loading…
Reference in New Issue
No description provided.
Delete Branch "5837-quitRestrictionFrance"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -56,0 +54,4 @@
const existingClient = await Self.app.models.Client.findOne(filter);
if (existingClient) {
if (this.countryFk !== 19 && this.socialName === existingClient.socialName)
No hi ha que posar ids per el codi. traulo finde un findOne de la taula per el code