@silexpert/core 1.0.15 → 1.0.21

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 (186) hide show
  1. package/es/api/resources/CommercialDocument.d.ts +1 -0
  2. package/es/api/resources/CommercialDocument.d.ts.map +1 -1
  3. package/es/api/resources/CommercialDocument.js +3 -0
  4. package/es/api/resources/CommercialDocument.js.map +1 -1
  5. package/es/api/resources/CommercialSetting.d.ts +3 -1
  6. package/es/api/resources/CommercialSetting.d.ts.map +1 -1
  7. package/es/api/resources/CommercialSetting.js +6 -0
  8. package/es/api/resources/CommercialSetting.js.map +1 -1
  9. package/es/api/resources/Invoice.d.ts +2 -1
  10. package/es/api/resources/Invoice.d.ts.map +1 -1
  11. package/es/api/resources/Invoice.js +3 -0
  12. package/es/api/resources/Invoice.js.map +1 -1
  13. package/es/api/resources/Qonto.d.ts +5 -1
  14. package/es/api/resources/Qonto.d.ts.map +1 -1
  15. package/es/api/resources/Qonto.js +12 -0
  16. package/es/api/resources/Qonto.js.map +1 -1
  17. package/es/api/resources/Stripe.d.ts +6 -0
  18. package/es/api/resources/Stripe.d.ts.map +1 -0
  19. package/es/api/resources/Stripe.js +7 -0
  20. package/es/api/resources/Stripe.js.map +1 -0
  21. package/es/api/resources.d.ts +2 -0
  22. package/es/api/resources.d.ts.map +1 -1
  23. package/es/api/resources.js +2 -0
  24. package/es/api/resources.js.map +1 -1
  25. package/es/types/Enum/CommercialManagement.d.ts +10 -0
  26. package/es/types/Enum/CommercialManagement.d.ts.map +1 -1
  27. package/es/types/Enum/CommercialManagement.js +21 -0
  28. package/es/types/Enum/CommercialManagement.js.map +1 -1
  29. package/es/types/Enum/Rules.d.ts +2 -0
  30. package/es/types/Enum/Rules.d.ts.map +1 -0
  31. package/es/types/Enum/Rules.js +19 -0
  32. package/es/types/Enum/Rules.js.map +1 -0
  33. package/es/types/Interface/api/commercialManagement/Create.d.ts +6 -1
  34. package/es/types/Interface/api/commercialManagement/Create.d.ts.map +1 -1
  35. package/es/types/Interface/api/commercialManagement/Create.js +29 -1
  36. package/es/types/Interface/api/commercialManagement/Create.js.map +1 -1
  37. package/es/types/Interface/api/commercialManagement/Query.d.ts +3 -0
  38. package/es/types/Interface/api/commercialManagement/Query.d.ts.map +1 -1
  39. package/es/types/Interface/api/commercialManagement/Query.js +7 -0
  40. package/es/types/Interface/api/commercialManagement/Query.js.map +1 -1
  41. package/es/types/Interface/api/commercialManagement/Read.d.ts +1 -0
  42. package/es/types/Interface/api/commercialManagement/Read.d.ts.map +1 -1
  43. package/es/types/Interface/api/commercialManagement/Read.js.map +1 -1
  44. package/es/types/Interface/api/qonto/CreateQontoConnection.d.ts +5 -0
  45. package/es/types/Interface/api/qonto/CreateQontoConnection.d.ts.map +1 -0
  46. package/es/types/Interface/api/qonto/CreateQontoConnection.js +24 -0
  47. package/es/types/Interface/api/qonto/CreateQontoConnection.js.map +1 -0
  48. package/es/types/Interface/api/qonto/GetConnectionInformation.d.ts +4 -0
  49. package/es/types/Interface/api/qonto/GetConnectionInformation.d.ts.map +1 -0
  50. package/es/types/Interface/api/qonto/GetConnectionInformation.js +19 -0
  51. package/es/types/Interface/api/qonto/GetConnectionInformation.js.map +1 -0
  52. package/es/types/Interface/api/qonto/ProcessBankAccount.d.ts +5 -0
  53. package/es/types/Interface/api/qonto/ProcessBankAccount.d.ts.map +1 -0
  54. package/es/types/Interface/api/qonto/ProcessBankAccount.js +24 -0
  55. package/es/types/Interface/api/qonto/ProcessBankAccount.js.map +1 -0
  56. package/es/types/Interface/api/qonto/Query.d.ts +1 -2
  57. package/es/types/Interface/api/qonto/Query.d.ts.map +1 -1
  58. package/es/types/Interface/api/qonto/Query.js.map +1 -1
  59. package/es/types/Interface/api/qonto/ReadCreateConnection.d.ts +6 -0
  60. package/es/types/Interface/api/qonto/ReadCreateConnection.d.ts.map +1 -0
  61. package/es/types/Interface/api/qonto/ReadCreateConnection.js +2 -0
  62. package/es/types/Interface/api/qonto/ReadCreateConnection.js.map +1 -0
  63. package/es/types/Interface/api/qonto/UpdateConnection.d.ts +4 -0
  64. package/es/types/Interface/api/qonto/UpdateConnection.d.ts.map +1 -0
  65. package/es/types/Interface/api/qonto/UpdateConnection.js +19 -0
  66. package/es/types/Interface/api/qonto/UpdateConnection.js.map +1 -0
  67. package/es/types/Interface/api/stripe/Create.d.ts +4 -0
  68. package/es/types/Interface/api/stripe/Create.d.ts.map +1 -0
  69. package/es/types/Interface/api/stripe/Create.js +19 -0
  70. package/es/types/Interface/api/stripe/Create.js.map +1 -0
  71. package/es/types/Interface/api/thirdParty/CreateThirdPartyForm.d.ts +3 -0
  72. package/es/types/Interface/api/thirdParty/CreateThirdPartyForm.d.ts.map +1 -1
  73. package/es/types/Interface/api/thirdParty/CreateThirdPartyForm.js +18 -1
  74. package/es/types/Interface/api/thirdParty/CreateThirdPartyForm.js.map +1 -1
  75. package/es/types/Interface/api/thirdParty/UpdateThirdPartyForm.d.ts +3 -0
  76. package/es/types/Interface/api/thirdParty/UpdateThirdPartyForm.d.ts.map +1 -1
  77. package/es/types/Interface/api/thirdParty/UpdateThirdPartyForm.js +18 -1
  78. package/es/types/Interface/api/thirdParty/UpdateThirdPartyForm.js.map +1 -1
  79. package/es/types/Interface/models/IApiError.d.ts +2 -0
  80. package/es/types/Interface/models/IApiError.d.ts.map +1 -1
  81. package/es/types/Interface/models/IApiError.js +3 -0
  82. package/es/types/Interface/models/IApiError.js.map +1 -1
  83. package/es/types/Interface/models/IEstimateInvoice.d.ts +3 -0
  84. package/es/types/Interface/models/IEstimateInvoice.d.ts.map +1 -1
  85. package/es/types/Interface/models/IEstimateInvoice.js.map +1 -1
  86. package/es/types/Interface/models/IPrestationHistory.d.ts +13 -0
  87. package/es/types/Interface/models/IPrestationHistory.d.ts.map +1 -0
  88. package/es/types/Interface/models/IPrestationHistory.js +2 -0
  89. package/es/types/Interface/models/IPrestationHistory.js.map +1 -0
  90. package/es/types/Interface/models/ISocietyGescom.d.ts +4 -1
  91. package/es/types/Interface/models/ISocietyGescom.d.ts.map +1 -1
  92. package/es/types/Interface/models/ISocietyGescom.js.map +1 -1
  93. package/es/types/Interface/models/IThirdParty.d.ts +3 -0
  94. package/es/types/Interface/models/IThirdParty.d.ts.map +1 -1
  95. package/es/types/Interface/models/IThirdParty.js.map +1 -1
  96. package/es/types/index.d.ts +8 -0
  97. package/es/types/index.d.ts.map +1 -1
  98. package/es/types/index.js +8 -0
  99. package/es/types/index.js.map +1 -1
  100. package/es/utils/commercialManagement/document.d.ts.map +1 -1
  101. package/es/utils/commercialManagement/document.js +8 -8
  102. package/es/utils/commercialManagement/document.js.map +1 -1
  103. package/es/utils/commercialManagement/templates/body.d.ts.map +1 -1
  104. package/es/utils/commercialManagement/templates/body.js +3 -1
  105. package/es/utils/commercialManagement/templates/body.js.map +1 -1
  106. package/es/utils/commercialManagement/templates/common.d.ts.map +1 -1
  107. package/es/utils/commercialManagement/templates/common.js +20 -1
  108. package/es/utils/commercialManagement/templates/common.js.map +1 -1
  109. package/js/api/resources/CommercialDocument.js +8 -0
  110. package/js/api/resources/CommercialDocument.js.map +1 -1
  111. package/js/api/resources/CommercialSetting.js +8 -0
  112. package/js/api/resources/CommercialSetting.js.map +1 -1
  113. package/js/api/resources/Invoice.js +8 -0
  114. package/js/api/resources/Invoice.js.map +1 -1
  115. package/js/api/resources/Qonto.js +18 -0
  116. package/js/api/resources/Qonto.js.map +1 -1
  117. package/js/api/resources/Stripe.js +20 -0
  118. package/js/api/resources/Stripe.js.map +1 -0
  119. package/js/api/resources.js +4 -1
  120. package/js/api/resources.js.map +1 -1
  121. package/js/types/Enum/CommercialManagement.js +19 -0
  122. package/js/types/Enum/CommercialManagement.js.map +1 -1
  123. package/js/types/Enum/Rules.js +7 -0
  124. package/js/types/Enum/Rules.js.map +1 -0
  125. package/js/types/Interface/api/commercialManagement/Create.js +13 -1
  126. package/js/types/Interface/api/commercialManagement/Create.js.map +1 -1
  127. package/js/types/Interface/api/commercialManagement/Query.js +7 -1
  128. package/js/types/Interface/api/commercialManagement/Query.js.map +1 -1
  129. package/js/types/Interface/api/qonto/CreateQontoConnection.js +31 -0
  130. package/js/types/Interface/api/qonto/CreateQontoConnection.js.map +1 -0
  131. package/js/types/Interface/api/qonto/GetConnectionInformation.js +29 -0
  132. package/js/types/Interface/api/qonto/GetConnectionInformation.js.map +1 -0
  133. package/js/types/Interface/api/qonto/ProcessBankAccount.js +31 -0
  134. package/js/types/Interface/api/qonto/ProcessBankAccount.js.map +1 -0
  135. package/js/types/Interface/api/qonto/ReadCreateConnection.js +6 -0
  136. package/js/types/Interface/api/qonto/ReadCreateConnection.js.map +1 -0
  137. package/js/types/Interface/api/qonto/UpdateConnection.js +29 -0
  138. package/js/types/Interface/api/qonto/UpdateConnection.js.map +1 -0
  139. package/js/types/Interface/api/stripe/Create.js +29 -0
  140. package/js/types/Interface/api/stripe/Create.js.map +1 -0
  141. package/js/types/Interface/api/thirdParty/CreateThirdPartyForm.js +6 -0
  142. package/js/types/Interface/api/thirdParty/CreateThirdPartyForm.js.map +1 -1
  143. package/js/types/Interface/api/thirdParty/UpdateThirdPartyForm.js +6 -0
  144. package/js/types/Interface/api/thirdParty/UpdateThirdPartyForm.js.map +1 -1
  145. package/js/types/Interface/models/IApiError.js +5 -2
  146. package/js/types/Interface/models/IApiError.js.map +1 -1
  147. package/js/types/Interface/models/IPrestationHistory.js +6 -0
  148. package/js/types/Interface/models/IPrestationHistory.js.map +1 -0
  149. package/js/types/index.js +96 -0
  150. package/js/types/index.js.map +1 -1
  151. package/js/utils/commercialManagement/document.js +9 -7
  152. package/js/utils/commercialManagement/document.js.map +1 -1
  153. package/js/utils/commercialManagement/templates/body.js +3 -1
  154. package/js/utils/commercialManagement/templates/body.js.map +1 -1
  155. package/js/utils/commercialManagement/templates/common.js +20 -1
  156. package/js/utils/commercialManagement/templates/common.js.map +1 -1
  157. package/package.json +1 -1
  158. package/ts/api/resources/CommercialDocument.ts +4 -0
  159. package/ts/api/resources/CommercialSetting.ts +11 -1
  160. package/ts/api/resources/Invoice.ts +5 -0
  161. package/ts/api/resources/Qonto.ts +23 -7
  162. package/ts/api/resources/Stripe.ts +8 -0
  163. package/ts/api/resources.ts +2 -0
  164. package/ts/types/Enum/CommercialManagement.ts +22 -0
  165. package/ts/types/Enum/Rules.ts +18 -0
  166. package/ts/types/Interface/api/commercialManagement/Create.ts +24 -2
  167. package/ts/types/Interface/api/commercialManagement/Query.ts +6 -0
  168. package/ts/types/Interface/api/commercialManagement/Read.ts +1 -0
  169. package/ts/types/Interface/api/qonto/CreateQontoConnection.ts +12 -0
  170. package/ts/types/Interface/api/qonto/GetConnectionInformation.ts +8 -0
  171. package/ts/types/Interface/api/qonto/ProcessBankAccount.ts +12 -0
  172. package/ts/types/Interface/api/qonto/Query.ts +1 -1
  173. package/ts/types/Interface/api/qonto/ReadCreateConnection.ts +6 -0
  174. package/ts/types/Interface/api/qonto/UpdateConnection.ts +8 -0
  175. package/ts/types/Interface/api/stripe/Create.ts +8 -0
  176. package/ts/types/Interface/api/thirdParty/CreateThirdPartyForm.ts +15 -1
  177. package/ts/types/Interface/api/thirdParty/UpdateThirdPartyForm.ts +15 -1
  178. package/ts/types/Interface/models/IApiError.ts +4 -0
  179. package/ts/types/Interface/models/IEstimateInvoice.ts +3 -0
  180. package/ts/types/Interface/models/IPrestationHistory.ts +16 -0
  181. package/ts/types/Interface/models/ISocietyGescom.ts +4 -1
  182. package/ts/types/Interface/models/IThirdParty.ts +3 -0
  183. package/ts/types/index.ts +8 -0
  184. package/ts/utils/commercialManagement/document.ts +3 -1
  185. package/ts/utils/commercialManagement/templates/body.ts +3 -1
  186. package/ts/utils/commercialManagement/templates/common.ts +20 -1
