@silexpert/core 1.2.10 → 1.2.11
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/utils/checklist.d.ts.map +1 -1
- package/dist/cjs/utils/checklist.js +5 -1
- package/dist/cjs/utils/checklist.js.map +1 -1
- package/dist/cjs/utils/commercialManagement/internationalization/choices.js +27 -27
- package/dist/cjs/utils/commercialManagement/internationalization/choices.js.map +1 -1
- package/dist/mjs/utils/checklist.d.ts.map +1 -1
- package/dist/mjs/utils/checklist.js +5 -1
- package/dist/mjs/utils/checklist.js.map +1 -1
- package/dist/mjs/utils/commercialManagement/internationalization/choices.js +27 -27
- package/dist/mjs/utils/commercialManagement/internationalization/choices.js.map +1 -1
- package/package.json +1 -1
- package/ts/utils/checklist.ts +5 -1
- package/ts/utils/commercialManagement/internationalization/choices.ts +27 -27
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checklist.d.ts","sourceRoot":"","sources":["../../../ts/utils/checklist.ts"],"names":[],"mappings":"AAAA,OAAO,EACwD,UAAU,EAAE,cAAc,EAAE,yBAAyB,EACnH,MAAM,UAAU,CAAC;AAElB,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,UAAU,EAAE,IAAI,EAAE,yBAAyB,GAAG,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"checklist.d.ts","sourceRoot":"","sources":["../../../ts/utils/checklist.ts"],"names":[],"mappings":"AAAA,OAAO,EACwD,UAAU,EAAE,cAAc,EAAE,yBAAyB,EACnH,MAAM,UAAU,CAAC;AAElB,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,UAAU,EAAE,IAAI,EAAE,yBAAyB,GAAG,cAAc,EAAE,CA0C7G"}
|
|
@@ -8,6 +8,10 @@ function getAllBlockingIssues(checklist, meta) {
|
|
|
8
8
|
const blockingIssues = [];
|
|
9
9
|
blockingQuestions.forEach((question) => {
|
|
10
10
|
const answer = answers.find((a) => a.idTypeChecklist === question.id);
|
|
11
|
+
if (question.id === 51) {
|
|
12
|
+
console.log(question);
|
|
13
|
+
console.log(answer);
|
|
14
|
+
}
|
|
11
15
|
if (!answer) {
|
|
12
16
|
blockingIssues.push(question);
|
|
13
17
|
}
|
|
@@ -30,7 +34,7 @@ function getAllBlockingIssues(checklist, meta) {
|
|
|
30
34
|
}
|
|
31
35
|
}
|
|
32
36
|
else if ([types_1.ChecklistDetailType.SELECT, types_1.ChecklistDetailType.SWITCH].includes(question.type) && question.name !== types_1.ChecklistDetailName.HAS_POLICE) {
|
|
33
|
-
if ((!answer.value &&
|
|
37
|
+
if ((!answer.value && (question.name !== types_1.ChecklistDetailName.IS_WAITING_ACCOUNT_RESET && question.name !== types_1.ChecklistDetailName.HAS_CLEARED_INTERNAL_TRANSFER)) || answer.value === '0') {
|
|
34
38
|
blockingIssues.push(question);
|
|
35
39
|
}
|
|
36
40
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checklist.js","sourceRoot":"","sources":["../../../ts/utils/checklist.ts"],"names":[],"mappings":";;AAIA,
|
|
1
|
+
{"version":3,"file":"checklist.js","sourceRoot":"","sources":["../../../ts/utils/checklist.ts"],"names":[],"mappings":";;AAIA,oDA0CC;AA9CD,oCAEkB;AAElB,SAAgB,oBAAoB,CAAC,SAAqB,EAAE,IAA+B;IACzF,MAAM,EAAE,aAAa,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;IAExC,MAAM,iBAAiB,GAAG,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,SAAS,CAAC,IAAI,KAAK,yBAAiB,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI,KAAK,yBAAiB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;IAC9M,MAAM,cAAc,GAAqB,EAA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P,OAAO,uBAAP,OAAO,CAAE,KAAK,MAAK,EAAE,CAAC,CAAC,EAAE,CAAC;gBAClH,cAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YAChC,CAAC;QACH,CAAC;aAAM,IAAI,CAAC,2BAAmB,CAAC,MAAgB,EAAE,2BAAmB,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,QAAQ,CAAC,IAAI,KAAK,2BAAmB,CAAC,UAAU,EAAE,CAAC;YAC1J,IAAI,CAAC,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC,QAAQ,CAAC,IAAI,KAAK,2BAAmB,CAAC,wBAAwB,IAAI,QAAQ,CAAC,IAAI,KAAK,2BAAmB,CAAC,6BAA6B,CAAC,CAAC,IAAI,MAAM,CAAC,KAAK,KAAK,GAAG,EAAE,CAAC;gBACvL,cAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YAChC,CAAC;QACH,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,cAAc,CAAC;AACxB,CAAC","sourcesContent":["import {\n ChecklistDetailName, ChecklistDetailType, ChecklistTypeEnum, IChecklist, IChecklistType, QueryGetAllBlockingIssues,\n} from '../types';\n\nexport function getAllBlockingIssues(checklist: IChecklist, meta: QueryGetAllBlockingIssues): IChecklistType[] {\n const { questionsList, answers } = meta;\n\n const blockingQuestions = questionsList.filter((q) => (checklist.type === ChecklistTypeEnum.REINFORCED ? q.isBlockingReinforced : checklist.type === ChecklistTypeEnum.DEFAULT ? q.isBlockingSimple : false));\n const blockingIssues: IChecklistType[] = [];\n\n blockingQuestions.forEach((question) => {\n const answer = answers.find((a) => a.idTypeChecklist === question.id);\n if (question.id === 51) {\n console.log(question);\n console.log(answer);\n }\n\n if (!answer) {\n blockingIssues.push(question);\n } else if (question.name === ChecklistDetailName.ACTION_TAKEN) {\n // Comptes bancaires actifs synchronisés ?\n const questionForAreAllBankAccountsSynchronized = questionsList.find((q) => q.name === ChecklistDetailName.ARE_ALL_BANK_ACCOUNTS_SYNCHRONIZED);\n const answerForAreAllBankAccountsSynchronized = answers.find((a) => a.idTypeChecklist && a.idTypeChecklist === questionForAreAllBankAccountsSynchronized?.id);\n\n // Applicatin annotée à 80/100% ?\n const questionForAnnoted = questionsList.find((q) => q.name === (checklist.type === ChecklistTypeEnum.REINFORCED ? ChecklistDetailName.FULLY_ANNOTED : ChecklistDetailName.ALMOST_ANNOTED));\n const answerForAnnoted = answers.find((a) => a.idTypeChecklist && a.idTypeChecklist === questionForAnnoted?.id);\n\n if ((!answerForAnnoted?.value || answerForAnnoted.value === '0' || !answerForAreAllBankAccountsSynchronized?.value || answerForAreAllBankAccountsSynchronized.value === '0') && (answer.value === '2' || answer.value === '0' || !answer.value || answer.value === '')) {\n blockingIssues.push(question);\n }\n } else if (question.name === ChecklistDetailName.HAS_JUSTIFIED_CONTRIBUTIONS) {\n const questionForComment = questionsList.find((q) => q.name === ChecklistDetailName.COMMENTS);\n const comment = answers.find((a) => a.idTypeChecklist && a.idTypeChecklist === questionForComment?.id);\n\n if (!answer.value || answer.value === '0' || (answer.value === '1' && (!comment?.value || comment?.value === ''))) {\n blockingIssues.push(question);\n }\n } else if ([ChecklistDetailType.SELECT as string, ChecklistDetailType.SWITCH].includes(question.type) && question.name !== ChecklistDetailName.HAS_POLICE) {\n if ((!answer.value && (question.name !== ChecklistDetailName.IS_WAITING_ACCOUNT_RESET && question.name !== ChecklistDetailName.HAS_CLEARED_INTERNAL_TRANSFER)) || answer.value === '0') {\n blockingIssues.push(question);\n }\n }\n });\n\n return blockingIssues;\n}\n"]}
|
|
@@ -241,18 +241,18 @@ exports.internationalizationChoices = {
|
|
|
241
241
|
vatMention: [
|
|
242
242
|
'Not affected',
|
|
243
243
|
'Not applicable',
|
|
244
|
-
'VAT not applicable, art. 293 B of the FGTC',
|
|
245
|
-
'VAT not applicable - Exports outside the EU - Art. 259-1 FGTC',
|
|
246
|
-
'Not subject to VAT
|
|
247
|
-
'Article
|
|
248
|
-
'VAT exemption, article 283-2 of the French General Tax Code',
|
|
249
|
-
'VAT exemption: Article 262 ter I of the FGTC',
|
|
250
|
-
'VAT notice 261.4.4 1 of the FGTC',
|
|
251
|
-
'
|
|
252
|
-
'
|
|
253
|
-
'
|
|
254
|
-
'
|
|
255
|
-
'Invoice subject to VAT reverse charge system',
|
|
244
|
+
'VAT not applicable, art. 293 B of the French General Tax Code (FGTC)',
|
|
245
|
+
'VAT not applicable - Exports outside the EU - Art. 259-1 of the French General Tax Code (FGTC)',
|
|
246
|
+
'Not subject to VAT according to article 261C of the French General Tax Code (FGTC)',
|
|
247
|
+
'Article 261D of the French General Tax Code (FGTC)',
|
|
248
|
+
'VAT exemption, article 283-2 of the French General Tax Code (FGTC)',
|
|
249
|
+
'VAT exemption: Article 262 ter I of the French General Tax Code (FGTC)',
|
|
250
|
+
'VAT notice 261.4.4 1 of the French General Tax Code (FGTC)',
|
|
251
|
+
'Specific regime - Second-hand goods - article 297 A of the French General Tax Code (FGTC) and Community Directive 2006/112/EC',
|
|
252
|
+
'Specific regime - Works of art - article 297 A of the French General Tax Code (FGTC) and Community Directive 2006/112/EC',
|
|
253
|
+
'Specific regime – Collectibles and antiques - article 297 A of the French General Tax Code (FGTC) and Community Directive 2006/112/EC',
|
|
254
|
+
'Specific regime - Travel agencies - article 297 A of the French General Tax Code (FGTC) and Community Directive 2006/112/EC',
|
|
255
|
+
' Invoice subject to VAT reverse charge system',
|
|
256
256
|
],
|
|
257
257
|
recoveryCost: [
|
|
258
258
|
'Not applicable',
|
|
@@ -262,7 +262,7 @@ exports.internationalizationChoices = {
|
|
|
262
262
|
'Credit card',
|
|
263
263
|
'Check',
|
|
264
264
|
'Cash',
|
|
265
|
-
'
|
|
265
|
+
'Direct debit',
|
|
266
266
|
'Bank transfer',
|
|
267
267
|
],
|
|
268
268
|
},
|
|
@@ -270,13 +270,13 @@ exports.internationalizationChoices = {
|
|
|
270
270
|
template: {
|
|
271
271
|
common: {
|
|
272
272
|
headers: {
|
|
273
|
-
emissionDate: '
|
|
273
|
+
emissionDate: 'Invoice date',
|
|
274
274
|
accountingCategory: {
|
|
275
|
-
title: '
|
|
275
|
+
title: 'Transaction type',
|
|
276
276
|
choices: [
|
|
277
|
-
{ id: CommercialManagement_1.AccountingCategoryId.DELIVERY_OF_GOOD, label: '
|
|
278
|
-
{ id: CommercialManagement_1.AccountingCategoryId.SERVICE_DELIVERY, label: 'Services
|
|
279
|
-
{ id: CommercialManagement_1.AccountingCategoryId.GOOD_AND_SERVICE, label: 'Services and goods
|
|
277
|
+
{ id: CommercialManagement_1.AccountingCategoryId.DELIVERY_OF_GOOD, label: 'supply of goods' },
|
|
278
|
+
{ id: CommercialManagement_1.AccountingCategoryId.SERVICE_DELIVERY, label: 'Services provision' },
|
|
279
|
+
{ id: CommercialManagement_1.AccountingCategoryId.GOOD_AND_SERVICE, label: 'Services provision and supply of goods' },
|
|
280
280
|
],
|
|
281
281
|
},
|
|
282
282
|
},
|
|
@@ -287,16 +287,16 @@ exports.internationalizationChoices = {
|
|
|
287
287
|
marginVat: 'VAT margin scheme',
|
|
288
288
|
legalVatMention: 'ART 297-A of the FGTC or directive 2006-212 EC',
|
|
289
289
|
shouldPayTaxAfterDebit: 'Option to pay tax on debits',
|
|
290
|
-
penalties: 'Late
|
|
290
|
+
penalties: 'Late fees',
|
|
291
291
|
discount: 'discount',
|
|
292
|
-
recoveryCosts: '
|
|
292
|
+
recoveryCosts: 'flat-rate delay compensation',
|
|
293
293
|
generate: 'Created by',
|
|
294
294
|
},
|
|
295
295
|
options: {
|
|
296
296
|
vatMention: 'VAT mention',
|
|
297
297
|
paymentType: 'payment type',
|
|
298
298
|
bank: 'BANK',
|
|
299
|
-
approval: '
|
|
299
|
+
approval: 'Agreed and signed',
|
|
300
300
|
comment: 'Comment',
|
|
301
301
|
},
|
|
302
302
|
table: {
|
|
@@ -312,7 +312,7 @@ exports.internationalizationChoices = {
|
|
|
312
312
|
base: 'Base',
|
|
313
313
|
rate: 'Rate',
|
|
314
314
|
vatAmount: 'VAT amount',
|
|
315
|
-
recap: '
|
|
315
|
+
recap: 'Summary',
|
|
316
316
|
},
|
|
317
317
|
lines: {
|
|
318
318
|
totalHt: 'Amount excl. tax',
|
|
@@ -334,7 +334,7 @@ exports.internationalizationChoices = {
|
|
|
334
334
|
},
|
|
335
335
|
estimate: {
|
|
336
336
|
headers: {
|
|
337
|
-
title: '
|
|
337
|
+
title: 'Quotation',
|
|
338
338
|
dueDate: 'Valid until',
|
|
339
339
|
termsOfPayment: 'Term of payment',
|
|
340
340
|
},
|
|
@@ -348,21 +348,21 @@ exports.internationalizationChoices = {
|
|
|
348
348
|
},
|
|
349
349
|
deposit: {
|
|
350
350
|
headers: {
|
|
351
|
-
title: 'Deposit',
|
|
352
|
-
expirationDate: '
|
|
351
|
+
title: 'Deposit invoice',
|
|
352
|
+
expirationDate: 'expiry date',
|
|
353
353
|
termsOfPayment: 'Deadline for payment',
|
|
354
354
|
},
|
|
355
355
|
},
|
|
356
356
|
asset: {
|
|
357
357
|
headers: {
|
|
358
|
-
title: '
|
|
358
|
+
title: 'Credit note',
|
|
359
359
|
dueDate: 'Due date',
|
|
360
360
|
termsOfPayment: 'Deadline for payment',
|
|
361
361
|
},
|
|
362
362
|
},
|
|
363
363
|
remainder: {
|
|
364
364
|
headers: {
|
|
365
|
-
title: '
|
|
365
|
+
title: 'Balance invoice',
|
|
366
366
|
dueDate: 'Due date',
|
|
367
367
|
termsOfPayment: 'Deadline for payment',
|
|
368
368
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"choices.js","sourceRoot":"","sources":["../../../../../ts/utils/commercialManagement/internationalization/choices.ts"],"names":[],"mappings":";;;AAAA,mFAAgF;AAInE,QAAA,2BAA2B,GAAoC;IAC1E,EAAE,EAAE;QACF,UAAU,EAAE;YACV,OAAO,EAAE;gBACP,cAAc,EAAE;oBACd,gBAAgB;oBAChB,eAAe;oBACf,2BAA2B;oBA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U;gBACnB,QAAQ,EAAE,YAAY;gBACtB,eAAe,EAAE,kBAAkB;gBACnC,OAAO,EAAE,iBAAiB;gBAC1B,QAAQ,EAAE,WAAW;gBACrB,QAAQ,EAAE,iBAAiB;gBAC3B,IAAI,EAAE,UAAU;aACjB;YACD,OAAO,EAAE;gBACP,KAAK,EAAE,cAAc;gBACrB,QAAQ,EAAE,SAAS;aACpB;YACD,QAAQ,EAAE;gBACR,KAAK,EAAE,eAAe;gBACtB,QAAQ,EAAE,UAAU;aACrB;YACD,SAAS,EAAE;gBACT,KAAK,EAAE,iBAAiB;gBACxB,QAAQ,EAAE,YAAY;aACvB;YACD,OAAO,EAAE;gBACP,KAAK,EAAE,cAAc;gBACrB,QAAQ,EAAE,SAAS;aACpB;YACD,KAAK,EAAE;gBACL,KAAK,EAAE,YAAY;gBACnB,QAAQ,EAAE,OAAO;aAClB;YACD,SAAS,EAAE;gBACT,KAAK,EAAE,cAAc;gBACrB,QAAQ,EAAE,SAAS;aACpB;YACD,OAAO,EAAE;gBACP,KAAK,EAAE,eAAe;gBACtB,QAAQ,EAAE,UAAU;aACrB;SAEF;KACF;CACF,CAAC","sourcesContent":["import { AccountingCategoryId } from '../../../types/Enum/CommercialManagement';\nimport { InternationalizationChoicesType } from './type';\n\n\nexport const internationalizationChoices: InternationalizationChoicesType = {\n fr: {\n inputLists: {\n headers: {\n termsOfPayment: [\n 'À la livraison',\n 'À la commande',\n 'À réception de la facture',\n 'Exigible sous 14 jours',\n 'Exigible sous 30 jours',\n '30 jours à réception de la facture',\n '45 jours à réception de la facture',\n '60 jours à réception de la facture',\n ],\n accountingCategories: [\n { id: AccountingCategoryId.DELIVERY_OF_GOOD, label: 'Livraison de biens' },\n { id: AccountingCategoryId.SERVICE_DELIVERY, label: 'Prestation de services' },\n { id: AccountingCategoryId.GOOD_AND_SERVICE, label: 'Prestation de services et livraison de biens' },\n ],\n },\n options: {\n penalties: [\n 'Non applicable',\n '3 fois le taux légal',\n 'Taux directeur de la BCE + 10 points',\n ],\n discount: [\n 'Non applicable',\n 'Aucun escompte en cas de paiement anticipé',\n ],\n vatMention: [\n 'Non concerné',\n 'Non applicable',\n 'TVA non applicable, art. 293 B du CGI',\n 'TVA non applicable - Exportation hors UE - Art. 259-1 du CGI',\n 'Non soumis à TVA selon l\\'article 261C du CGI',\n 'Article 261 D du code général des impôts (CGI)',\n 'Exonération de TVA, article 283-2 du Code général des impôts',\n 'Exonération de la TVA : Article 262 ter I du CGI',\n 'Mention de TVA 261.4.4 1 du CGI',\n 'Régime particulier – Biens d\\'occasion - article 297 A du CGI et directive communautaire 2006/112/CE',\n 'Régime particulier – Objets d\\'art - article 297 A du CGI et directive communautaire 2006/112/CE',\n 'Régime particulier – Objets de collection ou d\\'antiquité - article 297 A du CGI et directive communautaire 2006/112/CE',\n 'Régime particulier – Agences de voyage - article 297 A du CGI et directive communautaire 2006/112/CE',\n 'Facture soumise au régime de l’auto-liquidation de la TVA',\n ],\n recoveryCost: [\n 'Non applicable',\n '40€',\n ],\n paymentType: [\n 'Carte bancaire',\n 'Chèque',\n 'Espèces',\n 'Prélèvement',\n 'Virement bancaire',\n ],\n },\n },\n template: {\n common: {\n headers: {\n emissionDate: 'Date d\\'émission',\n accountingCategory: {\n title: 'Catégorie de l\\'opération',\n choices: [\n { id: AccountingCategoryId.DELIVERY_OF_GOOD, label: 'Livraison de biens' },\n { id: AccountingCategoryId.SERVICE_DELIVERY, label: 'Prestation de services' },\n { id: AccountingCategoryId.GOOD_AND_SERVICE, label: 'Prestation de services et livraison de biens' },\n ],\n },\n },\n footer: {\n capital: 'au capital de',\n siren: 'immatriculée sous le SIREN',\n vatCode: 'N° TVA',\n marginVat: 'Régime TVA sur marge',\n legalVatMention: 'ART 297-A du CGI ou directive 2006-212 CE',\n shouldPayTaxAfterDebit: 'Option pour le paiement de la taxe d\\'après les débits',\n penalties: 'Pénalités en cas de retard', \n discount: 'Escompte',\n recoveryCosts: 'Indemnités forfaitaire en cas de retard',\n generate: 'Généré par',\n },\n options: { \n vatMention: 'Mention TVA', \n paymentType: 'Mode de paiement',\n bank: 'BANQUE',\n approval: 'Bon pour accord',\n comment: 'Commentaire',\n },\n table: {\n headers: {\n product: 'Article',\n quantity: 'Quantité',\n unitPrice: 'P.U HT',\n unitPriceWithoutVat: 'P.U',\n discount: 'Remise',\n vat: 'TVA',\n amount: 'Montant HT',\n amountWithoutVat: 'Montant',\n base: 'Base',\n rate: 'Taux',\n vatAmount: 'Montant TVA',\n recap: 'Récapitulatif',\n },\n lines: {\n totalHt: 'Total HT',\n vat: 'TVA',\n totalTTC: 'Total TTC',\n totalWhitoutVat: 'Total',\n deposit: 'Acompte',\n remainderToPay: 'Reste à payer',\n netToPay: 'Net à payer',\n },\n },\n },\n invoice: {\n headers: {\n title: 'Facture',\n dueDate: 'Date d\\'échéance',\n termsOfPayment: 'Date limite de règlement',\n },\n },\n estimate: {\n headers: {\n title: 'Devis',\n dueDate: 'Valide jusq\\'au',\n termsOfPayment: 'Conditions de règlement',\n },\n },\n orderForm: {\n headers: {\n title: 'Bon de commande',\n dueDate: 'Date d\\'échéance',\n termsOfPayment: 'Conditions de règlement',\n },\n\n },\n deposit: {\n headers: {\n title: 'Accompte',\n expirationDate: 'Date d\\'expiration',\n termsOfPayment: 'Date limite de règlement',\n },\n },\n asset: {\n headers: {\n title: 'Avoir',\n dueDate: 'Date d\\'échéance',\n termsOfPayment: 'Date limite de règlement',\n },\n },\n remainder: {\n headers: {\n title: 'reste',\n dueDate: 'Date d\\'échéance',\n termsOfPayment: 'Date limite de règlement',\n },\n },\n draft: {\n headers: {\n title: 'Brouillon',\n dueDate: 'Date d\\'échéance',\n termsOfPayment: 'Date limite de règlement',\n },\n },\n },\n mail: {\n common: {\n dueDate: 'Échéance',\n generate: 'Généré par',\n displayDocument: 'Afficher le document',\n totalHt: 'Total HT',\n totalVat: 'Total TVA',\n totalTtc: 'Total TTC',\n send: 'vous adresse',\n },\n invoice: {\n title: 'cette facture',\n subTitle: 'Facture',\n },\n estimate: {\n title: 'ce devis',\n subTitle: 'Devis',\n },\n orderForm: {\n title: 'ce bon de commande',\n subTitle: 'Bon de commande',\n },\n deposit: {\n title: 'cet acompte',\n subTitle: 'Acompte',\n },\n asset: {\n title: 'cet avoir',\n subTitle: 'Avoir',\n },\n remainder: {\n title: 'cette facture',\n subTitle: 'Facture',\n },\n default: {\n title: 'ce document',\n subTitle: 'Document',\n },\n\n },\n },\n en: {\n inputLists: {\n headers: {\n termsOfPayment: [\n 'On delivery',\n 'On order',\n 'Upon receipt of invoice',\n 'Due within 14 days',\n 'Due within 30 days',\n '30 days upon receipt of invoice',\n '45 days upon receipt of invoice',\n '60 days upon receipt of invoice',\n ],\n accountingCategories: [\n { id: AccountingCategoryId.DELIVERY_OF_GOOD, label: 'Delivery of goods' },\n { id: AccountingCategoryId.SERVICE_DELIVERY, label: 'Services delivery' },\n { id: AccountingCategoryId.GOOD_AND_SERVICE, label: 'Services and goods delivery' },\n ],\n },\n options: {\n penalties: [\n 'Not applicable',\n '3 times the legal rate',\n 'ECB key rate + 10 points',\n ],\n discount: [\n 'Not applicable',\n 'No discount for early payment',\n ],\n vatMention: [\n 'Not affected',\n 'Not applicable',\n 'VAT not applicable, art. 293 B of the FGTC',\n 'VAT not applicable - Exports outside the EU - Art. 259-1 FGTC',\n 'Not subject to VAT under article 261C of the FGTC',\n 'Article 261 D of the French General Tax Code (FGTC)',\n 'VAT exemption, article 283-2 of the French General Tax Code',\n 'VAT exemption: Article 262 ter I of the FGTC',\n 'VAT notice 261.4.4 1 of the FGTC',\n 'Special regime - Second-hand goods - article 297 A of the FGTC and EC directive 2006/112/EC',\n 'Special regime - Works of art - article 297 A of the FGTC and EC directive 2006/112/EC',\n 'Special regime – Collector\\'s items and antiques - article 297 A of the FGTC and EC directive 2006/112/EC',\n 'Special regime - Travel agencies - article 297 A of the FGTC and EC directive 2006/112/EC',\n 'Invoice subject to VAT reverse charge system',\n ],\n recoveryCost: [\n 'Not applicable',\n '40€',\n ],\n paymentType: [\n 'Credit card',\n 'Check',\n 'Cash',\n 'Withdrawal',\n 'Bank transfer',\n ],\n },\n },\n template: {\n common: {\n headers: {\n emissionDate: 'Emission date',\n accountingCategory: {\n title: 'Accounting category',\n choices: [\n { id: AccountingCategoryId.DELIVERY_OF_GOOD, label: 'Delivery of goods' },\n { id: AccountingCategoryId.SERVICE_DELIVERY, label: 'Services delivery' },\n { id: AccountingCategoryId.GOOD_AND_SERVICE, label: 'Services and goods delivery' },\n ],\n },\n },\n footer: {\n capital: 'with capital of',\n siren: 'registered under SIREN',\n vatCode: 'VAT number',\n marginVat: 'VAT margin scheme',\n legalVatMention: 'ART 297-A of the FGTC or directive 2006-212 EC',\n shouldPayTaxAfterDebit: 'Option to pay tax on debits',\n penalties: 'Late payment penalties', \n discount: 'discount',\n recoveryCosts: 'Recovery cost for delays',\n generate: 'Created by',\n },\n options: { \n vatMention: 'VAT mention',\n paymentType: 'payment type',\n bank: 'BANK',\n approval: 'For apprval',\n comment: 'Comment',\n \n },\n table: {\n headers: {\n product: 'Product',\n quantity: 'Quantity',\n unitPrice: 'Excl. tax unit price',\n unitPriceWithoutVat: 'Unit price',\n discount: 'Discount',\n vat: 'VAT',\n amount: 'Amount excl. tax',\n amountWithoutVat: 'Amount',\n base: 'Base',\n rate: 'Rate',\n vatAmount: 'VAT amount',\n recap: 'Recap',\n },\n lines: {\n totalHt: 'Amount excl. tax',\n vat: 'VAT',\n totalTTC: 'Amount incl. tax',\n totalWhitoutVat: 'Amount',\n deposit: 'Deposit',\n remainderToPay: 'Remainder to pay',\n netToPay: 'Net to pay',\n },\n },\n },\n invoice: {\n headers: {\n title: 'Invoice',\n dueDate: 'Due date',\n termsOfPayment: 'Deadline for payment',\n },\n },\n estimate: {\n headers: {\n title: 'Estimate',\n dueDate: 'Valid until',\n termsOfPayment: 'Term of payment',\n },\n },\n orderForm: {\n headers: {\n title: 'Order form',\n dueDate: 'Valid until',\n termsOfPayment: 'Term of payment',\n },\n\n },\n deposit: {\n headers: {\n title: 'Deposit',\n expirationDate: 'Expiration date',\n termsOfPayment: 'Deadline for payment',\n },\n },\n asset: {\n headers: {\n title: 'Asset',\n dueDate: 'Due date',\n termsOfPayment: 'Deadline for payment',\n },\n },\n remainder: {\n headers: {\n title: 'Remainder',\n dueDate: 'Due date',\n termsOfPayment: 'Deadline for payment',\n },\n },\n draft: {\n headers: {\n title: 'Draft',\n dueDate: 'Due date',\n termsOfPayment: 'Deadline for payment',\n },\n },\n },\n mail: {\n common: {\n dueDate: 'Due date',\n generate: 'Created by',\n displayDocument: 'Display document',\n totalHt: 'Total excl. tax',\n totalVat: 'Total VAT',\n totalTtc: 'Total incl. tax',\n send: 'send you',\n },\n invoice: {\n title: 'this invoice',\n subTitle: 'Invoice',\n },\n estimate: {\n title: 'this estimate',\n subTitle: 'Estimate',\n },\n orderForm: {\n title: 'this order form',\n subTitle: 'Order form',\n },\n deposit: {\n title: 'this deposit',\n subTitle: 'Deposit',\n },\n asset: {\n title: 'this asset',\n subTitle: 'Asset',\n },\n remainder: {\n title: 'this invoice',\n subTitle: 'Invoice',\n },\n default: {\n title: 'this document',\n subTitle: 'Document',\n },\n\n },\n },\n};"]}
|
|
1
|
+
{"version":3,"file":"choices.js","sourceRoot":"","sources":["../../../../../ts/utils/commercialManagement/internationalization/choices.ts"],"names":[],"mappings":";;;AAAA,mFAAgF;AAInE,QAAA,2BAA2B,GAAoC;IAC1E,EAAE,EAAE;QACF,UAAU,EAAE;YACV,OAAO,EAAE;gBACP,cAAc,EAAE;oBACd,gBAAgB;oBAChB,eAAe;oBACf,2BAA2B;oBAC3B,wBAAwB;oBACxB,wBAAwB;oBACxB,oCAAoC;oBACpC,oCAAoC;oBACpC,oCAAoC;iBACrC;gBACD,oBAAoB,EAAE;oBACpB,EAAE,EAAE,EAAE,2CAAoB,CAAC,gBAAgB,EAAE,KAAK,EAAE,oBAAoB,EAAE;oBAC1E,EAAE,EAAE,EAAE,2CAAoB,CAAC,gBAAgB,EAAE,KAAK,E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pB;YACD,QAAQ,EAAE;gBACR,KAAK,EAAE,eAAe;gBACtB,QAAQ,EAAE,UAAU;aACrB;YACD,SAAS,EAAE;gBACT,KAAK,EAAE,iBAAiB;gBACxB,QAAQ,EAAE,YAAY;aACvB;YACD,OAAO,EAAE;gBACP,KAAK,EAAE,cAAc;gBACrB,QAAQ,EAAE,SAAS;aACpB;YACD,KAAK,EAAE;gBACL,KAAK,EAAE,YAAY;gBACnB,QAAQ,EAAE,OAAO;aAClB;YACD,SAAS,EAAE;gBACT,KAAK,EAAE,cAAc;gBACrB,QAAQ,EAAE,SAAS;aACpB;YACD,OAAO,EAAE;gBACP,KAAK,EAAE,eAAe;gBACtB,QAAQ,EAAE,UAAU;aACrB;SAEF;KACF;CACF,CAAC","sourcesContent":["import { AccountingCategoryId } from '../../../types/Enum/CommercialManagement';\nimport { InternationalizationChoicesType } from './type';\n\n\nexport const internationalizationChoices: InternationalizationChoicesType = {\n fr: {\n inputLists: {\n headers: {\n termsOfPayment: [\n 'À la livraison',\n 'À la commande',\n 'À réception de la facture',\n 'Exigible sous 14 jours',\n 'Exigible sous 30 jours',\n '30 jours à réception de la facture',\n '45 jours à réception de la facture',\n '60 jours à réception de la facture',\n ],\n accountingCategories: [\n { id: AccountingCategoryId.DELIVERY_OF_GOOD, label: 'Livraison de biens' },\n { id: AccountingCategoryId.SERVICE_DELIVERY, label: 'Prestation de services' },\n { id: AccountingCategoryId.GOOD_AND_SERVICE, label: 'Prestation de services et livraison de biens' },\n ],\n },\n options: {\n penalties: [\n 'Non applicable',\n '3 fois le taux légal',\n 'Taux directeur de la BCE + 10 points',\n ],\n discount: [\n 'Non applicable',\n 'Aucun escompte en cas de paiement anticipé',\n ],\n vatMention: [\n 'Non concerné',\n 'Non applicable',\n 'TVA non applicable, art. 293 B du CGI',\n 'TVA non applicable - Exportation hors UE - Art. 259-1 du CGI',\n 'Non soumis à TVA selon l\\'article 261C du CGI',\n 'Article 261 D du code général des impôts (CGI)',\n 'Exonération de TVA, article 283-2 du Code général des impôts',\n 'Exonération de la TVA : Article 262 ter I du CGI',\n 'Mention de TVA 261.4.4 1 du CGI',\n 'Régime particulier – Biens d\\'occasion - article 297 A du CGI et directive communautaire 2006/112/CE',\n 'Régime particulier – Objets d\\'art - article 297 A du CGI et directive communautaire 2006/112/CE',\n 'Régime particulier – Objets de collection ou d\\'antiquité - article 297 A du CGI et directive communautaire 2006/112/CE',\n 'Régime particulier – Agences de voyage - article 297 A du CGI et directive communautaire 2006/112/CE',\n 'Facture soumise au régime de l’auto-liquidation de la TVA',\n ],\n recoveryCost: [\n 'Non applicable',\n '40€',\n ],\n paymentType: [\n 'Carte bancaire',\n 'Chèque',\n 'Espèces',\n 'Prélèvement',\n 'Virement bancaire',\n ],\n },\n },\n template: {\n common: {\n headers: {\n emissionDate: 'Date d\\'émission',\n accountingCategory: {\n title: 'Catégorie de l\\'opération',\n choices: [\n { id: AccountingCategoryId.DELIVERY_OF_GOOD, label: 'Livraison de biens' },\n { id: AccountingCategoryId.SERVICE_DELIVERY, label: 'Prestation de services' },\n { id: AccountingCategoryId.GOOD_AND_SERVICE, label: 'Prestation de services et livraison de biens' },\n ],\n },\n },\n footer: {\n capital: 'au capital de',\n siren: 'immatriculée sous le SIREN',\n vatCode: 'N° TVA',\n marginVat: 'Régime TVA sur marge',\n legalVatMention: 'ART 297-A du CGI ou directive 2006-212 CE',\n shouldPayTaxAfterDebit: 'Option pour le paiement de la taxe d\\'après les débits',\n penalties: 'Pénalités en cas de retard', \n discount: 'Escompte',\n recoveryCosts: 'Indemnités forfaitaire en cas de retard',\n generate: 'Généré par',\n },\n options: { \n vatMention: 'Mention TVA', \n paymentType: 'Mode de paiement',\n bank: 'BANQUE',\n approval: 'Bon pour accord',\n comment: 'Commentaire',\n },\n table: {\n headers: {\n product: 'Article',\n quantity: 'Quantité',\n unitPrice: 'P.U HT',\n unitPriceWithoutVat: 'P.U',\n discount: 'Remise',\n vat: 'TVA',\n amount: 'Montant HT',\n amountWithoutVat: 'Montant',\n base: 'Base',\n rate: 'Taux',\n vatAmount: 'Montant TVA',\n recap: 'Récapitulatif',\n },\n lines: {\n totalHt: 'Total HT',\n vat: 'TVA',\n totalTTC: 'Total TTC',\n totalWhitoutVat: 'Total',\n deposit: 'Acompte',\n remainderToPay: 'Reste à payer',\n netToPay: 'Net à payer',\n },\n },\n },\n invoice: {\n headers: {\n title: 'Facture',\n dueDate: 'Date d\\'échéance',\n termsOfPayment: 'Date limite de règlement',\n },\n },\n estimate: {\n headers: {\n title: 'Devis',\n dueDate: 'Valide jusq\\'au',\n termsOfPayment: 'Conditions de règlement',\n },\n },\n orderForm: {\n headers: {\n title: 'Bon de commande',\n dueDate: 'Date d\\'échéance',\n termsOfPayment: 'Conditions de règlement',\n },\n\n },\n deposit: {\n headers: {\n title: 'Accompte',\n expirationDate: 'Date d\\'expiration',\n termsOfPayment: 'Date limite de règlement',\n },\n },\n asset: {\n headers: {\n title: 'Avoir',\n dueDate: 'Date d\\'échéance',\n termsOfPayment: 'Date limite de règlement',\n },\n },\n remainder: {\n headers: {\n title: 'reste',\n dueDate: 'Date d\\'échéance',\n termsOfPayment: 'Date limite de règlement',\n },\n },\n draft: {\n headers: {\n title: 'Brouillon',\n dueDate: 'Date d\\'échéance',\n termsOfPayment: 'Date limite de règlement',\n },\n },\n },\n mail: {\n common: {\n dueDate: 'Échéance',\n generate: 'Généré par',\n displayDocument: 'Afficher le document',\n totalHt: 'Total HT',\n totalVat: 'Total TVA',\n totalTtc: 'Total TTC',\n send: 'vous adresse',\n },\n invoice: {\n title: 'cette facture',\n subTitle: 'Facture',\n },\n estimate: {\n title: 'ce devis',\n subTitle: 'Devis',\n },\n orderForm: {\n title: 'ce bon de commande',\n subTitle: 'Bon de commande',\n },\n deposit: {\n title: 'cet acompte',\n subTitle: 'Acompte',\n },\n asset: {\n title: 'cet avoir',\n subTitle: 'Avoir',\n },\n remainder: {\n title: 'cette facture',\n subTitle: 'Facture',\n },\n default: {\n title: 'ce document',\n subTitle: 'Document',\n },\n\n },\n },\n en: {\n inputLists: {\n headers: {\n termsOfPayment: [\n 'On delivery',\n 'On order',\n 'Upon receipt of invoice',\n 'Due within 14 days',\n 'Due within 30 days',\n '30 days upon receipt of invoice',\n '45 days upon receipt of invoice',\n '60 days upon receipt of invoice',\n ],\n accountingCategories: [\n { id: AccountingCategoryId.DELIVERY_OF_GOOD, label: 'Delivery of goods' },\n { id: AccountingCategoryId.SERVICE_DELIVERY, label: 'Services delivery' },\n { id: AccountingCategoryId.GOOD_AND_SERVICE, label: 'Services and goods delivery' },\n ],\n },\n options: {\n penalties: [\n 'Not applicable',\n '3 times the legal rate',\n 'ECB key rate + 10 points',\n ],\n discount: [\n 'Not applicable',\n 'No discount for early payment',\n ],\n vatMention: [\n 'Not affected',\n 'Not applicable',\n 'VAT not applicable, art. 293 B of the French General Tax Code (FGTC)',\n 'VAT not applicable - Exports outside the EU - Art. 259-1 of the French General Tax Code (FGTC)',\n 'Not subject to VAT according to article 261C of the French General Tax Code (FGTC)',\n 'Article 261D of the French General Tax Code (FGTC)',\n 'VAT exemption, article 283-2 of the French General Tax Code (FGTC)',\n 'VAT exemption: Article 262 ter I of the French General Tax Code (FGTC)',\n 'VAT notice 261.4.4 1 of the French General Tax Code (FGTC)',\n 'Specific regime - Second-hand goods - article 297 A of the French General Tax Code (FGTC) and Community Directive 2006/112/EC',\n 'Specific regime - Works of art - article 297 A of the French General Tax Code (FGTC) and Community Directive 2006/112/EC',\n 'Specific regime – Collectibles and antiques - article 297 A of the French General Tax Code (FGTC) and Community Directive 2006/112/EC',\n 'Specific regime - Travel agencies - article 297 A of the French General Tax Code (FGTC) and Community Directive 2006/112/EC',\n ' Invoice subject to VAT reverse charge system',\n ],\n recoveryCost: [\n 'Not applicable',\n '40€',\n ],\n paymentType: [\n 'Credit card',\n 'Check',\n 'Cash',\n 'Direct debit',\n 'Bank transfer',\n ],\n },\n },\n template: {\n common: {\n headers: {\n emissionDate: 'Invoice date',\n accountingCategory: {\n title: 'Transaction type',\n choices: [\n { id: AccountingCategoryId.DELIVERY_OF_GOOD, label: 'supply of goods' },\n { id: AccountingCategoryId.SERVICE_DELIVERY, label: 'Services provision' },\n { id: AccountingCategoryId.GOOD_AND_SERVICE, label: 'Services provision and supply of goods' },\n ],\n },\n },\n footer: {\n capital: 'with capital of',\n siren: 'registered under SIREN',\n vatCode: 'VAT number',\n marginVat: 'VAT margin scheme',\n legalVatMention: 'ART 297-A of the FGTC or directive 2006-212 EC',\n shouldPayTaxAfterDebit: 'Option to pay tax on debits',\n penalties: 'Late fees', \n discount: 'discount',\n recoveryCosts: 'flat-rate delay compensation',\n generate: 'Created by',\n },\n options: { \n vatMention: 'VAT mention',\n paymentType: 'payment type',\n bank: 'BANK',\n approval: 'Agreed and signed',\n comment: 'Comment',\n \n },\n table: {\n headers: {\n product: 'Product',\n quantity: 'Quantity',\n unitPrice: 'Excl. tax unit price',\n unitPriceWithoutVat: 'Unit price',\n discount: 'Discount',\n vat: 'VAT',\n amount: 'Amount excl. tax',\n amountWithoutVat: 'Amount',\n base: 'Base',\n rate: 'Rate',\n vatAmount: 'VAT amount',\n recap: 'Summary',\n },\n lines: {\n totalHt: 'Amount excl. tax',\n vat: 'VAT',\n totalTTC: 'Amount incl. tax',\n totalWhitoutVat: 'Amount',\n deposit: 'Deposit',\n remainderToPay: 'Remainder to pay',\n netToPay: 'Net to pay',\n },\n },\n },\n invoice: {\n headers: {\n title: 'Invoice',\n dueDate: 'Due date',\n termsOfPayment: 'Deadline for payment',\n },\n },\n estimate: {\n headers: {\n title: 'Quotation',\n dueDate: 'Valid until',\n termsOfPayment: 'Term of payment',\n },\n },\n orderForm: {\n headers: {\n title: 'Order form',\n dueDate: 'Valid until',\n termsOfPayment: 'Term of payment',\n },\n\n },\n deposit: {\n headers: {\n title: 'Deposit invoice',\n expirationDate: 'expiry date',\n termsOfPayment: 'Deadline for payment',\n },\n },\n asset: {\n headers: {\n title: 'Credit note',\n dueDate: 'Due date',\n termsOfPayment: 'Deadline for payment',\n },\n },\n remainder: {\n headers: {\n title: 'Balance invoice',\n dueDate: 'Due date',\n termsOfPayment: 'Deadline for payment',\n },\n },\n draft: {\n headers: {\n title: 'Draft',\n dueDate: 'Due date',\n termsOfPayment: 'Deadline for payment',\n },\n },\n },\n mail: {\n common: {\n dueDate: 'Due date',\n generate: 'Created by',\n displayDocument: 'Display document',\n totalHt: 'Total excl. tax',\n totalVat: 'Total VAT',\n totalTtc: 'Total incl. tax',\n send: 'send you',\n },\n invoice: {\n title: 'this invoice',\n subTitle: 'Invoice',\n },\n estimate: {\n title: 'this estimate',\n subTitle: 'Estimate',\n },\n orderForm: {\n title: 'this order form',\n subTitle: 'Order form',\n },\n deposit: {\n title: 'this deposit',\n subTitle: 'Deposit',\n },\n asset: {\n title: 'this asset',\n subTitle: 'Asset',\n },\n remainder: {\n title: 'this invoice',\n subTitle: 'Invoice',\n },\n default: {\n title: 'this document',\n subTitle: 'Document',\n },\n\n },\n },\n};"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checklist.d.ts","sourceRoot":"","sources":["../../../ts/utils/checklist.ts"],"names":[],"mappings":"AAAA,OAAO,EACwD,UAAU,EAAE,cAAc,EAAE,yBAAyB,EACnH,MAAM,UAAU,CAAC;AAElB,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,UAAU,EAAE,IAAI,EAAE,yBAAyB,GAAG,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"checklist.d.ts","sourceRoot":"","sources":["../../../ts/utils/checklist.ts"],"names":[],"mappings":"AAAA,OAAO,EACwD,UAAU,EAAE,cAAc,EAAE,yBAAyB,EACnH,MAAM,UAAU,CAAC;AAElB,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,UAAU,EAAE,IAAI,EAAE,yBAAyB,GAAG,cAAc,EAAE,CA0C7G"}
|
|
@@ -5,6 +5,10 @@ export function getAllBlockingIssues(checklist, meta) {
|
|
|
5
5
|
const blockingIssues = [];
|
|
6
6
|
blockingQuestions.forEach((question) => {
|
|
7
7
|
const answer = answers.find((a) => a.idTypeChecklist === question.id);
|
|
8
|
+
if (question.id === 51) {
|
|
9
|
+
console.log(question);
|
|
10
|
+
console.log(answer);
|
|
11
|
+
}
|
|
8
12
|
if (!answer) {
|
|
9
13
|
blockingIssues.push(question);
|
|
10
14
|
}
|
|
@@ -27,7 +31,7 @@ export function getAllBlockingIssues(checklist, meta) {
|
|
|
27
31
|
}
|
|
28
32
|
}
|
|
29
33
|
else if ([ChecklistDetailType.SELECT, ChecklistDetailType.SWITCH].includes(question.type) && question.name !== ChecklistDetailName.HAS_POLICE) {
|
|
30
|
-
if ((!answer.value &&
|
|
34
|
+
if ((!answer.value && (question.name !== ChecklistDetailName.IS_WAITING_ACCOUNT_RESET && question.name !== ChecklistDetailName.HAS_CLEARED_INTERNAL_TRANSFER)) || answer.value === '0') {
|
|
31
35
|
blockingIssues.push(question);
|
|
32
36
|
}
|
|
33
37
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checklist.js","sourceRoot":"","sources":["../../../ts/utils/checklist.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EAAE,mBAAmB,EAAE,iBAAiB,GAC5D,MAAM,UAAU,CAAC;AAElB,MAAM,UAAU,oBAAoB,CAAC,SAAqB,EAAE,IAA+B;IACzF,MAAM,EAAE,aAAa,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;IAExC,MAAM,iBAAiB,GAAG,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,SAAS,CAAC,IAAI,KAAK,iBAAiB,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI,KAAK,iBAAiB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;IAC9M,MAAM,cAAc,GAAqB,EAAE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ChecklistDetailName, ChecklistDetailType, ChecklistTypeEnum, IChecklist, IChecklistType, QueryGetAllBlockingIssues,\n} from '../types';\n\nexport function getAllBlockingIssues(checklist: IChecklist, meta: QueryGetAllBlockingIssues): IChecklistType[] {\n const { questionsList, answers } = meta;\n\n const blockingQuestions = questionsList.filter((q) => (checklist.type === ChecklistTypeEnum.REINFORCED ? q.isBlockingReinforced : checklist.type === ChecklistTypeEnum.DEFAULT ? q.isBlockingSimple : false));\n const blockingIssues: IChecklistType[] = [];\n\n blockingQuestions.forEach((question) => {\n const answer = answers.find((a) => a.idTypeChecklist === question.id);\n if (question.id === 51) {\n console.log(question);\n console.log(answer);\n }\n\n if (!answer) {\n blockingIssues.push(question);\n } else if (question.name === ChecklistDetailName.ACTION_TAKEN) {\n // Comptes bancaires actifs synchronisés ?\n const questionForAreAllBankAccountsSynchronized = questionsList.find((q) => q.name === ChecklistDetailName.ARE_ALL_BANK_ACCOUNTS_SYNCHRONIZED);\n const answerForAreAllBankAccountsSynchronized = answers.find((a) => a.idTypeChecklist && a.idTypeChecklist === questionForAreAllBankAccountsSynchronized?.id);\n\n // Applicatin annotée à 80/100% ?\n const questionForAnnoted = questionsList.find((q) => q.name === (checklist.type === ChecklistTypeEnum.REINFORCED ? ChecklistDetailName.FULLY_ANNOTED : ChecklistDetailName.ALMOST_ANNOTED));\n const answerForAnnoted = answers.find((a) => a.idTypeChecklist && a.idTypeChecklist === questionForAnnoted?.id);\n\n if ((!answerForAnnoted?.value || answerForAnnoted.value === '0' || !answerForAreAllBankAccountsSynchronized?.value || answerForAreAllBankAccountsSynchronized.value === '0') && (answer.value === '2' || answer.value === '0' || !answer.value || answer.value === '')) {\n blockingIssues.push(question);\n }\n } else if (question.name === ChecklistDetailName.HAS_JUSTIFIED_CONTRIBUTIONS) {\n const questionForComment = questionsList.find((q) => q.name === ChecklistDetailName.COMMENTS);\n const comment = answers.find((a) => a.idTypeChecklist && a.idTypeChecklist === questionForComment?.id);\n\n if (!answer.value || answer.value === '0' || (answer.value === '1' && (!comment?.value || comment?.value === ''))) {\n blockingIssues.push(question);\n }\n } else if ([ChecklistDetailType.SELECT as string, ChecklistDetailType.SWITCH].includes(question.type) && question.name !== ChecklistDetailName.HAS_POLICE) {\n if ((!answer.value && (question.name !== ChecklistDetailName.IS_WAITING_ACCOUNT_RESET && question.name !== ChecklistDetailName.HAS_CLEARED_INTERNAL_TRANSFER)) || answer.value === '0') {\n blockingIssues.push(question);\n }\n }\n });\n\n return blockingIssues;\n}\n"]}
|
|
@@ -238,18 +238,18 @@ export const internationalizationChoices = {
|
|
|
238
238
|
vatMention: [
|
|
239
239
|
'Not affected',
|
|
240
240
|
'Not applicable',
|
|
241
|
-
'VAT not applicable, art. 293 B of the FGTC',
|
|
242
|
-
'VAT not applicable - Exports outside the EU - Art. 259-1 FGTC',
|
|
243
|
-
'Not subject to VAT
|
|
244
|
-
'Article
|
|
245
|
-
'VAT exemption, article 283-2 of the French General Tax Code',
|
|
246
|
-
'VAT exemption: Article 262 ter I of the FGTC',
|
|
247
|
-
'VAT notice 261.4.4 1 of the FGTC',
|
|
248
|
-
'
|
|
249
|
-
'
|
|
250
|
-
'
|
|
251
|
-
'
|
|
252
|
-
'Invoice subject to VAT reverse charge system',
|
|
241
|
+
'VAT not applicable, art. 293 B of the French General Tax Code (FGTC)',
|
|
242
|
+
'VAT not applicable - Exports outside the EU - Art. 259-1 of the French General Tax Code (FGTC)',
|
|
243
|
+
'Not subject to VAT according to article 261C of the French General Tax Code (FGTC)',
|
|
244
|
+
'Article 261D of the French General Tax Code (FGTC)',
|
|
245
|
+
'VAT exemption, article 283-2 of the French General Tax Code (FGTC)',
|
|
246
|
+
'VAT exemption: Article 262 ter I of the French General Tax Code (FGTC)',
|
|
247
|
+
'VAT notice 261.4.4 1 of the French General Tax Code (FGTC)',
|
|
248
|
+
'Specific regime - Second-hand goods - article 297 A of the French General Tax Code (FGTC) and Community Directive 2006/112/EC',
|
|
249
|
+
'Specific regime - Works of art - article 297 A of the French General Tax Code (FGTC) and Community Directive 2006/112/EC',
|
|
250
|
+
'Specific regime – Collectibles and antiques - article 297 A of the French General Tax Code (FGTC) and Community Directive 2006/112/EC',
|
|
251
|
+
'Specific regime - Travel agencies - article 297 A of the French General Tax Code (FGTC) and Community Directive 2006/112/EC',
|
|
252
|
+
' Invoice subject to VAT reverse charge system',
|
|
253
253
|
],
|
|
254
254
|
recoveryCost: [
|
|
255
255
|
'Not applicable',
|
|
@@ -259,7 +259,7 @@ export const internationalizationChoices = {
|
|
|
259
259
|
'Credit card',
|
|
260
260
|
'Check',
|
|
261
261
|
'Cash',
|
|
262
|
-
'
|
|
262
|
+
'Direct debit',
|
|
263
263
|
'Bank transfer',
|
|
264
264
|
],
|
|
265
265
|
},
|
|
@@ -267,13 +267,13 @@ export const internationalizationChoices = {
|
|
|
267
267
|
template: {
|
|
268
268
|
common: {
|
|
269
269
|
headers: {
|
|
270
|
-
emissionDate: '
|
|
270
|
+
emissionDate: 'Invoice date',
|
|
271
271
|
accountingCategory: {
|
|
272
|
-
title: '
|
|
272
|
+
title: 'Transaction type',
|
|
273
273
|
choices: [
|
|
274
|
-
{ id: AccountingCategoryId.DELIVERY_OF_GOOD, label: '
|
|
275
|
-
{ id: AccountingCategoryId.SERVICE_DELIVERY, label: 'Services
|
|
276
|
-
{ id: AccountingCategoryId.GOOD_AND_SERVICE, label: 'Services and goods
|
|
274
|
+
{ id: AccountingCategoryId.DELIVERY_OF_GOOD, label: 'supply of goods' },
|
|
275
|
+
{ id: AccountingCategoryId.SERVICE_DELIVERY, label: 'Services provision' },
|
|
276
|
+
{ id: AccountingCategoryId.GOOD_AND_SERVICE, label: 'Services provision and supply of goods' },
|
|
277
277
|
],
|
|
278
278
|
},
|
|
279
279
|
},
|
|
@@ -284,16 +284,16 @@ export const internationalizationChoices = {
|
|
|
284
284
|
marginVat: 'VAT margin scheme',
|
|
285
285
|
legalVatMention: 'ART 297-A of the FGTC or directive 2006-212 EC',
|
|
286
286
|
shouldPayTaxAfterDebit: 'Option to pay tax on debits',
|
|
287
|
-
penalties: 'Late
|
|
287
|
+
penalties: 'Late fees',
|
|
288
288
|
discount: 'discount',
|
|
289
|
-
recoveryCosts: '
|
|
289
|
+
recoveryCosts: 'flat-rate delay compensation',
|
|
290
290
|
generate: 'Created by',
|
|
291
291
|
},
|
|
292
292
|
options: {
|
|
293
293
|
vatMention: 'VAT mention',
|
|
294
294
|
paymentType: 'payment type',
|
|
295
295
|
bank: 'BANK',
|
|
296
|
-
approval: '
|
|
296
|
+
approval: 'Agreed and signed',
|
|
297
297
|
comment: 'Comment',
|
|
298
298
|
},
|
|
299
299
|
table: {
|
|
@@ -309,7 +309,7 @@ export const internationalizationChoices = {
|
|
|
309
309
|
base: 'Base',
|
|
310
310
|
rate: 'Rate',
|
|
311
311
|
vatAmount: 'VAT amount',
|
|
312
|
-
recap: '
|
|
312
|
+
recap: 'Summary',
|
|
313
313
|
},
|
|
314
314
|
lines: {
|
|
315
315
|
totalHt: 'Amount excl. tax',
|
|
@@ -331,7 +331,7 @@ export const internationalizationChoices = {
|
|
|
331
331
|
},
|
|
332
332
|
estimate: {
|
|
333
333
|
headers: {
|
|
334
|
-
title: '
|
|
334
|
+
title: 'Quotation',
|
|
335
335
|
dueDate: 'Valid until',
|
|
336
336
|
termsOfPayment: 'Term of payment',
|
|
337
337
|
},
|
|
@@ -345,21 +345,21 @@ export const internationalizationChoices = {
|
|
|
345
345
|
},
|
|
346
346
|
deposit: {
|
|
347
347
|
headers: {
|
|
348
|
-
title: 'Deposit',
|
|
349
|
-
expirationDate: '
|
|
348
|
+
title: 'Deposit invoice',
|
|
349
|
+
expirationDate: 'expiry date',
|
|
350
350
|
termsOfPayment: 'Deadline for payment',
|
|
351
351
|
},
|
|
352
352
|
},
|
|
353
353
|
asset: {
|
|
354
354
|
headers: {
|
|
355
|
-
title: '
|
|
355
|
+
title: 'Credit note',
|
|
356
356
|
dueDate: 'Due date',
|
|
357
357
|
termsOfPayment: 'Deadline for payment',
|
|
358
358
|
},
|
|
359
359
|
},
|
|
360
360
|
remainder: {
|
|
361
361
|
headers: {
|
|
362
|
-
title: '
|
|
362
|
+
title: 'Balance invoice',
|
|
363
363
|
dueDate: 'Due date',
|
|
364
364
|
termsOfPayment: 'Deadline for payment',
|
|
365
365
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"choices.js","sourceRoot":"","sources":["../../../../../ts/utils/commercialManagement/internationalization/choices.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AAIhF,MAAM,CAAC,MAAM,2BAA2B,GAAoC;IAC1E,EAAE,EAAE;QACF,UAAU,EAAE;YACV,OAAO,EAAE;gBACP,cAAc,EAAE;oBACd,gBAAgB;oBAChB,eAAe;oBACf,2BAA2B;oBAC3B,wBAAwB;oBACxB,wBAAwB;oBACxB,oCAAoC;oBACpC,oCAAoC;oBACpC,oCAAoC;iBACrC;gBACD,oBAAoB,EAAE;oBACpB,EAAE,EAAE,EAAE,oBAAoB,CAAC,gBAAgB,EAAE,KAAK,EAAE,oBAAoB,EAAE;oBAC1E,EAAE,EAAE,EAAE,oBAAoB,CAAC,gBAAgB,EAAE,KAAK,EAAE,wBAAwB,EAAE;oBAC9E,EAAE,EAAE,EAAE,oBAAoB,CAAC,gBAAgB,EAAE,KAAK,EAAE,8CAA8C,EAAE;iBACrG;aACF;YACD,OAAO,EAAE;gBACP,SAAS,EAAE;oBACT,gBAAgB;oBAChB,sBAAsB;oBACtB,sCAAsC;iBACvC;gBACD,QAAQ,EAAE;oBACR,gBAAgB;oBAChB,4CAA4C;iBAC7C;gBACD,UAAU,EAAE;oBACV,cAAc;oBACd,gBAAgB;oBAChB,uCAAuC;oBACvC,8DAA8D;oBAC9D,+CAA+C;oBAC/C,gDAAgD;oBAChD,8DAA8D;oBAC9D,kDAAkD;oBAClD,iCAAiC;oBACjC,sGAAsG;oBACtG,kGAAkG;oBAClG,yHAAyH;oBACzH,sG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":["import { AccountingCategoryId } from '../../../types/Enum/CommercialManagement';\nimport { InternationalizationChoicesType } from './type';\n\n\nexport const internationalizationChoices: InternationalizationChoicesType = {\n fr: {\n inputLists: {\n headers: {\n termsOfPayment: [\n 'À la livraison',\n 'À la commande',\n 'À réception de la facture',\n 'Exigible sous 14 jours',\n 'Exigible sous 30 jours',\n '30 jours à réception de la facture',\n '45 jours à réception de la facture',\n '60 jours à réception de la facture',\n ],\n accountingCategories: [\n { id: AccountingCategoryId.DELIVERY_OF_GOOD, label: 'Livraison de biens' },\n { id: AccountingCategoryId.SERVICE_DELIVERY, label: 'Prestation de services' },\n { id: AccountingCategoryId.GOOD_AND_SERVICE, label: 'Prestation de services et livraison de biens' },\n ],\n },\n options: {\n penalties: [\n 'Non applicable',\n '3 fois le taux légal',\n 'Taux directeur de la BCE + 10 points',\n ],\n discount: [\n 'Non applicable',\n 'Aucun escompte en cas de paiement anticipé',\n ],\n vatMention: [\n 'Non concerné',\n 'Non applicable',\n 'TVA non applicable, art. 293 B du CGI',\n 'TVA non applicable - Exportation hors UE - Art. 259-1 du CGI',\n 'Non soumis à TVA selon l\\'article 261C du CGI',\n 'Article 261 D du code général des impôts (CGI)',\n 'Exonération de TVA, article 283-2 du Code général des impôts',\n 'Exonération de la TVA : Article 262 ter I du CGI',\n 'Mention de TVA 261.4.4 1 du CGI',\n 'Régime particulier – Biens d\\'occasion - article 297 A du CGI et directive communautaire 2006/112/CE',\n 'Régime particulier – Objets d\\'art - article 297 A du CGI et directive communautaire 2006/112/CE',\n 'Régime particulier – Objets de collection ou d\\'antiquité - article 297 A du CGI et directive communautaire 2006/112/CE',\n 'Régime particulier – Agences de voyage - article 297 A du CGI et directive communautaire 2006/112/CE',\n 'Facture soumise au régime de l’auto-liquidation de la TVA',\n ],\n recoveryCost: [\n 'Non applicable',\n '40€',\n ],\n paymentType: [\n 'Carte bancaire',\n 'Chèque',\n 'Espèces',\n 'Prélèvement',\n 'Virement bancaire',\n ],\n },\n },\n template: {\n common: {\n headers: {\n emissionDate: 'Date d\\'émission',\n accountingCategory: {\n title: 'Catégorie de l\\'opération',\n choices: [\n { id: AccountingCategoryId.DELIVERY_OF_GOOD, label: 'Livraison de biens' },\n { id: AccountingCategoryId.SERVICE_DELIVERY, label: 'Prestation de services' },\n { id: AccountingCategoryId.GOOD_AND_SERVICE, label: 'Prestation de services et livraison de biens' },\n ],\n },\n },\n footer: {\n capital: 'au capital de',\n siren: 'immatriculée sous le SIREN',\n vatCode: 'N° TVA',\n marginVat: 'Régime TVA sur marge',\n legalVatMention: 'ART 297-A du CGI ou directive 2006-212 CE',\n shouldPayTaxAfterDebit: 'Option pour le paiement de la taxe d\\'après les débits',\n penalties: 'Pénalités en cas de retard', \n discount: 'Escompte',\n recoveryCosts: 'Indemnités forfaitaire en cas de retard',\n generate: 'Généré par',\n },\n options: { \n vatMention: 'Mention TVA', \n paymentType: 'Mode de paiement',\n bank: 'BANQUE',\n approval: 'Bon pour accord',\n comment: 'Commentaire',\n },\n table: {\n headers: {\n product: 'Article',\n quantity: 'Quantité',\n unitPrice: 'P.U HT',\n unitPriceWithoutVat: 'P.U',\n discount: 'Remise',\n vat: 'TVA',\n amount: 'Montant HT',\n amountWithoutVat: 'Montant',\n base: 'Base',\n rate: 'Taux',\n vatAmount: 'Montant TVA',\n recap: 'Récapitulatif',\n },\n lines: {\n totalHt: 'Total HT',\n vat: 'TVA',\n totalTTC: 'Total TTC',\n totalWhitoutVat: 'Total',\n deposit: 'Acompte',\n remainderToPay: 'Reste à payer',\n netToPay: 'Net à payer',\n },\n },\n },\n invoice: {\n headers: {\n title: 'Facture',\n dueDate: 'Date d\\'échéance',\n termsOfPayment: 'Date limite de règlement',\n },\n },\n estimate: {\n headers: {\n title: 'Devis',\n dueDate: 'Valide jusq\\'au',\n termsOfPayment: 'Conditions de règlement',\n },\n },\n orderForm: {\n headers: {\n title: 'Bon de commande',\n dueDate: 'Date d\\'échéance',\n termsOfPayment: 'Conditions de règlement',\n },\n\n },\n deposit: {\n headers: {\n title: 'Accompte',\n expirationDate: 'Date d\\'expiration',\n termsOfPayment: 'Date limite de règlement',\n },\n },\n asset: {\n headers: {\n title: 'Avoir',\n dueDate: 'Date d\\'échéance',\n termsOfPayment: 'Date limite de règlement',\n },\n },\n remainder: {\n headers: {\n title: 'reste',\n dueDate: 'Date d\\'échéance',\n termsOfPayment: 'Date limite de règlement',\n },\n },\n draft: {\n headers: {\n title: 'Brouillon',\n dueDate: 'Date d\\'échéance',\n termsOfPayment: 'Date limite de règlement',\n },\n },\n },\n mail: {\n common: {\n dueDate: 'Échéance',\n generate: 'Généré par',\n displayDocument: 'Afficher le document',\n totalHt: 'Total HT',\n totalVat: 'Total TVA',\n totalTtc: 'Total TTC',\n send: 'vous adresse',\n },\n invoice: {\n title: 'cette facture',\n subTitle: 'Facture',\n },\n estimate: {\n title: 'ce devis',\n subTitle: 'Devis',\n },\n orderForm: {\n title: 'ce bon de commande',\n subTitle: 'Bon de commande',\n },\n deposit: {\n title: 'cet acompte',\n subTitle: 'Acompte',\n },\n asset: {\n title: 'cet avoir',\n subTitle: 'Avoir',\n },\n remainder: {\n title: 'cette facture',\n subTitle: 'Facture',\n },\n default: {\n title: 'ce document',\n subTitle: 'Document',\n },\n\n },\n },\n en: {\n inputLists: {\n headers: {\n termsOfPayment: [\n 'On delivery',\n 'On order',\n 'Upon receipt of invoice',\n 'Due within 14 days',\n 'Due within 30 days',\n '30 days upon receipt of invoice',\n '45 days upon receipt of invoice',\n '60 days upon receipt of invoice',\n ],\n accountingCategories: [\n { id: AccountingCategoryId.DELIVERY_OF_GOOD, label: 'Delivery of goods' },\n { id: AccountingCategoryId.SERVICE_DELIVERY, label: 'Services delivery' },\n { id: AccountingCategoryId.GOOD_AND_SERVICE, label: 'Services and goods delivery' },\n ],\n },\n options: {\n penalties: [\n 'Not applicable',\n '3 times the legal rate',\n 'ECB key rate + 10 points',\n ],\n discount: [\n 'Not applicable',\n 'No discount for early payment',\n ],\n vatMention: [\n 'Not affected',\n 'Not applicable',\n 'VAT not applicable, art. 293 B of the FGTC',\n 'VAT not applicable - Exports outside the EU - Art. 259-1 FGTC',\n 'Not subject to VAT under article 261C of the FGTC',\n 'Article 261 D of the French General Tax Code (FGTC)',\n 'VAT exemption, article 283-2 of the French General Tax Code',\n 'VAT exemption: Article 262 ter I of the FGTC',\n 'VAT notice 261.4.4 1 of the FGTC',\n 'Special regime - Second-hand goods - article 297 A of the FGTC and EC directive 2006/112/EC',\n 'Special regime - Works of art - article 297 A of the FGTC and EC directive 2006/112/EC',\n 'Special regime – Collector\\'s items and antiques - article 297 A of the FGTC and EC directive 2006/112/EC',\n 'Special regime - Travel agencies - article 297 A of the FGTC and EC directive 2006/112/EC',\n 'Invoice subject to VAT reverse charge system',\n ],\n recoveryCost: [\n 'Not applicable',\n '40€',\n ],\n paymentType: [\n 'Credit card',\n 'Check',\n 'Cash',\n 'Withdrawal',\n 'Bank transfer',\n ],\n },\n },\n template: {\n common: {\n headers: {\n emissionDate: 'Emission date',\n accountingCategory: {\n title: 'Accounting category',\n choices: [\n { id: AccountingCategoryId.DELIVERY_OF_GOOD, label: 'Delivery of goods' },\n { id: AccountingCategoryId.SERVICE_DELIVERY, label: 'Services delivery' },\n { id: AccountingCategoryId.GOOD_AND_SERVICE, label: 'Services and goods delivery' },\n ],\n },\n },\n footer: {\n capital: 'with capital of',\n siren: 'registered under SIREN',\n vatCode: 'VAT number',\n marginVat: 'VAT margin scheme',\n legalVatMention: 'ART 297-A of the FGTC or directive 2006-212 EC',\n shouldPayTaxAfterDebit: 'Option to pay tax on debits',\n penalties: 'Late payment penalties', \n discount: 'discount',\n recoveryCosts: 'Recovery cost for delays',\n generate: 'Created by',\n },\n options: { \n vatMention: 'VAT mention',\n paymentType: 'payment type',\n bank: 'BANK',\n approval: 'For apprval',\n comment: 'Comment',\n \n },\n table: {\n headers: {\n product: 'Product',\n quantity: 'Quantity',\n unitPrice: 'Excl. tax unit price',\n unitPriceWithoutVat: 'Unit price',\n discount: 'Discount',\n vat: 'VAT',\n amount: 'Amount excl. tax',\n amountWithoutVat: 'Amount',\n base: 'Base',\n rate: 'Rate',\n vatAmount: 'VAT amount',\n recap: 'Recap',\n },\n lines: {\n totalHt: 'Amount excl. tax',\n vat: 'VAT',\n totalTTC: 'Amount incl. tax',\n totalWhitoutVat: 'Amount',\n deposit: 'Deposit',\n remainderToPay: 'Remainder to pay',\n netToPay: 'Net to pay',\n },\n },\n },\n invoice: {\n headers: {\n title: 'Invoice',\n dueDate: 'Due date',\n termsOfPayment: 'Deadline for payment',\n },\n },\n estimate: {\n headers: {\n title: 'Estimate',\n dueDate: 'Valid until',\n termsOfPayment: 'Term of payment',\n },\n },\n orderForm: {\n headers: {\n title: 'Order form',\n dueDate: 'Valid until',\n termsOfPayment: 'Term of payment',\n },\n\n },\n deposit: {\n headers: {\n title: 'Deposit',\n expirationDate: 'Expiration date',\n termsOfPayment: 'Deadline for payment',\n },\n },\n asset: {\n headers: {\n title: 'Asset',\n dueDate: 'Due date',\n termsOfPayment: 'Deadline for payment',\n },\n },\n remainder: {\n headers: {\n title: 'Remainder',\n dueDate: 'Due date',\n termsOfPayment: 'Deadline for payment',\n },\n },\n draft: {\n headers: {\n title: 'Draft',\n dueDate: 'Due date',\n termsOfPayment: 'Deadline for payment',\n },\n },\n },\n mail: {\n common: {\n dueDate: 'Due date',\n generate: 'Created by',\n displayDocument: 'Display document',\n totalHt: 'Total excl. tax',\n totalVat: 'Total VAT',\n totalTtc: 'Total incl. tax',\n send: 'send you',\n },\n invoice: {\n title: 'this invoice',\n subTitle: 'Invoice',\n },\n estimate: {\n title: 'this estimate',\n subTitle: 'Estimate',\n },\n orderForm: {\n title: 'this order form',\n subTitle: 'Order form',\n },\n deposit: {\n title: 'this deposit',\n subTitle: 'Deposit',\n },\n asset: {\n title: 'this asset',\n subTitle: 'Asset',\n },\n remainder: {\n title: 'this invoice',\n subTitle: 'Invoice',\n },\n default: {\n title: 'this document',\n subTitle: 'Document',\n },\n\n },\n },\n};"]}
|
|
1
|
+
{"version":3,"file":"choices.js","sourceRoot":"","sources":["../../../../../ts/utils/commercialManagement/internationalization/choices.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AAIhF,MAAM,CAAC,MAAM,2BAA2B,GAAoC;IAC1E,EAAE,EAAE;QACF,UAAU,EAAE;YACV,OAAO,EAAE;gBACP,cAAc,EAAE;oBACd,gBAAgB;oBAChB,eAAe;oBACf,2BAA2B;oBAC3B,wBAAwB;oBACxB,wBAAwB;oBACxB,oCAAoC;oBACpC,oCAAoC;oBACpC,oCAAoC;iBACrC;gBACD,oBAAoB,EAAE;oBACpB,EAAE,EAAE,EAAE,oBAAoB,CAAC,gBAAgB,EAAE,KAAK,EAAE,oBAAoB,EAAE;oBAC1E,EAAE,EAAE,EAAE,oBAAoB,CAAC,gBAAgB,EAAE,KAAK,EAAE,wBAAwB,EAAE;oBAC9E,EAAE,EAAE,EAAE,oBAAoB,CAAC,gBAAgB,EAAE,KAAK,EAAE,8CAA8C,EAAE;iBACrG;aACF;YACD,OAAO,EAAE;gBACP,SAAS,EAAE;oBACT,gBAAgB;oBAChB,sBAAsB;oBACtB,sCAAsC;iBACvC;gBACD,QAAQ,EAAE;oBACR,gBAAgB;oBAChB,4CAA4C;iBAC7C;gBACD,UAAU,EAAE;oBACV,cAAc;oBACd,gBAAgB;oBAChB,uCAAuC;oBACvC,8DAA8D;oBAC9D,+CAA+C;oBAC/C,gDAAgD;oBAChD,8DAA8D;oBAC9D,kDAAkD;oBAClD,iCAAiC;oBACjC,sGAAsG;oBACtG,kGAAkG;oBAClG,yHAAyH;oBACzH,sGAAsG;oBACtG,2DAA2D;iBAC5D;gBACD,YAAY,EAAE;oBACZ,gBAAgB;oBAChB,KAAK;iBACN;gBACD,WAAW,EAAE;oBACX,gBAAgB;oBAChB,QAAQ;oBACR,SAAS;oBACT,aAAa;oBACb,mBAAmB;iBACpB;aACF;SACF;QACD,QAAQ,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vC;aACF;YACD,SAAS,EAAE;gBACT,OAAO,EAAE;oBACP,KAAK,EAAE,iBAAiB;oBACxB,OAAO,EAAE,UAAU;oBACnB,cAAc,EAAE,sBAAsB;iBACvC;aACF;YACD,KAAK,EAAE;gBACL,OAAO,EAAE;oBACP,KAAK,EAAE,OAAO;oBACd,OAAO,EAAE,UAAU;oBACnB,cAAc,EAAE,sBAAsB;iBACvC;aACF;SACF;QACD,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,OAAO,EAAE,UAAU;gBACnB,QAAQ,EAAE,YAAY;gBACtB,eAAe,EAAE,kBAAkB;gBACnC,OAAO,EAAE,iBAAiB;gBAC1B,QAAQ,EAAE,WAAW;gBACrB,QAAQ,EAAE,iBAAiB;gBAC3B,IAAI,EAAE,UAAU;aACjB;YACD,OAAO,EAAE;gBACP,KAAK,EAAE,cAAc;gBACrB,QAAQ,EAAE,SAAS;aACpB;YACD,QAAQ,EAAE;gBACR,KAAK,EAAE,eAAe;gBACtB,QAAQ,EAAE,UAAU;aACrB;YACD,SAAS,EAAE;gBACT,KAAK,EAAE,iBAAiB;gBACxB,QAAQ,EAAE,YAAY;aACvB;YACD,OAAO,EAAE;gBACP,KAAK,EAAE,cAAc;gBACrB,QAAQ,EAAE,SAAS;aACpB;YACD,KAAK,EAAE;gBACL,KAAK,EAAE,YAAY;gBACnB,QAAQ,EAAE,OAAO;aAClB;YACD,SAAS,EAAE;gBACT,KAAK,EAAE,cAAc;gBACrB,QAAQ,EAAE,SAAS;aACpB;YACD,OAAO,EAAE;gBACP,KAAK,EAAE,eAAe;gBACtB,QAAQ,EAAE,UAAU;aACrB;SAEF;KACF;CACF,CAAC","sourcesContent":["import { AccountingCategoryId } from '../../../types/Enum/CommercialManagement';\nimport { InternationalizationChoicesType } from './type';\n\n\nexport const internationalizationChoices: InternationalizationChoicesType = {\n fr: {\n inputLists: {\n headers: {\n termsOfPayment: [\n 'À la livraison',\n 'À la commande',\n 'À réception de la facture',\n 'Exigible sous 14 jours',\n 'Exigible sous 30 jours',\n '30 jours à réception de la facture',\n '45 jours à réception de la facture',\n '60 jours à réception de la facture',\n ],\n accountingCategories: [\n { id: AccountingCategoryId.DELIVERY_OF_GOOD, label: 'Livraison de biens' },\n { id: AccountingCategoryId.SERVICE_DELIVERY, label: 'Prestation de services' },\n { id: AccountingCategoryId.GOOD_AND_SERVICE, label: 'Prestation de services et livraison de biens' },\n ],\n },\n options: {\n penalties: [\n 'Non applicable',\n '3 fois le taux légal',\n 'Taux directeur de la BCE + 10 points',\n ],\n discount: [\n 'Non applicable',\n 'Aucun escompte en cas de paiement anticipé',\n ],\n vatMention: [\n 'Non concerné',\n 'Non applicable',\n 'TVA non applicable, art. 293 B du CGI',\n 'TVA non applicable - Exportation hors UE - Art. 259-1 du CGI',\n 'Non soumis à TVA selon l\\'article 261C du CGI',\n 'Article 261 D du code général des impôts (CGI)',\n 'Exonération de TVA, article 283-2 du Code général des impôts',\n 'Exonération de la TVA : Article 262 ter I du CGI',\n 'Mention de TVA 261.4.4 1 du CGI',\n 'Régime particulier – Biens d\\'occasion - article 297 A du CGI et directive communautaire 2006/112/CE',\n 'Régime particulier – Objets d\\'art - article 297 A du CGI et directive communautaire 2006/112/CE',\n 'Régime particulier – Objets de collection ou d\\'antiquité - article 297 A du CGI et directive communautaire 2006/112/CE',\n 'Régime particulier – Agences de voyage - article 297 A du CGI et directive communautaire 2006/112/CE',\n 'Facture soumise au régime de l’auto-liquidation de la TVA',\n ],\n recoveryCost: [\n 'Non applicable',\n '40€',\n ],\n paymentType: [\n 'Carte bancaire',\n 'Chèque',\n 'Espèces',\n 'Prélèvement',\n 'Virement bancaire',\n ],\n },\n },\n template: {\n common: {\n headers: {\n emissionDate: 'Date d\\'émission',\n accountingCategory: {\n title: 'Catégorie de l\\'opération',\n choices: [\n { id: AccountingCategoryId.DELIVERY_OF_GOOD, label: 'Livraison de biens' },\n { id: AccountingCategoryId.SERVICE_DELIVERY, label: 'Prestation de services' },\n { id: AccountingCategoryId.GOOD_AND_SERVICE, label: 'Prestation de services et livraison de biens' },\n ],\n },\n },\n footer: {\n capital: 'au capital de',\n siren: 'immatriculée sous le SIREN',\n vatCode: 'N° TVA',\n marginVat: 'Régime TVA sur marge',\n legalVatMention: 'ART 297-A du CGI ou directive 2006-212 CE',\n shouldPayTaxAfterDebit: 'Option pour le paiement de la taxe d\\'après les débits',\n penalties: 'Pénalités en cas de retard', \n discount: 'Escompte',\n recoveryCosts: 'Indemnités forfaitaire en cas de retard',\n generate: 'Généré par',\n },\n options: { \n vatMention: 'Mention TVA', \n paymentType: 'Mode de paiement',\n bank: 'BANQUE',\n approval: 'Bon pour accord',\n comment: 'Commentaire',\n },\n table: {\n headers: {\n product: 'Article',\n quantity: 'Quantité',\n unitPrice: 'P.U HT',\n unitPriceWithoutVat: 'P.U',\n discount: 'Remise',\n vat: 'TVA',\n amount: 'Montant HT',\n amountWithoutVat: 'Montant',\n base: 'Base',\n rate: 'Taux',\n vatAmount: 'Montant TVA',\n recap: 'Récapitulatif',\n },\n lines: {\n totalHt: 'Total HT',\n vat: 'TVA',\n totalTTC: 'Total TTC',\n totalWhitoutVat: 'Total',\n deposit: 'Acompte',\n remainderToPay: 'Reste à payer',\n netToPay: 'Net à payer',\n },\n },\n },\n invoice: {\n headers: {\n title: 'Facture',\n dueDate: 'Date d\\'échéance',\n termsOfPayment: 'Date limite de règlement',\n },\n },\n estimate: {\n headers: {\n title: 'Devis',\n dueDate: 'Valide jusq\\'au',\n termsOfPayment: 'Conditions de règlement',\n },\n },\n orderForm: {\n headers: {\n title: 'Bon de commande',\n dueDate: 'Date d\\'échéance',\n termsOfPayment: 'Conditions de règlement',\n },\n\n },\n deposit: {\n headers: {\n title: 'Accompte',\n expirationDate: 'Date d\\'expiration',\n termsOfPayment: 'Date limite de règlement',\n },\n },\n asset: {\n headers: {\n title: 'Avoir',\n dueDate: 'Date d\\'échéance',\n termsOfPayment: 'Date limite de règlement',\n },\n },\n remainder: {\n headers: {\n title: 'reste',\n dueDate: 'Date d\\'échéance',\n termsOfPayment: 'Date limite de règlement',\n },\n },\n draft: {\n headers: {\n title: 'Brouillon',\n dueDate: 'Date d\\'échéance',\n termsOfPayment: 'Date limite de règlement',\n },\n },\n },\n mail: {\n common: {\n dueDate: 'Échéance',\n generate: 'Généré par',\n displayDocument: 'Afficher le document',\n totalHt: 'Total HT',\n totalVat: 'Total TVA',\n totalTtc: 'Total TTC',\n send: 'vous adresse',\n },\n invoice: {\n title: 'cette facture',\n subTitle: 'Facture',\n },\n estimate: {\n title: 'ce devis',\n subTitle: 'Devis',\n },\n orderForm: {\n title: 'ce bon de commande',\n subTitle: 'Bon de commande',\n },\n deposit: {\n title: 'cet acompte',\n subTitle: 'Acompte',\n },\n asset: {\n title: 'cet avoir',\n subTitle: 'Avoir',\n },\n remainder: {\n title: 'cette facture',\n subTitle: 'Facture',\n },\n default: {\n title: 'ce document',\n subTitle: 'Document',\n },\n\n },\n },\n en: {\n inputLists: {\n headers: {\n termsOfPayment: [\n 'On delivery',\n 'On order',\n 'Upon receipt of invoice',\n 'Due within 14 days',\n 'Due within 30 days',\n '30 days upon receipt of invoice',\n '45 days upon receipt of invoice',\n '60 days upon receipt of invoice',\n ],\n accountingCategories: [\n { id: AccountingCategoryId.DELIVERY_OF_GOOD, label: 'Delivery of goods' },\n { id: AccountingCategoryId.SERVICE_DELIVERY, label: 'Services delivery' },\n { id: AccountingCategoryId.GOOD_AND_SERVICE, label: 'Services and goods delivery' },\n ],\n },\n options: {\n penalties: [\n 'Not applicable',\n '3 times the legal rate',\n 'ECB key rate + 10 points',\n ],\n discount: [\n 'Not applicable',\n 'No discount for early payment',\n ],\n vatMention: [\n 'Not affected',\n 'Not applicable',\n 'VAT not applicable, art. 293 B of the French General Tax Code (FGTC)',\n 'VAT not applicable - Exports outside the EU - Art. 259-1 of the French General Tax Code (FGTC)',\n 'Not subject to VAT according to article 261C of the French General Tax Code (FGTC)',\n 'Article 261D of the French General Tax Code (FGTC)',\n 'VAT exemption, article 283-2 of the French General Tax Code (FGTC)',\n 'VAT exemption: Article 262 ter I of the French General Tax Code (FGTC)',\n 'VAT notice 261.4.4 1 of the French General Tax Code (FGTC)',\n 'Specific regime - Second-hand goods - article 297 A of the French General Tax Code (FGTC) and Community Directive 2006/112/EC',\n 'Specific regime - Works of art - article 297 A of the French General Tax Code (FGTC) and Community Directive 2006/112/EC',\n 'Specific regime – Collectibles and antiques - article 297 A of the French General Tax Code (FGTC) and Community Directive 2006/112/EC',\n 'Specific regime - Travel agencies - article 297 A of the French General Tax Code (FGTC) and Community Directive 2006/112/EC',\n ' Invoice subject to VAT reverse charge system',\n ],\n recoveryCost: [\n 'Not applicable',\n '40€',\n ],\n paymentType: [\n 'Credit card',\n 'Check',\n 'Cash',\n 'Direct debit',\n 'Bank transfer',\n ],\n },\n },\n template: {\n common: {\n headers: {\n emissionDate: 'Invoice date',\n accountingCategory: {\n title: 'Transaction type',\n choices: [\n { id: AccountingCategoryId.DELIVERY_OF_GOOD, label: 'supply of goods' },\n { id: AccountingCategoryId.SERVICE_DELIVERY, label: 'Services provision' },\n { id: AccountingCategoryId.GOOD_AND_SERVICE, label: 'Services provision and supply of goods' },\n ],\n },\n },\n footer: {\n capital: 'with capital of',\n siren: 'registered under SIREN',\n vatCode: 'VAT number',\n marginVat: 'VAT margin scheme',\n legalVatMention: 'ART 297-A of the FGTC or directive 2006-212 EC',\n shouldPayTaxAfterDebit: 'Option to pay tax on debits',\n penalties: 'Late fees', \n discount: 'discount',\n recoveryCosts: 'flat-rate delay compensation',\n generate: 'Created by',\n },\n options: { \n vatMention: 'VAT mention',\n paymentType: 'payment type',\n bank: 'BANK',\n approval: 'Agreed and signed',\n comment: 'Comment',\n \n },\n table: {\n headers: {\n product: 'Product',\n quantity: 'Quantity',\n unitPrice: 'Excl. tax unit price',\n unitPriceWithoutVat: 'Unit price',\n discount: 'Discount',\n vat: 'VAT',\n amount: 'Amount excl. tax',\n amountWithoutVat: 'Amount',\n base: 'Base',\n rate: 'Rate',\n vatAmount: 'VAT amount',\n recap: 'Summary',\n },\n lines: {\n totalHt: 'Amount excl. tax',\n vat: 'VAT',\n totalTTC: 'Amount incl. tax',\n totalWhitoutVat: 'Amount',\n deposit: 'Deposit',\n remainderToPay: 'Remainder to pay',\n netToPay: 'Net to pay',\n },\n },\n },\n invoice: {\n headers: {\n title: 'Invoice',\n dueDate: 'Due date',\n termsOfPayment: 'Deadline for payment',\n },\n },\n estimate: {\n headers: {\n title: 'Quotation',\n dueDate: 'Valid until',\n termsOfPayment: 'Term of payment',\n },\n },\n orderForm: {\n headers: {\n title: 'Order form',\n dueDate: 'Valid until',\n termsOfPayment: 'Term of payment',\n },\n\n },\n deposit: {\n headers: {\n title: 'Deposit invoice',\n expirationDate: 'expiry date',\n termsOfPayment: 'Deadline for payment',\n },\n },\n asset: {\n headers: {\n title: 'Credit note',\n dueDate: 'Due date',\n termsOfPayment: 'Deadline for payment',\n },\n },\n remainder: {\n headers: {\n title: 'Balance invoice',\n dueDate: 'Due date',\n termsOfPayment: 'Deadline for payment',\n },\n },\n draft: {\n headers: {\n title: 'Draft',\n dueDate: 'Due date',\n termsOfPayment: 'Deadline for payment',\n },\n },\n },\n mail: {\n common: {\n dueDate: 'Due date',\n generate: 'Created by',\n displayDocument: 'Display document',\n totalHt: 'Total excl. tax',\n totalVat: 'Total VAT',\n totalTtc: 'Total incl. tax',\n send: 'send you',\n },\n invoice: {\n title: 'this invoice',\n subTitle: 'Invoice',\n },\n estimate: {\n title: 'this estimate',\n subTitle: 'Estimate',\n },\n orderForm: {\n title: 'this order form',\n subTitle: 'Order form',\n },\n deposit: {\n title: 'this deposit',\n subTitle: 'Deposit',\n },\n asset: {\n title: 'this asset',\n subTitle: 'Asset',\n },\n remainder: {\n title: 'this invoice',\n subTitle: 'Invoice',\n },\n default: {\n title: 'this document',\n subTitle: 'Document',\n },\n\n },\n },\n};"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexpert/core",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.11",
|
|
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",
|
package/ts/utils/checklist.ts
CHANGED
|
@@ -10,6 +10,10 @@ export function getAllBlockingIssues(checklist: IChecklist, meta: QueryGetAllBlo
|
|
|
10
10
|
|
|
11
11
|
blockingQuestions.forEach((question) => {
|
|
12
12
|
const answer = answers.find((a) => a.idTypeChecklist === question.id);
|
|
13
|
+
if (question.id === 51) {
|
|
14
|
+
console.log(question);
|
|
15
|
+
console.log(answer);
|
|
16
|
+
}
|
|
13
17
|
|
|
14
18
|
if (!answer) {
|
|
15
19
|
blockingIssues.push(question);
|
|
@@ -33,7 +37,7 @@ export function getAllBlockingIssues(checklist: IChecklist, meta: QueryGetAllBlo
|
|
|
33
37
|
blockingIssues.push(question);
|
|
34
38
|
}
|
|
35
39
|
} else if ([ChecklistDetailType.SELECT as string, ChecklistDetailType.SWITCH].includes(question.type) && question.name !== ChecklistDetailName.HAS_POLICE) {
|
|
36
|
-
if ((!answer.value &&
|
|
40
|
+
if ((!answer.value && (question.name !== ChecklistDetailName.IS_WAITING_ACCOUNT_RESET && question.name !== ChecklistDetailName.HAS_CLEARED_INTERNAL_TRANSFER)) || answer.value === '0') {
|
|
37
41
|
blockingIssues.push(question);
|
|
38
42
|
}
|
|
39
43
|
}
|
|
@@ -243,18 +243,18 @@ export const internationalizationChoices: InternationalizationChoicesType = {
|
|
|
243
243
|
vatMention: [
|
|
244
244
|
'Not affected',
|
|
245
245
|
'Not applicable',
|
|
246
|
-
'VAT not applicable, art. 293 B of the FGTC',
|
|
247
|
-
'VAT not applicable - Exports outside the EU - Art. 259-1 FGTC',
|
|
248
|
-
'Not subject to VAT
|
|
249
|
-
'Article
|
|
250
|
-
'VAT exemption, article 283-2 of the French General Tax Code',
|
|
251
|
-
'VAT exemption: Article 262 ter I of the FGTC',
|
|
252
|
-
'VAT notice 261.4.4 1 of the FGTC',
|
|
253
|
-
'
|
|
254
|
-
'
|
|
255
|
-
'
|
|
256
|
-
'
|
|
257
|
-
'Invoice subject to VAT reverse charge system',
|
|
246
|
+
'VAT not applicable, art. 293 B of the French General Tax Code (FGTC)',
|
|
247
|
+
'VAT not applicable - Exports outside the EU - Art. 259-1 of the French General Tax Code (FGTC)',
|
|
248
|
+
'Not subject to VAT according to article 261C of the French General Tax Code (FGTC)',
|
|
249
|
+
'Article 261D of the French General Tax Code (FGTC)',
|
|
250
|
+
'VAT exemption, article 283-2 of the French General Tax Code (FGTC)',
|
|
251
|
+
'VAT exemption: Article 262 ter I of the French General Tax Code (FGTC)',
|
|
252
|
+
'VAT notice 261.4.4 1 of the French General Tax Code (FGTC)',
|
|
253
|
+
'Specific regime - Second-hand goods - article 297 A of the French General Tax Code (FGTC) and Community Directive 2006/112/EC',
|
|
254
|
+
'Specific regime - Works of art - article 297 A of the French General Tax Code (FGTC) and Community Directive 2006/112/EC',
|
|
255
|
+
'Specific regime – Collectibles and antiques - article 297 A of the French General Tax Code (FGTC) and Community Directive 2006/112/EC',
|
|
256
|
+
'Specific regime - Travel agencies - article 297 A of the French General Tax Code (FGTC) and Community Directive 2006/112/EC',
|
|
257
|
+
' Invoice subject to VAT reverse charge system',
|
|
258
258
|
],
|
|
259
259
|
recoveryCost: [
|
|
260
260
|
'Not applicable',
|
|
@@ -264,7 +264,7 @@ export const internationalizationChoices: InternationalizationChoicesType = {
|
|
|
264
264
|
'Credit card',
|
|
265
265
|
'Check',
|
|
266
266
|
'Cash',
|
|
267
|
-
'
|
|
267
|
+
'Direct debit',
|
|
268
268
|
'Bank transfer',
|
|
269
269
|
],
|
|
270
270
|
},
|
|
@@ -272,13 +272,13 @@ export const internationalizationChoices: InternationalizationChoicesType = {
|
|
|
272
272
|
template: {
|
|
273
273
|
common: {
|
|
274
274
|
headers: {
|
|
275
|
-
emissionDate: '
|
|
275
|
+
emissionDate: 'Invoice date',
|
|
276
276
|
accountingCategory: {
|
|
277
|
-
title: '
|
|
277
|
+
title: 'Transaction type',
|
|
278
278
|
choices: [
|
|
279
|
-
{ id: AccountingCategoryId.DELIVERY_OF_GOOD, label: '
|
|
280
|
-
{ id: AccountingCategoryId.SERVICE_DELIVERY, label: 'Services
|
|
281
|
-
{ id: AccountingCategoryId.GOOD_AND_SERVICE, label: 'Services and goods
|
|
279
|
+
{ id: AccountingCategoryId.DELIVERY_OF_GOOD, label: 'supply of goods' },
|
|
280
|
+
{ id: AccountingCategoryId.SERVICE_DELIVERY, label: 'Services provision' },
|
|
281
|
+
{ id: AccountingCategoryId.GOOD_AND_SERVICE, label: 'Services provision and supply of goods' },
|
|
282
282
|
],
|
|
283
283
|
},
|
|
284
284
|
},
|
|
@@ -289,16 +289,16 @@ export const internationalizationChoices: InternationalizationChoicesType = {
|
|
|
289
289
|
marginVat: 'VAT margin scheme',
|
|
290
290
|
legalVatMention: 'ART 297-A of the FGTC or directive 2006-212 EC',
|
|
291
291
|
shouldPayTaxAfterDebit: 'Option to pay tax on debits',
|
|
292
|
-
penalties: 'Late
|
|
292
|
+
penalties: 'Late fees',
|
|
293
293
|
discount: 'discount',
|
|
294
|
-
recoveryCosts: '
|
|
294
|
+
recoveryCosts: 'flat-rate delay compensation',
|
|
295
295
|
generate: 'Created by',
|
|
296
296
|
},
|
|
297
297
|
options: {
|
|
298
298
|
vatMention: 'VAT mention',
|
|
299
299
|
paymentType: 'payment type',
|
|
300
300
|
bank: 'BANK',
|
|
301
|
-
approval: '
|
|
301
|
+
approval: 'Agreed and signed',
|
|
302
302
|
comment: 'Comment',
|
|
303
303
|
|
|
304
304
|
},
|
|
@@ -315,7 +315,7 @@ export const internationalizationChoices: InternationalizationChoicesType = {
|
|
|
315
315
|
base: 'Base',
|
|
316
316
|
rate: 'Rate',
|
|
317
317
|
vatAmount: 'VAT amount',
|
|
318
|
-
recap: '
|
|
318
|
+
recap: 'Summary',
|
|
319
319
|
},
|
|
320
320
|
lines: {
|
|
321
321
|
totalHt: 'Amount excl. tax',
|
|
@@ -337,7 +337,7 @@ export const internationalizationChoices: InternationalizationChoicesType = {
|
|
|
337
337
|
},
|
|
338
338
|
estimate: {
|
|
339
339
|
headers: {
|
|
340
|
-
title: '
|
|
340
|
+
title: 'Quotation',
|
|
341
341
|
dueDate: 'Valid until',
|
|
342
342
|
termsOfPayment: 'Term of payment',
|
|
343
343
|
},
|
|
@@ -352,21 +352,21 @@ export const internationalizationChoices: InternationalizationChoicesType = {
|
|
|
352
352
|
},
|
|
353
353
|
deposit: {
|
|
354
354
|
headers: {
|
|
355
|
-
title: 'Deposit',
|
|
356
|
-
expirationDate: '
|
|
355
|
+
title: 'Deposit invoice',
|
|
356
|
+
expirationDate: 'expiry date',
|
|
357
357
|
termsOfPayment: 'Deadline for payment',
|
|
358
358
|
},
|
|
359
359
|
},
|
|
360
360
|
asset: {
|
|
361
361
|
headers: {
|
|
362
|
-
title: '
|
|
362
|
+
title: 'Credit note',
|
|
363
363
|
dueDate: 'Due date',
|
|
364
364
|
termsOfPayment: 'Deadline for payment',
|
|
365
365
|
},
|
|
366
366
|
},
|
|
367
367
|
remainder: {
|
|
368
368
|
headers: {
|
|
369
|
-
title: '
|
|
369
|
+
title: 'Balance invoice',
|
|
370
370
|
dueDate: 'Due date',
|
|
371
371
|
termsOfPayment: 'Deadline for payment',
|
|
372
372
|
},
|