@silexpert/core 0.1.5 → 0.1.6

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.
Files changed (39) hide show
  1. package/es/types/Enum/ImmobilizationType.d.ts +399 -0
  2. package/es/types/Enum/ImmobilizationType.d.ts.map +1 -0
  3. package/es/types/Enum/ImmobilizationType.js +399 -0
  4. package/es/types/Enum/ImmobilizationType.js.map +1 -0
  5. package/es/types/Enum/Vat.d.ts +9 -0
  6. package/es/types/Enum/Vat.d.ts.map +1 -1
  7. package/es/types/Enum/Vat.js +18 -9
  8. package/es/types/Enum/Vat.js.map +1 -1
  9. package/es/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.d.ts +5 -1
  10. package/es/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.d.ts.map +1 -1
  11. package/es/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.js.map +1 -1
  12. package/es/types/Interface/models/IAccountingEntry.d.ts +4 -1
  13. package/es/types/Interface/models/IAccountingEntry.d.ts.map +1 -1
  14. package/es/types/Interface/models/IAccountingEntry.js.map +1 -1
  15. package/es/types/Interface/models/IExercice.d.ts +14 -14
  16. package/es/types/Interface/models/IExercice.d.ts.map +1 -1
  17. package/es/types/Interface/models/IExercice.js.map +1 -1
  18. package/es/types/Interface/models/IImmobilization.d.ts +1 -0
  19. package/es/types/Interface/models/IImmobilization.d.ts.map +1 -1
  20. package/es/types/Interface/models/IImmobilization.js.map +1 -1
  21. package/es/types/index.d.ts +2 -0
  22. package/es/types/index.d.ts.map +1 -1
  23. package/es/types/index.js +2 -0
  24. package/es/types/index.js.map +1 -1
  25. package/js/types/Enum/ImmobilizationType.js +404 -0
  26. package/js/types/Enum/ImmobilizationType.js.map +1 -0
  27. package/js/types/Enum/Vat.js +18 -9
  28. package/js/types/Enum/Vat.js.map +1 -1
  29. package/js/types/index.js +24 -0
  30. package/js/types/index.js.map +1 -1
  31. package/package.json +4 -4
  32. package/ts/types/Enum/ImmobilizationType.ts +399 -0
  33. package/ts/types/Enum/Vat.ts +18 -9
  34. package/ts/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.ts +4 -3
  35. package/ts/types/Interface/models/IAccountingEntry.ts +4 -1
  36. package/ts/types/Interface/models/IExercice.ts +14 -14
  37. package/ts/types/Interface/models/IImmobilization.ts +1 -0
  38. package/ts/types/index.ts +2 -0
  39. package/yalc.lock +4 -0
@@ -1,7 +1,7 @@
1
1
  import { IAccountingTransaction } from '../../..';
2
2
  import { IImmobilization } from '../../models/IImmobilization';
3
3
 
4
-
4
+ export type FormImmobilization = IImmobilization & { isDeposit: boolean }
5
5
 
