@silexpert/core 1.0.39 → 1.0.43

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 (83) hide show
  1. package/es/api/resources/Loan.js +1 -1
  2. package/es/api/resources/Loan.js.map +1 -1
  3. package/es/api/resources/SocietyConfig.d.ts +7 -0
  4. package/es/api/resources/SocietyConfig.d.ts.map +1 -0
  5. package/es/api/resources/SocietyConfig.js +10 -0
  6. package/es/api/resources/SocietyConfig.js.map +1 -0
  7. package/es/api/resources.d.ts +2 -0
  8. package/es/api/resources.d.ts.map +1 -1
  9. package/es/api/resources.js +2 -0
  10. package/es/api/resources.js.map +1 -1
  11. package/es/types/Enum/ProductType.d.ts +10 -0
  12. package/es/types/Enum/ProductType.d.ts.map +1 -1
  13. package/es/types/Enum/ProductType.js +23 -3
  14. package/es/types/Enum/ProductType.js.map +1 -1
  15. package/es/types/Enum/RoleDetail.d.ts +7 -0
  16. package/es/types/Enum/RoleDetail.d.ts.map +1 -1
  17. package/es/types/Enum/RoleDetail.js +7 -0
  18. package/es/types/Enum/RoleDetail.js.map +1 -1
  19. package/es/types/Enum/Unit.js +2 -2
  20. package/es/types/Enum/Unit.js.map +1 -1
  21. package/es/types/Interface/api/commercialManagement/Create.d.ts +1 -1
  22. package/es/types/Interface/api/commercialManagement/Create.d.ts.map +1 -1
  23. package/es/types/Interface/api/commercialManagement/Create.js +1 -2
  24. package/es/types/Interface/api/commercialManagement/Create.js.map +1 -1
  25. package/es/types/Interface/api/commercialManagement/Read.d.ts +1 -1
  26. package/es/types/Interface/api/commercialManagement/Read.d.ts.map +1 -1
  27. package/es/types/Interface/api/commercialManagement/Read.js.map +1 -1
  28. package/es/types/Interface/api/societyConfig/update.d.ts +21 -0
  29. package/es/types/Interface/api/societyConfig/update.d.ts.map +1 -0
  30. package/es/types/Interface/api/societyConfig/update.js +131 -0
  31. package/es/types/Interface/api/societyConfig/update.js.map +1 -0
  32. package/es/types/Interface/models/IExercice.d.ts +1 -0
  33. package/es/types/Interface/models/IExercice.d.ts.map +1 -1
  34. package/es/types/Interface/models/IExercice.js.map +1 -1
  35. package/es/types/Interface/models/ISociety.d.ts +2 -1
  36. package/es/types/Interface/models/ISociety.d.ts.map +1 -1
  37. package/es/types/Interface/models/ISociety.js.map +1 -1
  38. package/es/types/index.d.ts +1 -0
  39. package/es/types/index.d.ts.map +1 -1
  40. package/es/types/index.js +1 -0
  41. package/es/types/index.js.map +1 -1
  42. package/es/utils/commercialManagement/document.d.ts.map +1 -1
  43. package/es/utils/commercialManagement/document.js +13 -13
  44. package/es/utils/commercialManagement/document.js.map +1 -1
  45. package/es/utils/commercialManagement/templates/common.js +2 -2
  46. package/es/utils/commercialManagement/templates/common.js.map +1 -1
  47. package/js/api/resources/Loan.js +1 -1
  48. package/js/api/resources/Loan.js.map +1 -1
  49. package/js/api/resources/SocietyConfig.js +22 -0
  50. package/js/api/resources/SocietyConfig.js.map +1 -0
  51. package/js/api/resources.js +4 -1
  52. package/js/api/resources.js.map +1 -1
  53. package/js/types/Enum/ProductType.js +21 -3
  54. package/js/types/Enum/ProductType.js.map +1 -1
  55. package/js/types/Enum/RoleDetail.js +7 -0
  56. package/js/types/Enum/RoleDetail.js.map +1 -1
  57. package/js/types/Enum/Unit.js +2 -2
  58. package/js/types/Enum/Unit.js.map +1 -1
  59. package/js/types/Interface/api/commercialManagement/Create.js +1 -1
  60. package/js/types/Interface/api/commercialManagement/Create.js.map +1 -1
  61. package/js/types/Interface/api/societyConfig/update.js +65 -0
  62. package/js/types/Interface/api/societyConfig/update.js.map +1 -0
  63. package/js/types/index.js +12 -0
  64. package/js/types/index.js.map +1 -1
  65. package/js/utils/commercialManagement/document.js +30 -24
  66. package/js/utils/commercialManagement/document.js.map +1 -1
  67. package/js/utils/commercialManagement/templates/common.js +2 -2
  68. package/js/utils/commercialManagement/templates/common.js.map +1 -1
  69. package/package.json +1 -1
  70. package/ts/api/resources/Loan.ts +1 -1
  71. package/ts/api/resources/SocietyConfig.ts +12 -0
  72. package/ts/api/resources.ts +2 -0
  73. package/ts/types/Enum/ProductType.ts +26 -3
  74. package/ts/types/Enum/RoleDetail.ts +7 -0
  75. package/ts/types/Enum/Unit.ts +2 -2
  76. package/ts/types/Interface/api/commercialManagement/Create.ts +1 -2
  77. package/ts/types/Interface/api/commercialManagement/Read.ts +1 -1
  78. package/ts/types/Interface/api/societyConfig/update.ts +103 -0
  79. package/ts/types/Interface/models/IExercice.ts +1 -0
  80. package/ts/types/Interface/models/ISociety.ts +2 -1
  81. package/ts/types/index.ts +1 -0
  82. package/ts/utils/commercialManagement/document.ts +6 -0
  83. package/ts/utils/commercialManagement/templates/common.ts +2 -2