@@ -1,4 +1,4 @@
1
- import { IsEnum, IsOptional } from 'class-validator';
1
+ import { IsEnum, IsOptional, IsString } from 'class-validator';
2
2
  import { ThirdPartyType } from '../../..';
3
3
  import { ApiPropertyOptional } from '../../../../utils';
4
4
 
@@ -83,4 +83,18 @@ export class UpdateThirdPartyForm {
83
83
  @IsOptional()
84
84
  @IsEnum(ThirdPartyType)
85
85
  idThirdPartyType?: ThirdPartyType;
86
+
87
+ @ApiPropertyOptional()
88
+ @IsOptional()
89
+ @IsString()
90
+ deliveryAddress: string | null;
91
+
92
+ @ApiPropertyOptional()
93
+ @IsOptional()
94
+ @IsString()
95
+ deliveryCity: string | null;
96
+
97
+ @ApiPropertyOptional()
98
+ @IsOptional()
99
+ deliveryZipCode: string | null;
86
100
  }
@@ -19,6 +19,7 @@ export enum Code {
19
19
  notImplemented = 'not_implemented',
20
20
  unknown = 'unknown',
21
21
  formatNotAuthorized = 'format_not_authorized',
22
+ CONNECTION_ALREADY_EXIST = 'connection_already_exist',
22
23
 
23
24
  // Annotation Error
24
25
  failedCheckBalance = 'failed_check_balance',
@@ -143,6 +144,9 @@ export enum Code {
143
144
  bankAccountDesactivationFailed = 'bank_account_desactivation_failed',
144
145
  udpateTokenFailed = 'update_token_failed',
145
146
 
147
+ // qonto
148
+ CONNECTION_ALREADY_EXISTS = 'CONNECTION_ALREADY_EXISTS',
149
+
146
150
  // Accounts
147
151
  GENERIC_ACCOUNT_NOT_FOUND = 'GENERIC_ACCOUNT_NOT_FOUND',
148
152
 
@@ -8,6 +8,7 @@ import { IInvoiceReminder } from './IInvoiceReminder';
8
8
  import { IFile } from './IFile';
9
9
  import { IInvoiceRecurrence } from './IInvoiceRecurrence';
10
10
  import { ReadEstimateInvoiceStatus } from '../api/commercialManagement/Read';
11
+ import { AccountingCategoryId } from '../../Enum/CommercialManagement';
11
12
 
12
13
  // estimatesInvoices
13
14
  export interface IEstimateInvoice {
@@ -40,6 +41,8 @@ export interface IEstimateInvoice {
40
41
  isRefused: boolean;
41
42
  isCanceled: boolean;
42
43
  status?: ReadEstimateInvoiceStatus;
44
+ accountingCategory: AccountingCategoryId;
45
+ shouldPayTaxAfterDebit: boolean;
43
46
  idFile?: number | null;
44
47
  idRelatedInvoice: number | null;
45
48
  idTypeEstimateInvoice: number | number[];
@@ -0,0 +1,16 @@
1
+ import { IPrestation } from './IPrestation';
2
+ import { IUser } from './IUser';
3
+
4
+ // prestationHistory
5
+ export interface IPrestationHistory {
6
+ id?: number;
7
+ idState: number;
8
+ idPrestation: number | null;
9
+ idUser: number | null;
10
+ createdAt?: Date | null;
11
+ updatedAt?: Date | null;
12
+
13
+ // Associations
14
+ prestation: IPrestation;
15
+ user: IUser;
16
+ }
@@ -1,4 +1,4 @@
1
- import { FontIds, LogoAlignment } from '../../Enum/CommercialManagement';
1
+ import { AccountingCategoryId, FontIds, LogoAlignment } from '../../Enum/CommercialManagement';
2
2
 
3
3
  // societyGescom
4
4
  export interface ISocietyGescom {
@@ -29,10 +29,13 @@ export interface ISocietyGescom {
29
29
  cgv?: string | null;
30
30
  invoiceCgv?: boolean | null;
31
31
  template?: number | null;
32
+ dayOfValidity?: number | null;
32
33
  color?: string | null;
33
34
  commercialName?: string | null;
34
35
  freeInvoiceText?: string | null;
35
36
  freeEstimateText?: string | null;
37
+ accountingCategory?: AccountingCategoryId | null;
38
+ shouldPayTaxAfterDebit?: boolean;
36
39
  logoAlignment?: LogoAlignment | null;
37
40
  isEdgingDisplayed?: boolean;
38
41
  edgingColor?: string;
@@ -27,6 +27,9 @@ export interface IThirdParty {
27
27
  idAccount?: number | null;
28
28
  idCountry?: number | null;
29
29
  idThirdPartyType: ThirdPartyType;
30
+ deliveryAddress?: string | null;
31
+ deliveryZipCode?: string | null;
32
+ deliveryCity?: string | null;
30
33
  createdAt?: Date;
31
34
  updatedAt?: Date;
32
35
  deletedAt?: Date | null;
package/ts/types/index.ts CHANGED
@@ -142,6 +142,7 @@ export * from './Interface/models/IPermission';
142
142
  export * from './Interface/models/IPhoneNumber';
143
143
  export * from './Interface/models/IPhonePrefix';
144
144
  export * from './Interface/models/IPhonePrefixChild';
145
+ export * from './Interface/models/IPrestationHistory';
145
146
  export * from './Interface/models/IPrestation';
146
147
  export * from './Interface/models/IPrestationComplementary';
147
148
  export * from './Interface/models/IPrestationList';
@@ -436,6 +437,7 @@ export * from './Enum/SocietyTypeEvent';
436
437
  export * from './Enum/Call';
437
438
  export * from './Enum/ConnectionError';
438
439
  export * from './Enum/RecurrenceType';
440
+ export * from './Enum/Rules';
439
441
 
440
442
  // Interfaces API
441
443
  export * from './Interface/api/partnerTransactionType/ReadPartnerTransactionType';
@@ -774,6 +776,12 @@ export * from './Interface/api/connection/QueryConnectionState';
774
776
  export * from './Interface/api/connection/ReadConnectionState';
775
777
  export * from './Interface/api/qonto/Query';
776
778
  export * from './Interface/api/qonto/CreateImportation';
779
+ export * from './Interface/api/stripe/Create';
780
+ export * from './Interface/api/qonto/UpdateConnection';
781
+ export * from './Interface/api/qonto/CreateQontoConnection';
782
+ export * from './Interface/api/qonto/GetConnectionInformation';
783
+ export * from './Interface/api/qonto/ProcessBankAccount';
784
+ export * from './Interface/api/qonto/ReadCreateConnection';
777
785
 
778
786
  // Enums types
779
787
  export * from './Interface/enum/Util';
@@ -3,7 +3,7 @@ import {
3
3
  } from 'lodash';
4
4
  import * as dayjs from 'dayjs';
5
5
  import { ReadCommercialDocumentTemplate, ReadDocumentEditing } from '../../types/Interface/api/commercialManagement/Read';
6
- import { fontList, VatMarginCategyList } from '../../types/Enum/CommercialManagement';
6
+ import { AccountingCategoryList, fontList, VatMarginCategyList } from '../../types/Enum/CommercialManagement';
7
7
  import { EstimateInvoiceType } from '../../types/Enum/EstimateInvoice';
8
8
  import { Vat } from '../../types/Enum/Vat';
9
9
  import { integerToFormattedAmountString } from '../amount';
@@ -46,6 +46,7 @@ export function generateCommercialDocument(idEstimateInvoiceType: EstimateInvoic
46
46
  shouldDisplayDiscountColumn: !!products.find((p) => p.discount2 && p.discount2 > 0),
47
47
  // @ts-ignore
48
48
  marginVats: _uniq(products.filter((p) => p.marginVatFormatted !== null).map((p) => p.marginVatFormatted)),
49
+ accountingCategoryFormatted: AccountingCategoryList.find((a) => a.id === payload.accountingCategory)?.label ?? null,
49
50
  };
50
51
 
51
52
  const commonTemplate = new CommercialDocumentCommonHTML();
@@ -99,6 +100,7 @@ export function generateAdvanceDocument(payload: CreateInvoiceDocument): ReadCom
99
100
  disableVat: true,
100
101
  // @ts-ignore
101
102
  marginVats: _uniq((payload.assetMarginVatIds ?? []).map((m) => VatMarginCategyList.find((c) => c.id === m)?.label ?? null)),
103
+ accountingCategoryFormatted: AccountingCategoryList.find((a) => a.id === payload.accountingCategory)?.label ?? null,
102
104
  };
103
105
 
104
106
  const commonTemplate = new CommercialDocumentCommonHTML();
@@ -52,10 +52,12 @@ const headOfDocument = `<div class="row space-between">
52
52
  <div style="width: 40%; margin-top: auto;">
53
53
  <p>Client</p>
54
54
  <div class="<%= settings && settings.isCoordinatesFrameDisplayed ? 'customer-border' : '' %>">
55
- <% if(thirdParty.fullname) {%><%= thirdParty.fullname %><br/><% } %>
55
+ <% if(thirdParty.fullname) {%><b><%= thirdParty.fullname %></b><br/><% } %>
56
56
  <% if(thirdParty.company) {%><%= thirdParty.company %><br/><% } %>
57
57
  <% if(thirdParty.address) {%><%= thirdParty.address %><br/><% } %>
58
+ <% if(thirdParty.deliveryAddress && thirdParty.deliveryCity && thirdParty.deliveryZipCode) {%>Adresse de livraison : <%= thirdParty.deliveryAddress %><%= thirdParty.deliveryZipCode %><%= thirdParty.deliveryCity %><% } %>
58
59
  <% if(thirdParty.zipCode) {%><%= thirdParty.zipCode + ' ' %><% } %><%= thirdParty.city %>
60
+ <% if(thirdParty.nSiret) {%>SIRET : <%= thirdParty.nSiret %><% } %>
59
61
  </div>
60
62
  </div>
61
63
  </div>`;
@@ -10,7 +10,26 @@ export class CommercialDocumentCommonHTML {
10
10
 
11
11
  footer = `<div style="font-size: 8px; color: #DADCDF; text-align: center; margin-left: 40px; margin-right: 40px; display: block; width: 100%">
12
12
  <% if (freeText) { %><%- freeText %><br/><br/><% } %>
13
- <% if(marginVats.length > 0) {%>Régime TVA sur marge - <% marginVats.forEach(function(v, index) { %><%= v %> - <% }) } %> ART 297-A du CGI ou directive 2006-212 CE | <% if(penalties || compensation || discount) {%><%= penalties ? 'Pénalités en cas de retard : ' + penalties : ''%><%= penalties && compensation ? '|' : ''%><%= compensation ? 'Indemnité forfaitaire en cas de retard :' + compensation : '' %><%= (compensation || penalties) && discount ? '| ' : '' %><%= discount %><% if(name || legalForm || capital || siren || rcs) {%><br/><br/><% } %><% }%>
13
+ <% if (accountingCategoryFormatted) {%>
14
+ <%= accountingCategoryFormatted %> |
15
+ <%}%>
16
+ <% if(marginVats.length > 0) { %>
17
+ Régime TVA sur marge -
18
+ <% marginVats.forEach(function(v, index) { %>
19
+ <%= v %> -
20
+ <% }) %>
21
+ ART 297-A du CGI ou directive 2006-212 CE |
22
+ <% } %>
23
+ <% if(penalties || compensation || discount) { %>
24
+ <%= penalties ? 'Pénalités en cas de retard : ' + penalties : ''%>
25
+ <%= penalties && compensation ? '|' : ''%>
26
+ <%= compensation ? 'Indemnité forfaitaire en cas de retard :' + compensation : '' %>
27
+ <%= (compensation || penalties) && discount ? '| ' : '' %>
28
+ <%= discount %><%= shouldPayTaxAfterDebit ? "| Option pour le paiement de la taxe d'après les débits" : '' %>
29
+ <% if(name || legalForm || capital || siren || rcs) {%>
30
+ <br/><br/>
31
+ <% } %>
32
+ <% } %>
14
33
  <%= name %><%= name && (legalForm || capital || siren || rcs) ? ',' : ''%><%= legalForm %><%= capital ? ' au capital de ' + capitalFormatted + ' €' : '' %><%= siren ? ' immatriculée sous le SIREN ' + siren : ''%><%= rcs ? 'RCS ' + rcs + vatCode || nafCode ? '|' : '' : ''%><% if (vatCode || nafCode) {%><br/><% } %><%= vatCode ? 'N° TVA '+vatCode : ''%><% if(vatCode && nafCode){%>|<%}%><%= nafCode ? 'APE '+nafCode : '' %>
15
34
  </div>`;
16
35