6
6
  export interface FormEntry {
7
7
  vat? : number | {
@@ -12,8 +12,9 @@ export interface FormEntry {
12
12
  idThirdParty?: number;
13
13
  amountAllTaxIncludedPurchase?: number;
14
14
  designation?: string;
15
- amountAllTaxIncluded?: number
16
- immobilization?: IImmobilization
15
+ amountAllTaxIncluded?: number;
16
+ immobilization?: FormImmobilization // pour la création d'une immo
17
+ idImmobilization?: number; //
17
18
  }
18
19
 
19
20
  // Permet d'annoté une transaction bancaire Split, Marge, Intracom, Immo etc...
@@ -3,6 +3,7 @@ import { IAccount } from './IAccount';
3
3
  import { IThirdParty } from './IThirdParty';
4
4
  import { IAccountingTransaction } from './IAccountingTransaction';
5
5
  import {IVat} from './IVat';
6
+ import { IImmobilization } from './IImmobilization';
6
7
 
7
8
  // accountingEntries
8
9
  export interface IAccountingEntry {
@@ -19,7 +20,8 @@ export interface IAccountingEntry {
19
20
  idAccount: number | null;
20
21
  idThirdParty: number | null;
21
22
  idAccountingTransaction: number;
22
- idVat?: number;
23
+ idVat?: number | null;
24
+ idImmobilization?: number | null;
23
25
  createdAt?: Date | null;
24
26
  updatedAt?: Date | null;
25
27
 
@@ -30,4 +32,5 @@ export interface IAccountingEntry {
30
32
  childTva?: IAccountingEntry;
31
33
  accountingTransaction?: IAccountingTransaction;
32
34
  vat?: IVat;
35
+ immobilization?: IImmobilization;
33
36
  }
@@ -15,8 +15,8 @@ import { IExerciceDetail } from './IExerciceDetail';
15
15
  // exercices
16
16
  export interface IExercice {
17
17
  id?: number;
18
- dateStart: Date | null;
19
- dateEnd: Date | null;
18
+ startDate: Date | null;
19
+ endDate: Date | null;
20
20
  turnover: string | null;
21
21
  invoicePurchase: number | null;
22
22
  invoiceSales: number | null;
@@ -42,16 +42,16 @@ export interface IExercice {
42
42
  deletedAt?: Date | null;
43
43
 
44
44
  // Associations
45
- supervision: ISupervision;
46
- checklists: IChecklist[];
47
- exerciceCustomerTvas: ICustomerTva[];
48
- exerciceCustomersIsRegimes: ICustomerIsRegime[];
49
- exerciceBalanceSheet: IBalanceSheet;
50
- exerciceAdditionnalBalance: IAdditionalBalance;
51
- exerciceApprovals: ISocietyApproval;
52
- prestations: IPrestation[];
53
- exercicesToPrestations: IExercicePrestation[];
54
- file: IFile;
55
- society: ISociety;
56
- exerciceDetail: IExerciceDetail;
45
+ supervision?: ISupervision;
46
+ checklists?: IChecklist[];
47
+ exerciceCustomerTvas?: ICustomerTva[];
48
+ exerciceCustomersIsRegimes?: ICustomerIsRegime[];
49
+ exerciceBalanceSheet?: IBalanceSheet;
50
+ exerciceAdditionnalBalance?: IAdditionalBalance;
51
+ exerciceApprovals?: ISocietyApproval;
52
+ prestations?: IPrestation[];
53
+ exercicesToPrestations?: IExercicePrestation[];
54
+ file?: IFile;
55
+ society?: ISociety;
56
+ exerciceDetail?: IExerciceDetail;
57
57
  }
@@ -7,6 +7,7 @@ export interface IImmobilization {
7
7
  acquisitionDate: Date;
8
8
  duration: number;
9
9
  provider: string;
10
+ amountTotalImmobilization? : number;
10
11
  idSociety: number;
11
12
  createdAt?: Date | null;
12
13
  updatedAt?: Date | null;
package/ts/types/index.ts CHANGED
@@ -98,6 +98,7 @@ export * from './Interface/models/IInternalEstimate';
98
98
  export * from './Interface/models/IIpTmpBlocked';
99
99
  export * from './Interface/models/IItemEstimate';
100
100
  export * from './Interface/models/IJobCategory';
101
+ export * from './Interface/models/IImmobilization';
101
102
  export * from './Interface/models/IJob';
102
103
  export * from './Interface/models/IKilometricAllowanceScale';
103
104
  export * from './Interface/models/ILabelPaymentWaiting';
@@ -286,6 +287,7 @@ export * from './Enum/VatRegime';
286
287
  export * from './Enum/TypeConnector';
287
288
  export * from './Enum/Vat';
288
289
  export * from './Enum/AccountingJournal';
290
+ export * from './Enum/ImmobilizationType';
289
291
 
290
292
  // Interfaces API
291
293
  export * from './Interface/api/businessPartner/ReadBusinessPartner';
package/yalc.lock ADDED
@@ -0,0 +1,4 @@
1
+ {
2
+ "version": "v1",
3
+ "packages": {}
4
+ }