@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.
- package/es/api/resources/Loan.js +1 -1
- package/es/api/resources/Loan.js.map +1 -1
- package/es/api/resources/SocietyConfig.d.ts +7 -0
- package/es/api/resources/SocietyConfig.d.ts.map +1 -0
- package/es/api/resources/SocietyConfig.js +10 -0
- package/es/api/resources/SocietyConfig.js.map +1 -0
- package/es/api/resources.d.ts +2 -0
- package/es/api/resources.d.ts.map +1 -1
- package/es/api/resources.js +2 -0
- package/es/api/resources.js.map +1 -1
- package/es/types/Enum/ProductType.d.ts +10 -0
- package/es/types/Enum/ProductType.d.ts.map +1 -1
- package/es/types/Enum/ProductType.js +23 -3
- package/es/types/Enum/ProductType.js.map +1 -1
- package/es/types/Enum/RoleDetail.d.ts +7 -0
- package/es/types/Enum/RoleDetail.d.ts.map +1 -1
- package/es/types/Enum/RoleDetail.js +7 -0
- package/es/types/Enum/RoleDetail.js.map +1 -1
- package/es/types/Enum/Unit.js +2 -2
- package/es/types/Enum/Unit.js.map +1 -1
- package/es/types/Interface/api/commercialManagement/Create.d.ts +1 -1
- package/es/types/Interface/api/commercialManagement/Create.d.ts.map +1 -1
- package/es/types/Interface/api/commercialManagement/Create.js +1 -2
- package/es/types/Interface/api/commercialManagement/Create.js.map +1 -1
- package/es/types/Interface/api/commercialManagement/Read.d.ts +1 -1
- package/es/types/Interface/api/commercialManagement/Read.d.ts.map +1 -1
- package/es/types/Interface/api/commercialManagement/Read.js.map +1 -1
- package/es/types/Interface/api/societyConfig/update.d.ts +21 -0
- package/es/types/Interface/api/societyConfig/update.d.ts.map +1 -0
- package/es/types/Interface/api/societyConfig/update.js +131 -0
- package/es/types/Interface/api/societyConfig/update.js.map +1 -0
- package/es/types/Interface/models/IExercice.d.ts +1 -0
- package/es/types/Interface/models/IExercice.d.ts.map +1 -1
- package/es/types/Interface/models/IExercice.js.map +1 -1
- package/es/types/Interface/models/ISociety.d.ts +2 -1
- package/es/types/Interface/models/ISociety.d.ts.map +1 -1
- package/es/types/Interface/models/ISociety.js.map +1 -1
- package/es/types/index.d.ts +1 -0
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +1 -0
- package/es/types/index.js.map +1 -1
- package/es/utils/commercialManagement/document.d.ts.map +1 -1
- package/es/utils/commercialManagement/document.js +13 -13
- package/es/utils/commercialManagement/document.js.map +1 -1
- package/es/utils/commercialManagement/templates/common.js +2 -2
- package/es/utils/commercialManagement/templates/common.js.map +1 -1
- package/js/api/resources/Loan.js +1 -1
- package/js/api/resources/Loan.js.map +1 -1
- package/js/api/resources/SocietyConfig.js +22 -0
- package/js/api/resources/SocietyConfig.js.map +1 -0
- package/js/api/resources.js +4 -1
- package/js/api/resources.js.map +1 -1
- package/js/types/Enum/ProductType.js +21 -3
- package/js/types/Enum/ProductType.js.map +1 -1
- package/js/types/Enum/RoleDetail.js +7 -0
- package/js/types/Enum/RoleDetail.js.map +1 -1
- package/js/types/Enum/Unit.js +2 -2
- package/js/types/Enum/Unit.js.map +1 -1
- package/js/types/Interface/api/commercialManagement/Create.js +1 -1
- package/js/types/Interface/api/commercialManagement/Create.js.map +1 -1
- package/js/types/Interface/api/societyConfig/update.js +65 -0
- package/js/types/Interface/api/societyConfig/update.js.map +1 -0
- package/js/types/index.js +12 -0
- package/js/types/index.js.map +1 -1
- package/js/utils/commercialManagement/document.js +30 -24
- package/js/utils/commercialManagement/document.js.map +1 -1
- package/js/utils/commercialManagement/templates/common.js +2 -2
- package/js/utils/commercialManagement/templates/common.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Loan.ts +1 -1
- package/ts/api/resources/SocietyConfig.ts +12 -0
- package/ts/api/resources.ts +2 -0
- package/ts/types/Enum/ProductType.ts +26 -3
- package/ts/types/Enum/RoleDetail.ts +7 -0
- package/ts/types/Enum/Unit.ts +2 -2
- package/ts/types/Interface/api/commercialManagement/Create.ts +1 -2
- package/ts/types/Interface/api/commercialManagement/Read.ts +1 -1
- package/ts/types/Interface/api/societyConfig/update.ts +103 -0
- package/ts/types/Interface/models/IExercice.ts +1 -0
- package/ts/types/Interface/models/ISociety.ts +2 -1
- package/ts/types/index.ts +1 -0
- package/ts/utils/commercialManagement/document.ts +6 -0
- 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 : ''
|
|
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
|
-
|
|
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; }
|