@@ -48,7 +48,7 @@ import { ISms } from './ISms';
48
48
  import { IUser } from './IUser';
49
49
  import { ISocietyEvent } from './ISocietyEvent';
50
50
  import {
51
- ComptaType, Country, INafCode, IPartneredAccountantCompanyService, Sector, UnpaidDetail, IPartneredAccountantToSociety, IMail, IAccountingTransaction,
51
+ ComptaType, Country, INafCode, IPartneredAccountantCompanyService, Sector, UnpaidDetail, IPartneredAccountantToSociety, IMail, IAccountingTransaction, IFecFile,
52
52
  } from '../..';
53
53
  import { IBrandType } from './IBrandType';
54
54
 
@@ -204,4 +204,5 @@ export interface ISociety {
204
204
  events: ISocietyEvent[];
205
205
  mails: IMail[];
206
206
  transactions: IAccountingTransaction[];
207
+ fecFile: IFecFile | null
207
208
  }
package/ts/types/index.ts CHANGED
@@ -787,6 +787,7 @@ export * from './Interface/api/qonto/ProcessBankAccount';
787
787
  export * from './Interface/api/qonto/ReadCreateConnection';
788
788
  export * from './Interface/api/file/Create';
789
789
  export * from './Interface/api/file/Read';
790
+ export * from './Interface/api/societyConfig/update';
790
791
 
791
792
  // Enums types
792
793
  export * from './Interface/enum/Util';
@@ -23,6 +23,11 @@ export function generateCommercialDocument(idEstimateInvoiceType: EstimateInvoic
23
23
  ...payload,
24
24
  paymentLink: payload.paymentLink ?? '#',
25
25
  idEstimateInvoiceType,
26
+ title: payload.title ?? null,
27
+ penalties: payload.penalties ?? null,
28
+ compensation: payload.compensation ?? null,
29
+ discount: payload.discount ?? null,
30
+ vatMention: payload.vatMention ?? null,
26
31
  phoneContact: payload.settings?.phoneContact ?? null,
27
32
  products,
28
33
  vats,
@@ -65,6 +70,7 @@ export function generateAdvanceDocument(payload: CreateInvoiceDocument): ReadCom
65
70
 
66
71
  const data: ReadDocumentEditing = {
67
72
  ...payload,
73
+ title: payload.title ?? null,
68
74
  paymentLink: payload.paymentLink ?? '#',
69
75
  idEstimateInvoiceType: EstimateInvoiceType.ACOMPTE,
70
76
  phoneContact: payload.settings?.phoneContact ?? null,
@@ -73,7 +73,7 @@ export class CommercialDocumentCommonHTML {
73
73
  <% if(product.itemSaleName) { %><p class="product-name"><%= product.itemSaleName %></p><% } %>
74
74
  <% if(product.comment) { %><p class="product-description"><%= product.comment %></p><% } %>
75
75
  </td>
76
- <td class="product-quantity"><%= product.quantity ? product.quantity : '' %><%= product.unitFormatted ? product.unitFormatted : '' %></td>
76
+ <td class="product-quantity"><%= product.quantity ? product.quantity : '' %> <%= product.unitFormatted ? product.unitFormatted : '' %></td>
77
77
  <td class="product-price-without-vat"><% if(product.priceTaxExcludedFormatted) { %><%= product.priceTaxExcludedFormatted + '€' %><% } %></td>
78
78
  <% if (shouldDisplayDiscountColumn) { %>
79
79
  <td class="product-discount">
@@ -188,7 +188,7 @@ export class CommercialDocumentCommonHTML {
188
188
  .pdf-content .logo-placeholder { width: 300px; max-height: 150px;text-align: <%= settings && settings.logoAlignment === 'left' ? 'left' : 'right' %>; margin-bottom: <%= settings && settings.logoAlignment === 'left' ? '10px;' : '0px' %>}
189
189
  .pdf-content .logo-placeholder > svg, .pdf-content .logo-placeholder > img { max-width: 100%; max-height: 150px; }
190
190
  .pdf-content .document-reference { font-size: 20px; }
191
- ..pdf-content customer-border { border: 2px solid #EAEAEA; border-radius: 6px; padding: 7px; }
191
+ .pdf-content .customer-border { border: 2px solid #EAEAEA; border-radius: 6px; padding: 7px; }
192
192
 
193
193
  /* Body */
194
194
  .pdf-content table.commercial-table-preview { border-spacing: 1px; border-collapse: collapse; }