@silexpert/core 1.3.160-3 → 1.3.160-4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/types/Interface/api/brevo/EmailSendOptions.dto.js +12 -12
- package/dist/cjs/types/Interface/api/brevo/EmailSendOptions.dto.js.map +1 -1
- package/dist/cjs/types/Interface/api/revenueMovement.js +39 -39
- package/dist/cjs/types/Interface/api/revenueMovement.js.map +1 -1
- package/dist/cjs/types/Interface/api/revenueSnapshotGenerate.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/revenueSnapshotGenerate.js +3 -4
- package/dist/cjs/types/Interface/api/revenueSnapshotGenerate.js.map +1 -1
- package/dist/cjs/utils/prestation.d.ts.map +1 -1
- package/dist/cjs/utils/prestation.js +9 -4
- package/dist/cjs/utils/prestation.js.map +1 -1
- package/dist/mjs/types/Interface/api/brevo/EmailSendOptions.dto.js +1 -1
- package/dist/mjs/types/Interface/api/brevo/EmailSendOptions.dto.js.map +1 -1
- package/dist/mjs/types/Interface/api/revenueMovement.js +1 -1
- package/dist/mjs/types/Interface/api/revenueMovement.js.map +1 -1
- package/dist/mjs/types/Interface/api/revenueSnapshotGenerate.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/revenueSnapshotGenerate.js +3 -4
- package/dist/mjs/types/Interface/api/revenueSnapshotGenerate.js.map +1 -1
- package/dist/mjs/utils/prestation.d.ts.map +1 -1
- package/dist/mjs/utils/prestation.js +3 -1
- package/dist/mjs/utils/prestation.js.map +1 -1
- package/package.json +1 -1
- package/ts/types/Interface/api/brevo/EmailSendOptions.dto.ts +1 -1
- package/ts/types/Interface/api/revenueMovement.ts +1 -1
- package/ts/types/Interface/api/revenueSnapshotGenerate.ts +3 -4
- package/ts/utils/prestation.ts +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexpert/core",
|
|
3
|
-
"version": "1.3.160-
|
|
3
|
+
"version": "1.3.160-4",
|
|
4
4
|
"description": "Silex Core perform HTTP Request and object binding. Silex core helps developers to retrieve and return formatted object",
|
|
5
5
|
"homepage": "https://gitlab.compta-clementine.fr/dev/silex-api",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApiProperty, ApiPropertyOptional } from '
|
|
1
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
2
2
|
import { IsString, IsEmail, IsOptional, IsNumber, IsObject, ValidateIf } from 'class-validator';
|
|
3
3
|
|
|
4
4
|
export class EmailSendOptionsDto {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IsDate, IsInt, IsOptional, IsEnum, IsNumber, IsString, IsObject, IsArray } from 'class-validator';
|
|
2
2
|
import { RevenueMovementType } from '../../Enum/Revenue';
|
|
3
|
-
import { ApiProperty, ApiPropertyOptional } from '
|
|
3
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../utils';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* DTO pour créer un mouvement de revenu
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { ApiPropertyOptional } from '
|
|
2
|
-
import { ApiProperty } from '../../../utils';
|
|
1
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../utils';
|
|
3
2
|
import { IsOptional, IsString, IsNumber, IsInt } from 'class-validator';
|
|
4
3
|
|
|
5
4
|
export class GenerateSnapshot {
|
|
@@ -23,7 +22,7 @@ export class GenerateSnapshot {
|
|
|
23
22
|
|
|
24
23
|
@ApiProperty({
|
|
25
24
|
required: false,
|
|
26
|
-
description:
|
|
25
|
+
description: 'ID de l\'exercice',
|
|
27
26
|
example: 123456,
|
|
28
27
|
})
|
|
29
28
|
@IsOptional()
|
|
@@ -53,7 +52,7 @@ export class ManageRetroactivity {
|
|
|
53
52
|
|
|
54
53
|
@ApiPropertyOptional({
|
|
55
54
|
required: false,
|
|
56
|
-
description:
|
|
55
|
+
description: 'ID de l\'exercice (si non fourni, utilise l\'exercice courant)',
|
|
57
56
|
example: 123456,
|
|
58
57
|
})
|
|
59
58
|
@IsOptional()
|
package/ts/utils/prestation.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IExercice, IPrestation, IPrestationList } from '../types';
|
|
2
2
|
import { Vat } from '../types/Enum/Vat';
|
|
3
|
+
import { ReasonTerminationType } from '../types/Enum/ReasonTerminationType';
|
|
3
4
|
import { getTaxesIncludedAmount } from './vat/utils';
|
|
4
5
|
import { intersection } from './noLodash';
|
|
5
6
|
import {
|
|
@@ -166,7 +167,8 @@ const calculateScoringOfPrestation = (
|
|
|
166
167
|
(prestation) =>
|
|
167
168
|
prestation.paid &&
|
|
168
169
|
prestation.signed &&
|
|
169
|
-
prestation.terminationList === null
|
|
170
|
+
(prestation.terminationList === null ||
|
|
171
|
+
prestation.terminationList?.idReasonTermination?.includes(ReasonTerminationType.CHANGES_NEW_OFFERS)) &&
|
|
170
172
|
prestation.id !== currentIdPrestation,
|
|
171
173
|
);
|
|
172
174
|
|