@silexpert/core 1.1.214 → 1.1.216
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/api/resources/BudgetInsight.d.ts +3 -3
- package/dist/cjs/api/resources/BudgetInsight.d.ts.map +1 -1
- package/dist/cjs/api/resources/BudgetInsight.js.map +1 -1
- package/dist/cjs/api/resources/Connector.d.ts +2 -1
- package/dist/cjs/api/resources/Connector.d.ts.map +1 -1
- package/dist/cjs/api/resources/Connector.js +3 -0
- package/dist/cjs/api/resources/Connector.js.map +1 -1
- package/dist/cjs/api/resources/Mobile.d.ts +1 -0
- package/dist/cjs/api/resources/Mobile.d.ts.map +1 -1
- package/dist/cjs/api/resources/Mobile.js +3 -0
- package/dist/cjs/api/resources/Mobile.js.map +1 -1
- package/dist/cjs/api/resources/Product.d.ts +1 -0
- package/dist/cjs/api/resources/Product.d.ts.map +1 -1
- package/dist/cjs/api/resources/Product.js +3 -0
- package/dist/cjs/api/resources/Product.js.map +1 -1
- package/dist/cjs/api/resources/Rule.d.ts +1 -0
- package/dist/cjs/api/resources/Rule.d.ts.map +1 -1
- package/dist/cjs/api/resources/Rule.js +3 -0
- package/dist/cjs/api/resources/Rule.js.map +1 -1
- package/dist/cjs/api/resources/SalariesFile.d.ts +1 -1
- package/dist/cjs/api/resources/SalariesFile.d.ts.map +1 -1
- package/dist/cjs/api/resources/SalariesFile.js +14 -2
- package/dist/cjs/api/resources/SalariesFile.js.map +1 -1
- package/dist/cjs/api/resources/Society.d.ts +1 -0
- package/dist/cjs/api/resources/Society.d.ts.map +1 -1
- package/dist/cjs/api/resources/Society.js +3 -0
- package/dist/cjs/api/resources/Society.js.map +1 -1
- package/dist/cjs/api/resources/Stocks.d.ts +1 -1
- package/dist/cjs/api/resources/Stocks.js.map +1 -1
- package/dist/cjs/api/resources/ThirdParty.d.ts +2 -1
- package/dist/cjs/api/resources/ThirdParty.d.ts.map +1 -1
- package/dist/cjs/api/resources/ThirdParty.js +3 -0
- package/dist/cjs/api/resources/ThirdParty.js.map +1 -1
- package/dist/cjs/types/Enum/BalanceSheetQuestionWording.d.ts +2 -0
- package/dist/cjs/types/Enum/BalanceSheetQuestionWording.d.ts.map +1 -1
- package/dist/cjs/types/Enum/BalanceSheetQuestionWording.js +2 -0
- package/dist/cjs/types/Enum/BalanceSheetQuestionWording.js.map +1 -1
- package/dist/cjs/types/Enum/Ged.d.ts +2 -1
- package/dist/cjs/types/Enum/Ged.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Ged.js +2 -0
- package/dist/cjs/types/Enum/Ged.js.map +1 -1
- package/dist/cjs/types/Enum/PrestationType.d.ts +4 -0
- package/dist/cjs/types/Enum/PrestationType.d.ts.map +1 -1
- package/dist/cjs/types/Enum/PrestationType.js +4 -0
- package/dist/cjs/types/Enum/PrestationType.js.map +1 -1
- package/dist/cjs/types/Enum/PriceGridClementine.d.ts +55 -0
- package/dist/cjs/types/Enum/PriceGridClementine.d.ts.map +1 -1
- package/dist/cjs/types/Enum/PriceGridClementine.js +42 -0
- package/dist/cjs/types/Enum/PriceGridClementine.js.map +1 -1
- package/dist/cjs/types/Enum/PriceGridLegalstart.d.ts +17 -0
- package/dist/cjs/types/Enum/PriceGridLegalstart.d.ts.map +1 -1
- package/dist/cjs/types/Enum/PriceGridLegalstart.js +16 -0
- package/dist/cjs/types/Enum/PriceGridLegalstart.js.map +1 -1
- package/dist/cjs/types/Enum/PriceGridPourcentage.d.ts +18 -0
- package/dist/cjs/types/Enum/PriceGridPourcentage.d.ts.map +1 -1
- package/dist/cjs/types/Enum/PriceGridPourcentage.js +96 -0
- package/dist/cjs/types/Enum/PriceGridPourcentage.js.map +1 -1
- package/dist/cjs/types/Interface/api/aspone/ReadInterchange.d.ts +1 -0
- package/dist/cjs/types/Interface/api/aspone/ReadInterchange.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/aspone/ReadInterchange.js.map +1 -1
- package/dist/cjs/types/Interface/api/bankAccount/QueryBankAccount.d.ts +1 -0
- package/dist/cjs/types/Interface/api/bankAccount/QueryBankAccount.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/bankAccount/QueryBankAccount.js +8 -0
- package/dist/cjs/types/Interface/api/bankAccount/QueryBankAccount.js.map +1 -1
- package/dist/cjs/types/Interface/api/connector/QueryConnector.d.ts +3 -0
- package/dist/cjs/types/Interface/api/connector/QueryConnector.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/connector/QueryConnector.js +10 -1
- package/dist/cjs/types/Interface/api/connector/QueryConnector.js.map +1 -1
- package/dist/cjs/types/Interface/api/thirdParty/QueryThirdParty.d.ts +3 -0
- package/dist/cjs/types/Interface/api/thirdParty/QueryThirdParty.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/thirdParty/QueryThirdParty.js +10 -1
- package/dist/cjs/types/Interface/api/thirdParty/QueryThirdParty.js.map +1 -1
- package/dist/cjs/types/Interface/api/workingSchedule/QueryDailyHour.d.ts +2 -0
- package/dist/cjs/types/Interface/api/workingSchedule/QueryDailyHour.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/workingSchedule/QueryDailyHour.js.map +1 -1
- package/dist/cjs/types/Interface/models/ISocietyDetail.d.ts +5 -0
- package/dist/cjs/types/Interface/models/ISocietyDetail.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/ISocietyDetail.js.map +1 -1
- package/dist/cjs/utils/exercice.d.ts +4 -0
- package/dist/cjs/utils/exercice.d.ts.map +1 -0
- package/dist/cjs/utils/exercice.js +25 -0
- package/dist/cjs/utils/exercice.js.map +1 -0
- package/dist/cjs/utils/index.d.ts +1 -0
- package/dist/cjs/utils/index.d.ts.map +1 -1
- package/dist/cjs/utils/index.js +1 -0
- package/dist/cjs/utils/index.js.map +1 -1
- package/dist/cjs/utils/prestation.d.ts +3 -3
- package/dist/cjs/utils/prestation.d.ts.map +1 -1
- package/dist/cjs/utils/prestation.js +20 -10
- package/dist/cjs/utils/prestation.js.map +1 -1
- package/dist/cjs/utils/vat/3517/century23.d.ts.map +1 -1
- package/dist/cjs/utils/vat/3517/century23.js +9 -8
- package/dist/cjs/utils/vat/3517/century23.js.map +1 -1
- package/dist/mjs/api/resources/BudgetInsight.d.ts +3 -3
- package/dist/mjs/api/resources/BudgetInsight.d.ts.map +1 -1
- package/dist/mjs/api/resources/BudgetInsight.js.map +1 -1
- package/dist/mjs/api/resources/Connector.d.ts +2 -1
- package/dist/mjs/api/resources/Connector.d.ts.map +1 -1
- package/dist/mjs/api/resources/Connector.js +3 -0
- package/dist/mjs/api/resources/Connector.js.map +1 -1
- package/dist/mjs/api/resources/Mobile.d.ts +1 -0
- package/dist/mjs/api/resources/Mobile.d.ts.map +1 -1
- package/dist/mjs/api/resources/Mobile.js +3 -0
- package/dist/mjs/api/resources/Mobile.js.map +1 -1
- package/dist/mjs/api/resources/Product.d.ts +1 -0
- package/dist/mjs/api/resources/Product.d.ts.map +1 -1
- package/dist/mjs/api/resources/Product.js +3 -0
- package/dist/mjs/api/resources/Product.js.map +1 -1
- package/dist/mjs/api/resources/Rule.d.ts +1 -0
- package/dist/mjs/api/resources/Rule.d.ts.map +1 -1
- package/dist/mjs/api/resources/Rule.js +3 -0
- package/dist/mjs/api/resources/Rule.js.map +1 -1
- package/dist/mjs/api/resources/SalariesFile.d.ts +1 -1
- package/dist/mjs/api/resources/SalariesFile.d.ts.map +1 -1
- package/dist/mjs/api/resources/SalariesFile.js +14 -2
- package/dist/mjs/api/resources/SalariesFile.js.map +1 -1
- package/dist/mjs/api/resources/Society.d.ts +1 -0
- package/dist/mjs/api/resources/Society.d.ts.map +1 -1
- package/dist/mjs/api/resources/Society.js +3 -0
- package/dist/mjs/api/resources/Society.js.map +1 -1
- package/dist/mjs/api/resources/Stocks.d.ts +1 -1
- package/dist/mjs/api/resources/Stocks.js.map +1 -1
- package/dist/mjs/api/resources/ThirdParty.d.ts +2 -1
- package/dist/mjs/api/resources/ThirdParty.d.ts.map +1 -1
- package/dist/mjs/api/resources/ThirdParty.js +3 -0
- package/dist/mjs/api/resources/ThirdParty.js.map +1 -1
- package/dist/mjs/types/Enum/BalanceSheetQuestionWording.d.ts +2 -0
- package/dist/mjs/types/Enum/BalanceSheetQuestionWording.d.ts.map +1 -1
- package/dist/mjs/types/Enum/BalanceSheetQuestionWording.js +2 -0
- package/dist/mjs/types/Enum/BalanceSheetQuestionWording.js.map +1 -1
- package/dist/mjs/types/Enum/Ged.d.ts +2 -1
- package/dist/mjs/types/Enum/Ged.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Ged.js +2 -0
- package/dist/mjs/types/Enum/Ged.js.map +1 -1
- package/dist/mjs/types/Enum/PrestationType.d.ts +4 -0
- package/dist/mjs/types/Enum/PrestationType.d.ts.map +1 -1
- package/dist/mjs/types/Enum/PrestationType.js +4 -0
- package/dist/mjs/types/Enum/PrestationType.js.map +1 -1
- package/dist/mjs/types/Enum/PriceGridClementine.d.ts +55 -0
- package/dist/mjs/types/Enum/PriceGridClementine.d.ts.map +1 -1
- package/dist/mjs/types/Enum/PriceGridClementine.js +42 -0
- package/dist/mjs/types/Enum/PriceGridClementine.js.map +1 -1
- package/dist/mjs/types/Enum/PriceGridLegalstart.d.ts +17 -0
- package/dist/mjs/types/Enum/PriceGridLegalstart.d.ts.map +1 -1
- package/dist/mjs/types/Enum/PriceGridLegalstart.js +16 -0
- package/dist/mjs/types/Enum/PriceGridLegalstart.js.map +1 -1
- package/dist/mjs/types/Enum/PriceGridPourcentage.d.ts +18 -0
- package/dist/mjs/types/Enum/PriceGridPourcentage.d.ts.map +1 -1
- package/dist/mjs/types/Enum/PriceGridPourcentage.js +96 -0
- package/dist/mjs/types/Enum/PriceGridPourcentage.js.map +1 -1
- package/dist/mjs/types/Interface/api/aspone/ReadInterchange.d.ts +1 -0
- package/dist/mjs/types/Interface/api/aspone/ReadInterchange.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/aspone/ReadInterchange.js.map +1 -1
- package/dist/mjs/types/Interface/api/bankAccount/QueryBankAccount.d.ts +1 -0
- package/dist/mjs/types/Interface/api/bankAccount/QueryBankAccount.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/bankAccount/QueryBankAccount.js +9 -0
- package/dist/mjs/types/Interface/api/bankAccount/QueryBankAccount.js.map +1 -1
- package/dist/mjs/types/Interface/api/connector/QueryConnector.d.ts +3 -0
- package/dist/mjs/types/Interface/api/connector/QueryConnector.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/connector/QueryConnector.js +11 -2
- package/dist/mjs/types/Interface/api/connector/QueryConnector.js.map +1 -1
- package/dist/mjs/types/Interface/api/thirdParty/QueryThirdParty.d.ts +3 -0
- package/dist/mjs/types/Interface/api/thirdParty/QueryThirdParty.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/thirdParty/QueryThirdParty.js +9 -0
- package/dist/mjs/types/Interface/api/thirdParty/QueryThirdParty.js.map +1 -1
- package/dist/mjs/types/Interface/api/workingSchedule/QueryDailyHour.d.ts +2 -0
- package/dist/mjs/types/Interface/api/workingSchedule/QueryDailyHour.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/workingSchedule/QueryDailyHour.js.map +1 -1
- package/dist/mjs/types/Interface/models/ISocietyDetail.d.ts +5 -0
- package/dist/mjs/types/Interface/models/ISocietyDetail.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/ISocietyDetail.js.map +1 -1
- package/dist/mjs/utils/exercice.d.ts +4 -0
- package/dist/mjs/utils/exercice.d.ts.map +1 -0
- package/dist/mjs/utils/exercice.js +22 -0
- package/dist/mjs/utils/exercice.js.map +1 -0
- package/dist/mjs/utils/index.d.ts +1 -0
- package/dist/mjs/utils/index.d.ts.map +1 -1
- package/dist/mjs/utils/index.js +1 -0
- package/dist/mjs/utils/index.js.map +1 -1
- package/dist/mjs/utils/prestation.d.ts +3 -3
- package/dist/mjs/utils/prestation.d.ts.map +1 -1
- package/dist/mjs/utils/prestation.js +13 -3
- package/dist/mjs/utils/prestation.js.map +1 -1
- package/dist/mjs/utils/vat/3517/century23.d.ts.map +1 -1
- package/dist/mjs/utils/vat/3517/century23.js +2 -1
- package/dist/mjs/utils/vat/3517/century23.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/BudgetInsight.ts +3 -3
- package/ts/api/resources/Connector.ts +5 -1
- package/ts/api/resources/Mobile.ts +4 -0
- package/ts/api/resources/Product.ts +4 -0
- package/ts/api/resources/Rule.ts +4 -0
- package/ts/api/resources/SalariesFile.ts +14 -2
- package/ts/api/resources/Society.ts +4 -0
- package/ts/api/resources/Stocks.ts +1 -1
- package/ts/api/resources/ThirdParty.ts +5 -0
- package/ts/types/Enum/BalanceSheetQuestionWording.ts +2 -0
- package/ts/types/Enum/Ged.ts +2 -0
- package/ts/types/Enum/PrestationType.ts +4 -0
- package/ts/types/Enum/PriceGridClementine.ts +42 -0
- package/ts/types/Enum/PriceGridLegalstart.ts +16 -0
- package/ts/types/Enum/PriceGridPourcentage.ts +96 -0
- package/ts/types/Interface/api/aspone/ReadInterchange.ts +1 -0
- package/ts/types/Interface/api/bankAccount/QueryBankAccount.ts +7 -0
- package/ts/types/Interface/api/connector/QueryConnector.ts +9 -2
- package/ts/types/Interface/api/thirdParty/QueryThirdParty.ts +7 -0
- package/ts/types/Interface/api/workingSchedule/QueryDailyHour.ts +2 -0
- package/ts/types/Interface/models/ISocietyDetail.ts +5 -0
- package/ts/utils/exercice.ts +25 -0
- package/ts/utils/index.ts +1 -0
- package/ts/utils/prestation.ts +93 -4
- package/ts/utils/vat/3517/century23.ts +2 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ISocietyDetail.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/ISocietyDetail.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAGtC,MAAM,WAAW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AAK,CAAC;IACrB,OAAO,CAAC,EAAE,QAAQ,CAAC;CACpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ISocietyDetail.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/ISocietyDetail.ts"],"names":[],"mappings":"","sourcesContent":["import { IUser } from './IUser';\nimport { IFile } from './IFile';\nimport { ISociety } from './ISociety';\n\n// societyDetails\nexport interface ISocietyDetail {\n id?: number;\n detailActivity?: string | null;\n historyComments?: string | null;\n hasBillingSoftware?: boolean | null;\n isLoans?: string | null;\n loans?: string | null;\n personnalContribution?: string | null;\n listBanks?: string | null;\n nbBanks?: string | null;\n nbBankaccounts?: number | null;\n isCashdesk?: boolean | null;\n nbTva?: number | null;\n ribSentToTaxDepartment?: string | null;\n professionnalRent?: string | null;\n isPersoAdress?: string | null;\n vehicle?: string | null;\n interestOtherCompanies?: string | null;\n listCompaniesInterestedIn?: string | null;\n areOtherCompaniesOnOurBrand?: string | null;\n listTva?: string | null;\n nbAssociates?: number | null;\n nbEmployees?: number | null;\n hiringPromess?: string | null;\n aNouveaux?: boolean | null;\n bilanN1?: boolean | null;\n revisionDate?: Date | null;\n dateFirstContact?: Date | null;\n userIdFirstContact?: number | null;\n tauxTvaComment?: string | null;\n remarqueComment?: string | null;\n remarqueCommentCab?: string | null;\n acceptation?: number | null;\n userIdAcceptation?: number | null;\n lab?: boolean | null;\n userIdLab?: number | null;\n previsionCa?: string | null;\n externalMeans?: string | null;\n needTreasury?: string | null;\n judiciaryRecovery?: string | null;\n fiscalControl?: string | null;\n descriptionFormation?: string | null;\n fonctionAndInterlocutors?: string | null;\n listQualities?: string | null;\n averageCustomerRegulationTime?: string | null;\n averageSupplierRegulationTime?: string | null;\n managementKnowledge?: string | null;\n otherIncome?: string | null;\n politicalResponsability?: string | null;\n prohibitedBanking?: string | null;\n accreARCEOrARE?: string | null;\n frenchTaxResident?: string | null;\n isIrTaxable?: string | null;\n billingSoftware?: string | null;\n collectionSystem?: string | null;\n flowSheet?: string | null;\n officeType?: string | null;\n rankFiles?: string | null;\n specificNeeds?: string | null;\n configAccount?: boolean | null;\n investissement?: string | null;\n investissementTypes?: string | null;\n workInternationnal?: string | null;\n creationEntreprise?: string | null;\n oldActivite?: string | null;\n indemnite?: string | null;\n findClementine?: string | null;\n validationDate?: Date | null;\n idSociety?: number | null;\n idUser?: number | null;\n idFile?: number | null;\n idFileToClient?: number | null;\n idFindClementine?: number | null;\n nbAssociatesInCompany?: number | null;\n hasCommercialLease?: string | null;\n amountBaseBefore?: number | null;\n trainingIsDone?: boolean;\n commercialArea?: string | null;\n commercialRentAmount?: string | null;\n hasTravellingExpenses?: string | null;\n personnalContributionCapital?: string | null;\n personnalContributionCurrentBankAccount?: string | null;\n personnalContributionInKind?: string | null;\n poleEmploiAid?: string | null;\n poleEmploiAidType?: number | null;\n honorLoan?: string | null;\n honorLoanAmount?: string | null;\n financingStartingStock?: string | null;\n financingStartingStockAmount?: string | null;\n contributionTypes?: string | null;\n yearSocietyCreation?: string | null;\n lastExerciceCA?: string | null;\n borrowingInProgress?: string | null;\n borrowingInProgressAmount?: string | null;\n investissementCTMT?: string | null;\n changeECReason?: string | null;\n listReasonsWhyChangingEC?: string | null;\n isSocietyCreation?: boolean | null;\n participationsInOtherSociety?: string | null;\n entrepriseProject?: boolean;\n contractorProfil?: boolean;\n notificationForConstitution?: boolean;\n notificationForOtherMissions?: boolean | null;\n takeKnowledge?: boolean;\n riskClientIdentity?: boolean | null;\n riskCompanyIdentity?: boolean | null;\n riskClientIdentityComment?: string | null;\n riskCompanyIdentityComment?: string | null;\n bankSynchronisationState?: number | null;\n platformExplanation?:number | null;\n mobileAppInstallationProposal?:number | null;\n notaryOfficeName?:string | null;\n notaryOfficeAddress?:string | null;\n notaryOfficeZipCode?:string | null;\n notaryOfficeCity?:string | null;\n verifiedDocuments?: boolean | null;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n\n // Associations\n user?: IUser;\n file?: IFile;\n fileToClient?: IFile;\n society?: ISociety;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"ISocietyDetail.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/ISocietyDetail.ts"],"names":[],"mappings":"","sourcesContent":["import { IUser } from './IUser';\nimport { IFile } from './IFile';\nimport { ISociety } from './ISociety';\n\n// societyDetails\nexport interface ISocietyDetail {\n id?: number;\n detailActivity?: string | null;\n historyComments?: string | null;\n hasBillingSoftware?: boolean | null;\n isLoans?: string | null;\n loans?: string | null;\n personnalContribution?: string | null;\n listBanks?: string | null;\n nbBanks?: string | null;\n nbBankaccounts?: number | null;\n isCashdesk?: boolean | null;\n nbTva?: number | null;\n ribSentToTaxDepartment?: string | null;\n professionnalRent?: string | null;\n isPersoAdress?: string | null;\n vehicle?: string | null;\n interestOtherCompanies?: string | null;\n listCompaniesInterestedIn?: string | null;\n areOtherCompaniesOnOurBrand?: string | null;\n listTva?: string | null;\n nbAssociates?: number | null;\n nbEmployees?: number | null;\n hiringPromess?: string | null;\n aNouveaux?: boolean | null;\n bilanN1?: boolean | null;\n revisionDate?: Date | null;\n dateFirstContact?: Date | null;\n userIdFirstContact?: number | null;\n tauxTvaComment?: string | null;\n remarqueComment?: string | null;\n remarqueCommentCab?: string | null;\n acceptation?: number | null;\n userIdAcceptation?: number | null;\n lab?: boolean | null;\n userIdLab?: number | null;\n previsionCa?: string | null;\n externalMeans?: string | null;\n needTreasury?: string | null;\n judiciaryRecovery?: string | null;\n fiscalControl?: string | null;\n descriptionFormation?: string | null;\n fonctionAndInterlocutors?: string | null;\n listQualities?: string | null;\n averageCustomerRegulationTime?: string | null;\n averageSupplierRegulationTime?: string | null;\n managementKnowledge?: string | null;\n otherIncome?: string | null;\n politicalResponsability?: string | null;\n prohibitedBanking?: string | null;\n accreARCEOrARE?: string | null;\n frenchTaxResident?: string | null;\n isIrTaxable?: string | null;\n billingSoftware?: string | null;\n collectionSystem?: string | null;\n flowSheet?: string | null;\n officeType?: string | null;\n rankFiles?: string | null;\n specificNeeds?: string | null;\n configAccount?: boolean | null;\n investissement?: string | null;\n investissementTypes?: string | null;\n workInternationnal?: string | null;\n creationEntreprise?: string | null;\n oldActivite?: string | null;\n indemnite?: string | null;\n findClementine?: string | null;\n validationDate?: Date | null;\n idSociety?: number | null;\n idUser?: number | null;\n idFile?: number | null;\n idFileToClient?: number | null;\n idFindClementine?: number | null;\n nbAssociatesInCompany?: number | null;\n hasCommercialLease?: string | null;\n amountBaseBefore?: number | null;\n trainingIsDone?: boolean;\n commercialArea?: string | null;\n commercialRentAmount?: string | null;\n hasTravellingExpenses?: string | null;\n personnalContributionCapital?: string | null;\n personnalContributionCurrentBankAccount?: string | null;\n personnalContributionInKind?: string | null;\n poleEmploiAid?: string | null;\n poleEmploiAidType?: number | null;\n honorLoan?: string | null;\n honorLoanAmount?: string | null;\n financingStartingStock?: string | null;\n financingStartingStockAmount?: string | null;\n contributionTypes?: string | null;\n yearSocietyCreation?: string | null;\n lastExerciceCA?: string | null;\n borrowingInProgress?: string | null;\n borrowingInProgressAmount?: string | null;\n investissementCTMT?: string | null;\n changeECReason?: string | null;\n listReasonsWhyChangingEC?: string | null;\n isSocietyCreation?: boolean | null;\n participationsInOtherSociety?: string | null;\n entrepriseProject?: boolean;\n contractorProfil?: boolean;\n notificationForConstitution?: boolean;\n notificationForOtherMissions?: boolean | null;\n takeKnowledge?: boolean;\n riskClientIdentity?: boolean | null;\n riskCompanyIdentity?: boolean | null;\n riskClientIdentityComment?: string | null;\n riskCompanyIdentityComment?: string | null;\n bankSynchronisationState?: number | null;\n platformExplanation?:number | null;\n mobileAppInstallationProposal?:number | null;\n notaryOfficeName?:string | null;\n notaryOfficeAddress?:string | null;\n notaryOfficeZipCode?:string | null;\n notaryOfficeCity?:string | null;\n verifiedDocuments?: boolean | null;\n accountingPlanSetup?: boolean | null;\n checkingReceiptOfBankStatements?: boolean | null;\n CCASetup?: boolean | null;\n usingExpenseReports?: boolean | null;\n usingIK?: boolean | null;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n\n // Associations\n user?: IUser;\n file?: IFile;\n fileToClient?: IFile;\n society?: ISociety;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exercice.d.ts","sourceRoot":"","sources":["../../../ts/utils/exercice.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAIrC,QAAA,MAAM,cAAc,YAAa,IAAI,gBAAgB,SAAS,EAAE,KAAG,MAgBlE,CAAC;AAEF,OAAO,EACL,cAAc,GACf,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.exerciceNumber = void 0;
|
|
4
|
+
const dayjs = require("dayjs");
|
|
5
|
+
const exerciceNumber = (endDate, exerciceList) => {
|
|
6
|
+
let currentExercice = 0;
|
|
7
|
+
exerciceList.sort((a, b) => {
|
|
8
|
+
if (dayjs(a.startDate).format('YYYY-MM-DD') > dayjs(b.startDate).format('YYYY-MM-DD')) {
|
|
9
|
+
return 1;
|
|
10
|
+
}
|
|
11
|
+
else if (dayjs(a.startDate).format('YYYY-MM-DD') < dayjs(b.startDate).format('YYYY-MM-DD')) {
|
|
12
|
+
return -1;
|
|
13
|
+
}
|
|
14
|
+
else {
|
|
15
|
+
return 0;
|
|
16
|
+
}
|
|
17
|
+
}).forEach((exercice, index) => {
|
|
18
|
+
if (dayjs(endDate).isSame(dayjs(exercice.endDate))) {
|
|
19
|
+
currentExercice = index + 1;
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
return currentExercice;
|
|
23
|
+
};
|
|
24
|
+
exports.exerciceNumber = exerciceNumber;
|
|
25
|
+
//# sourceMappingURL=exercice.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exercice.js","sourceRoot":"","sources":["../../../ts/utils/exercice.ts"],"names":[],"mappings":";;;AACA,+BAA+B;AAG/B,MAAM,cAAc,GAAG,CAAC,OAAa,EAAE,YAAyB,EAAU,EAAE;IAC1E,IAAI,eAAe,GAAW,CAAC,CAAC;IAChC,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;QACzB,IAAI,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE;YACrF,OAAO,CAAC,CAAC;SACV;aAAM,IAAI,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE;YAC5F,OAAO,CAAC,CAAC,CAAC;SACX;aAAM;YACL,OAAO,CAAC,CAAC;SACV;IACH,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,KAAK,EAAE,EAAE;QAC7B,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,EAAE;YAClD,eAAe,GAAG,KAAK,GAAG,CAAC,CAAC;SAC7B;IACH,CAAC,CAAC,CAAC;IACH,OAAO,eAAe,CAAC;AACzB,CAAC,CAAC;AAGA,wCAAc","sourcesContent":["import { IExercice } from '../types';\nimport * as dayjs from 'dayjs';\n\n\nconst exerciceNumber = (endDate: Date, exerciceList: IExercice[]): number => {\n let currentExercice: number = 0;\n exerciceList.sort((a, b) => {\n if (dayjs(a.startDate).format('YYYY-MM-DD') > dayjs(b.startDate).format('YYYY-MM-DD')) {\n return 1;\n } else if (dayjs(a.startDate).format('YYYY-MM-DD') < dayjs(b.startDate).format('YYYY-MM-DD')) {\n return -1;\n } else {\n return 0;\n }\n }).forEach((exercice, index) => {\n if (dayjs(endDate).isSame(dayjs(exercice.endDate))) {\n currentExercice = index + 1;\n }\n });\n return currentExercice;\n};\n\nexport {\n exerciceNumber,\n};"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../ts/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,iCAAiC,CAAC;AAChD,cAAc,mCAAmC,CAAC;AAClD,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,gCAAgC,EAAE,MAAM,sBAAsB,CAAC;AACxE,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../ts/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,iCAAiC,CAAC;AAChD,cAAc,mCAAmC,CAAC;AAClD,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,gCAAgC,EAAE,MAAM,sBAAsB,CAAC;AACxE,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC"}
|
package/dist/cjs/utils/index.js
CHANGED
|
@@ -25,6 +25,7 @@ __exportStar(require("./balanceSheetModule"), exports);
|
|
|
25
25
|
__exportStar(require("./siretValidation"), exports);
|
|
26
26
|
__exportStar(require("./statutsGeneration"), exports);
|
|
27
27
|
__exportStar(require("./email"), exports);
|
|
28
|
+
__exportStar(require("./exercice"), exports);
|
|
28
29
|
__exportStar(require("./prestation"), exports);
|
|
29
30
|
__exportStar(require("./task"), exports);
|
|
30
31
|
__exportStar(require("./social"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../ts/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,gDAA8B;AAC9B,2CAAyB;AACzB,4CAA0B;AAC1B,+CAA6B;AAC7B,8CAA4B;AAC5B,uDAAqC;AACrC,oDAAkC;AAClC,sDAAoC;AACpC,0CAAwB;AACxB,+CAA6B;AAC7B,yCAAuB;AACvB,2CAAyB;AACzB,kEAAgD;AAChD,oEAAkD;AAClD,2CAAyB;AACzB,8CAA4B;AAC5B,2CAAyB;AACzB,0CAAwB;AACxB,kDAAwE;AAA/D,6HAAA,gCAAgC,OAAA;AACzC,gDAA8B;AAC9B,oDAAkC;AAClC,iDAA+B","sourcesContent":["export * from './objectUtils';\nexport * from './stringUtils';\nexport * from './brands';\nexport * from './webmail';\nexport * from './decorators';\nexport * from './documents';\nexport * from './balanceSheetModule';\nexport * from './siretValidation';\nexport * from './statutsGeneration';\nexport * from './email';\nexport * from './prestation';\nexport * from './task';\nexport * from './social';\nexport * from './commercialManagement/document';\nexport * from './commercialManagement/recurrence';\nexport * from './amount';\nexport * from './quotation';\nexport * from './isHtml';\nexport * from './isUrl';\nexport { getCerfa3517DDRRegistrationField } from './vat/3517/century23';\nexport * from './bankAccount';\nexport * from './commercialOffer';\nexport * from './subscription';"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../ts/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,gDAA8B;AAC9B,2CAAyB;AACzB,4CAA0B;AAC1B,+CAA6B;AAC7B,8CAA4B;AAC5B,uDAAqC;AACrC,oDAAkC;AAClC,sDAAoC;AACpC,0CAAwB;AACxB,6CAA2B;AAC3B,+CAA6B;AAC7B,yCAAuB;AACvB,2CAAyB;AACzB,kEAAgD;AAChD,oEAAkD;AAClD,2CAAyB;AACzB,8CAA4B;AAC5B,2CAAyB;AACzB,0CAAwB;AACxB,kDAAwE;AAA/D,6HAAA,gCAAgC,OAAA;AACzC,gDAA8B;AAC9B,oDAAkC;AAClC,iDAA+B","sourcesContent":["export * from './objectUtils';\nexport * from './stringUtils';\nexport * from './brands';\nexport * from './webmail';\nexport * from './decorators';\nexport * from './documents';\nexport * from './balanceSheetModule';\nexport * from './siretValidation';\nexport * from './statutsGeneration';\nexport * from './email';\nexport * from './exercice';\nexport * from './prestation';\nexport * from './task';\nexport * from './social';\nexport * from './commercialManagement/document';\nexport * from './commercialManagement/recurrence';\nexport * from './amount';\nexport * from './quotation';\nexport * from './isHtml';\nexport * from './isUrl';\nexport { getCerfa3517DDRRegistrationField } from './vat/3517/century23';\nexport * from './bankAccount';\nexport * from './commercialOffer';\nexport * from './subscription';"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPrestation, IPrestationList } from '../types';
|
|
1
|
+
import { IExercice, IPrestation, IPrestationList } from '../types';
|
|
2
2
|
import { PrestationType } from '../types/Enum/PrestationType';
|
|
3
3
|
import { PrestationOptionType } from '../types/Enum/PrestationOption';
|
|
4
4
|
declare const isOtherAccountingMissions: (idPrestationList: number) => boolean;
|
|
@@ -12,14 +12,14 @@ declare const isCreation: (idPrestationList: number[]) => boolean;
|
|
|
12
12
|
declare const isFromStatutsExpress: (idPrestationList: number[]) => boolean;
|
|
13
13
|
declare const isExpress: (idPrestationList: number) => boolean;
|
|
14
14
|
declare const calculateScoringOfPrestation: (idPrestationType: PrestationType, prestations: IPrestation[]) => number;
|
|
15
|
-
declare const calculatePrestationPriceWithPriceGrid: (idPrestationList: number, endDate: string, NbrMonth: number, turnover: number, rentsNumber: number, employeesNumber: number, associatesNumber: number, idTypeBrand: number, idVatRegime: number, pastBalanceSheet: boolean, isYearly: boolean, totalMonth: number, idTaxSystem: number, idLegalForm: number, balanceSheetOffered?: number) => {
|
|
15
|
+
declare const calculatePrestationPriceWithPriceGrid: (idPrestationList: number, endDate: string, NbrMonth: number, turnover: number, rentsNumber: number, employeesNumber: number, associatesNumber: number, idTypeBrand: number, idVatRegime: number, pastBalanceSheet: boolean, isYearly: boolean, totalMonth: number, idTaxSystem: number, idLegalForm: number, exerciceNbr: number, balanceSheetOffered?: number) => {
|
|
16
16
|
totalPrestation: number;
|
|
17
17
|
reduceMonth: number;
|
|
18
18
|
canBeCreated: boolean;
|
|
19
19
|
monthNbr: number;
|
|
20
20
|
price: number;
|
|
21
21
|
};
|
|
22
|
-
declare const calculatePrestationPrice: (idPrestationList: number, prestationList: IPrestationList, endDate: string, NbrMonth: number, turnover: number, rentsNumber: number, employeesNumber: number, associatesNumber: number, idTypeBrand: number, idVatRegime: number, pastBalanceSheet: boolean, optionsList: number[], totalPercentage: number, totalAmount: number, totalMonth: number, isWithApplicationFees: boolean, idTaxSystem: number, idLegalForm: number, isYearly?: boolean, balanceSheetOffered?: number) => {
|
|
22
|
+
declare const calculatePrestationPrice: (idPrestationList: number, prestationList: IPrestationList, endDate: string, NbrMonth: number, turnover: number, rentsNumber: number, employeesNumber: number, associatesNumber: number, idTypeBrand: number, idVatRegime: number, pastBalanceSheet: boolean, optionsList: number[], totalPercentage: number, totalAmount: number, totalMonth: number, isWithApplicationFees: boolean, idTaxSystem: number, idLegalForm: number, isYearly?: boolean, balanceSheetOffered?: number, exerciceList?: IExercice[]) => {
|
|
23
23
|
totalPrestation: number;
|
|
24
24
|
reduceMonth: number;
|
|
25
25
|
canBeCreated: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prestation.d.ts","sourceRoot":"","sources":["../../../ts/utils/prestation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"prestation.d.ts","sourceRoot":"","sources":["../../../ts/utils/prestation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAEnE,OAAO,EAAoB,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAChF,OAAO,EAAE,oBAAoB,EAAoB,MAAM,gCAAgC,CAAC;AAkFxF,QAAA,MAAM,yBAAyB,qBAAsB,MAAM,KAAG,OAOC,CAAC;AAEhE,QAAA,MAAM,wBAAwB,gBAAgB,OAAO,aAAY,OAAO,oBAAoB,MAAM,KAAG,OAA4F,CAAC;AAElM,QAAA,MAAM,oBAAoB,qBAAsB,MAAM,KAAG,OAA8E,CAAC;AAExI,QAAA,MAAM,kBAAkB,WAAW,OAAO,aAAY,OAAO,KAAG,OAA+B,CAAC;AAEhG,QAAA,MAAM,WAAW,qBAAsB,MAAM,EAAE,KAAE,OAAmK,CAAC;AAErN,QAAA,MAAM,YAAY,qBAAsB,MAAM,EAAE,KAAE,OAA+H,CAAC;AAElL,QAAA,MAAM,aAAa,qBAAsB,MAAM,EAAE,KAAE,OAA+G,CAAC;AAEnK,QAAA,MAAM,UAAU,qBAAsB,MAAM,EAAE,KAAE,OAAsN,CAAC;AAEvQ,QAA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C/T,CAAC"}
|
|
@@ -11,6 +11,7 @@ const PriceGridStatutsExpress_1 = require("../types/Enum/PriceGridStatutsExpress
|
|
|
11
11
|
const ClosingType_1 = require("../types/Enum/ClosingType");
|
|
12
12
|
const brands_1 = require("./brands");
|
|
13
13
|
const dayjs = require("dayjs");
|
|
14
|
+
const exercice_1 = require("./exercice");
|
|
14
15
|
const isOtherAccountingMissions = (idPrestationList) => [
|
|
15
16
|
PrestationType_1.PrestationType.PREVISIONNEL,
|
|
16
17
|
PrestationType_1.PrestationType.BILAN_INTERMEDIAIRE,
|
|
@@ -75,8 +76,8 @@ const getPriceGrid = (idTypeBrand, idPrestationList) => {
|
|
|
75
76
|
currentPriceGrid = currentBrandPriceGrid === null || currentBrandPriceGrid === void 0 ? void 0 : currentBrandPriceGrid.price.find((price) => price.idPrestationList.includes(idPrestationList));
|
|
76
77
|
return currentPriceGrid;
|
|
77
78
|
};
|
|
78
|
-
const calculatePrestationPriceWithPriceGrid = (idPrestationList, endDate, NbrMonth, turnover, rentsNumber, employeesNumber, associatesNumber, idTypeBrand, idVatRegime, pastBalanceSheet, isYearly, totalMonth, idTaxSystem, idLegalForm, balanceSheetOffered = 0) => {
|
|
79
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y;
|
|
79
|
+
const calculatePrestationPriceWithPriceGrid = (idPrestationList, endDate, NbrMonth, turnover, rentsNumber, employeesNumber, associatesNumber, idTypeBrand, idVatRegime, pastBalanceSheet, isYearly, totalMonth, idTaxSystem, idLegalForm, exerciceNbr, balanceSheetOffered = 0) => {
|
|
80
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2;
|
|
80
81
|
let totalPrestation = 0;
|
|
81
82
|
let reduceMonth = 0;
|
|
82
83
|
let monthNbr = NbrMonth;
|
|
@@ -107,16 +108,22 @@ const calculatePrestationPriceWithPriceGrid = (idPrestationList, endDate, NbrMon
|
|
|
107
108
|
monthlyPrice = (_m = (_l = currentPriceGrid.employee) === null || _l === void 0 ? void 0 : _l.find(emp => emp.amountMinimum <= employeesNumber && emp.amountMaximum >= employeesNumber)) === null || _m === void 0 ? void 0 : _m.price;
|
|
108
109
|
monthlyPrice = monthlyPrice ? monthlyPrice * employeesNumber : 0;
|
|
109
110
|
}
|
|
111
|
+
else if (currentPriceGrid.employeeByLegalForm) {
|
|
112
|
+
monthlyPrice = (_p = (_o = currentPriceGrid.employeeByLegalForm) === null || _o === void 0 ? void 0 : _o.find(emp => emp.idLegalForm === idLegalForm)) === null || _p === void 0 ? void 0 : _p.price;
|
|
113
|
+
monthlyPrice = monthlyPrice ? monthlyPrice * employeesNumber : 0;
|
|
114
|
+
}
|
|
110
115
|
else if (currentPriceGrid.turnoverYearly && isYearly)
|
|
111
|
-
yearlyPrice = (
|
|
116
|
+
yearlyPrice = (_r = (_q = currentPriceGrid.turnoverYearly) === null || _q === void 0 ? void 0 : _q.find(turn => turnover < turn.turnoverValue)) === null || _r === void 0 ? void 0 : _r.price;
|
|
112
117
|
else if (!pastBalanceSheet && currentPriceGrid.turnoverCreatedYear)
|
|
113
|
-
yearlyPrice = (
|
|
118
|
+
yearlyPrice = (_t = (_s = currentPriceGrid.turnoverCreatedYear) === null || _s === void 0 ? void 0 : _s.find(turn => turnover < turn.turnoverValue)) === null || _t === void 0 ? void 0 : _t.price;
|
|
114
119
|
else if (pastBalanceSheet && currentPriceGrid.turnoverPastYear)
|
|
115
|
-
yearlyPrice = (
|
|
120
|
+
yearlyPrice = (_v = (_u = currentPriceGrid.turnoverPastYear) === null || _u === void 0 ? void 0 : _u.find(turn => turnover < turn.turnoverValue)) === null || _v === void 0 ? void 0 : _v.price;
|
|
116
121
|
else if (currentPriceGrid.partner)
|
|
117
|
-
yearlyPrice = (
|
|
122
|
+
yearlyPrice = (_x = (_w = currentPriceGrid.partner) === null || _w === void 0 ? void 0 : _w.find(part => part.amountMinimum <= associatesNumber && part.amountMaximum >= associatesNumber)) === null || _x === void 0 ? void 0 : _x.price;
|
|
118
123
|
else if (currentPriceGrid.legalForm)
|
|
119
|
-
yearlyPrice = (
|
|
124
|
+
yearlyPrice = (_z = (_y = currentPriceGrid.legalForm) === null || _y === void 0 ? void 0 : _y.find(form => form.idLegalForm === idLegalForm)) === null || _z === void 0 ? void 0 : _z.price;
|
|
125
|
+
else if (currentPriceGrid.exerciceNbr)
|
|
126
|
+
yearlyPrice = (_1 = (_0 = currentPriceGrid.exerciceNbr) === null || _0 === void 0 ? void 0 : _0.find(el => el.minimum <= exerciceNbr && exerciceNbr <= el.maximum)) === null || _1 === void 0 ? void 0 : _1.price;
|
|
120
127
|
finalMonthlyPrice = (monthlyPrice ? monthlyPrice : 0) + (vatRegimePrice ? vatRegimePrice : 0) + (taxSystemPrice ? taxSystemPrice : 0);
|
|
121
128
|
/* Gestion des mois */
|
|
122
129
|
let cloturedPast = false;
|
|
@@ -125,7 +132,7 @@ const calculatePrestationPriceWithPriceGrid = (idPrestationList, endDate, NbrMon
|
|
|
125
132
|
let monthlyNbrList;
|
|
126
133
|
let monthlyNbr;
|
|
127
134
|
if (currentPriceGrid.monthlyNbr) {
|
|
128
|
-
monthlyNbrList = (
|
|
135
|
+
monthlyNbrList = (_2 = currentPriceGrid.monthlyNbr) === null || _2 === void 0 ? void 0 : _2.filter(el => el.closingType.includes(cloturedPast ? ClosingType_1.ClosingType.OUTDATED : ClosingType_1.ClosingType.IN_PROGRESS));
|
|
129
136
|
if (monthlyNbrList) {
|
|
130
137
|
monthlyNbr = monthlyNbrList.find(el => (el.minimum <= monthNbr) && (monthNbr <= el.maximum));
|
|
131
138
|
if (monthlyNbr) {
|
|
@@ -156,7 +163,7 @@ const calculatePrestationPriceWithPrestationList = (prestationList) => {
|
|
|
156
163
|
totalPrestation = (prestationList === null || prestationList === void 0 ? void 0 : prestationList.price) || 0;
|
|
157
164
|
return totalPrestation;
|
|
158
165
|
};
|
|
159
|
-
const calculatePrestationPrice = (idPrestationList, prestationList, endDate, NbrMonth, turnover, rentsNumber, employeesNumber, associatesNumber, idTypeBrand, idVatRegime, pastBalanceSheet, optionsList, totalPercentage, totalAmount, totalMonth, isWithApplicationFees, idTaxSystem, idLegalForm, isYearly = false, balanceSheetOffered = 0) => {
|
|
166
|
+
const calculatePrestationPrice = (idPrestationList, prestationList, endDate, NbrMonth, turnover, rentsNumber, employeesNumber, associatesNumber, idTypeBrand, idVatRegime, pastBalanceSheet, optionsList, totalPercentage, totalAmount, totalMonth, isWithApplicationFees, idTaxSystem, idLegalForm, isYearly = false, balanceSheetOffered = 0, exerciceList = []) => {
|
|
160
167
|
let totalPrestation = 0;
|
|
161
168
|
let reduceMonth = 0;
|
|
162
169
|
let canBeCreated = true;
|
|
@@ -189,7 +196,10 @@ const calculatePrestationPrice = (idPrestationList, prestationList, endDate, Nbr
|
|
|
189
196
|
PrestationType_1.PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS_EXPRESS,
|
|
190
197
|
PrestationType_1.PrestationType.STATUTS_OPTION_2,
|
|
191
198
|
].includes(idPrestationList)) {
|
|
192
|
-
|
|
199
|
+
let exerciceNbr = 0;
|
|
200
|
+
if (exerciceList.length)
|
|
201
|
+
exerciceNbr = (0, exercice_1.exerciceNumber)(dayjs(endDate, 'YYYY-MM-DD').toDate(), exerciceList);
|
|
202
|
+
totalWithReduce = calculatePrestationPriceWithPriceGrid(idPrestationList, endDate, NbrMonth, turnover, rentsNumber, employeesNumber, associatesNumber, idTypeBrand, idVatRegime, pastBalanceSheet, isYearly, totalMonth, idTaxSystem, idLegalForm, exerciceNbr, balanceSheetOffered);
|
|
193
203
|
totalPrestation = totalWithReduce.totalPrestation;
|
|
194
204
|
reduceMonth = totalWithReduce.reduceMonth;
|
|
195
205
|
canBeCreated = totalWithReduce.canBeCreated;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prestation.js","sourceR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,MAAM,GAAG,CAAC,CAAC,CAAC,aAAa,GAAG,QAAQ;YAAE,OAAO,IAAI,CAAC;QACpR,aAAa;aACR,IAAI,CAAC,+BAAc,CAAC,kBAAkB,EAAE,+BAAc,CAAC,0BAA0B,CAAC,CAAC,QAAQ,CAAC,gBAAgB,CAAC,IAAI,gBAAgB,CAAC,eAAe,CAAC,gBAAgB,CAAC,eAAe,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,aAAa,GAAG,QAAQ;YAAE,OAAO,IAAI,CAAC;QAC1O,aAAa;aACR,IAAI,CAAC,+BAAc,CAAC,kBAAkB,CAAC,CAAC,QAAQ,CAAC,gBAAgB,CAAC,IAAI,CAAC,gBAAgB,IAAI,gBAAgB,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,aAAa,GAAG,QAAQ;YAAE,OAAO,IAAI,CAAC;QAC5N,aAAa;aACR,IAAI,CAAC,+BAAc,CAAC,kBAAkB,CAAC,CAAC,QAAQ,CAAC,gBAAgB,CAAC,IAAI,gBAAgB,IAAI,gBAAgB,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,aAAa,GAAG,QAAQ;YAAE,OAAO,IAAI,CAAC;;YAChN,OAAO,KAAK,CAAC;KACnB;IACD,OAAO,KAAK,CAAC;AAEf,CAAC,CAAC;AAGoQ,kDAAmB","sourcesContent":["import { IPrestation, IPrestationList } from '../types';\nimport { intersection } from './noLodash';\nimport { PrestationDetail, PrestationType } from '../types/Enum/PrestationType';\nimport { PrestationOptionType, PrestationOption } from '../types/Enum/PrestationOption';\nimport { PriceGridClementine } from '../types/Enum/PriceGridClementine';\nimport { PriceGridPourcentage } from '../types/Enum/PriceGridPourcentage';\nimport { PriceGridLegalstart } from '../types/Enum/PriceGridLegalstart';\nimport { PriceGridStatutsExpress } from '../types/Enum/PriceGridStatutsExpress';\nimport { ClosingType } from '../types/Enum/ClosingType';\nimport { getBrandNameByNodeEnv } from './brands';\nimport * as dayjs from 'dayjs';\n\ntype priceGridBrand = {\n idTypeBrand: number,\n price: priceGrid[]\n};\n\ntype priceGrid = {\n idPrestationList: number[],\n monthlyNbr?: monthlyNbr[],\n turnoverCreatedYear?: turnover[],\n turnoverPastYear?: turnover[],\n turnoverMonthly?: turnover[],\n turnoverYearly?: turnover[],\n employee?: employee[],\n partner?: employee[],\n properties?: propertie[],\n vatRegimeMonthly?: vatRegime[],\n vatRegimeYearly?: vatRegime[],\n taxSystem?: taxSystem[],\n legalForm?: legalForm[],\n};\n\ntype monthlyNbr = {\n minimum: number,\n maximum: number,\n value: number,\n closingType: number[],\n};\n\ntype turnover = {\n turnoverValue: number,\n price: number,\n};\n\ntype legalForm = {\n idLegalForm: number,\n price: number,\n};\n\ntype employee = {\n amountMinimum: number,\n amountMaximum: number,\n price: number,\n};\n\ntype propertie = {\n amount: number,\n price: number,\n};\n\ntype vatRegime = {\n type: number,\n price: number,\n};\n\ntype taxSystem = {\n id: number,\n price: number,\n};\n\nconst isOtherAccountingMissions = (idPrestationList: number): boolean => [\n PrestationType.PREVISIONNEL,\n PrestationType.BILAN_INTERMEDIAIRE,\n PrestationType.AVANCE_OU_ABANDON_COMPTE_COURANT_ASSOCIE,\n PrestationType.AUTRE_MISSION_COMPTABLE,\n PrestationType.TVS,\n PrestationType.ETUDE_FISCALE,\n PrestationType.BILAN_PREVISIONNEL].includes(idPrestationList);\n\nconst isOtherJuridicalMissions = (isJuridique:boolean, isCatalog:boolean, idPrestationList: number): boolean => idPrestationList !== PrestationType.GESTION_JURIDIQUE && isCatalog && isJuridique;\n\nconst isOtherSocialMission = (idPrestationList: number): boolean => idPrestationList === PrestationType.AUTRE_MISSION_SOCIALE_HORS_PAIE;\n\nconst isAdditionalPresta = (hidden:boolean, isCatalog:boolean): boolean => !hidden && isCatalog;\n\nconst isOnlyPrevi = (idPrestationList: number[]):boolean => !idPrestationList.filter((idPL:number) => ![PrestationType.PREVISIONNEL, PrestationType.BILAN_PREVISIONNEL, PrestationType.PV_AG].includes(idPL)).length;\n\nconst isOnlySocial = (idPrestationList: number[]):boolean => !idPrestationList.filter((idPL:number) => ![PrestationType.FRUCTUPAIE, PrestationType.SOCIAL].includes(idPL)).length;\n\nconst isOnlyJuridic = (idPrestationList: number[]):boolean => !idPrestationList.filter((idPL:number) => ![PrestationType.GESTION_JURIDIQUE].includes(idPL)).length;\n\nconst isCreation = (idPrestationList: number[]):boolean => !!intersection(idPrestationList, [PrestationType.CREATION_SOCIETE, PrestationType.STATUTS_FREE, PrestationType.STATUTS_OPTION_1, PrestationType.STATUTS_OPTION_2, PrestationType.STATUTS_OPTION_AE]).length;\n\nconst isFromStatutsExpress = (idPrestationList: number[]):boolean => !idPrestationList.filter((idPL:number) => ![PrestationType.STATUTS_FREE, PrestationType.STATUTS_OPTION_1, PrestationType.STATUTS_OPTION_2, PrestationType.STATUTS_OPTION_AE].includes(idPL)).length;\n\nconst isExpress = (idPrestationList: number):boolean => {\n const prestationDetailValues = Object.values(PrestationDetail) as any;\n const prestaList = prestationDetailValues.find((pr:any) => pr.id === idPrestationList);\n return !!prestaList.isBack;\n};\n\nconst calculateScoringOfPrestation = (idPrestationType: PrestationType, prestations: IPrestation[]): number => {\n const prestationsSignedPaid = prestations.filter((prestation) => prestation.paid && prestation.signed && prestation.terminationList === null);\n\n // Get the list of prestations that are half price\n const prestationHalfPriceList = Object.values(PrestationDetail).filter((p) => p.isComptable && !p.isCatalog);\n const prestationHalfPriceIds = prestationHalfPriceList.map((t) => t.id);\n\n // Get the number of points for the new prestation\n const prestaDetails = Object.values(PrestationDetail).find((prestaDetail) => prestaDetail.id === idPrestationType);\n const numberPoint = prestaDetails?.point || 0;\n\n // Get list of prestations that are already done and check if one of them is in the list of prestations that are half price\n const prestationsExistIds = prestationsSignedPaid.map((prestation) => prestation.idPrestationList);\n const prestationHalfPriceAlreadyDoneIds = prestationsExistIds.filter((id) => prestationHalfPriceIds.includes(id));\n\n // If one of the prestations already done is in the list of prestations that are half price and if the idPrestationType is in prestationHalfPriceIds, return 50% of points\n if (prestationHalfPriceAlreadyDoneIds.length && prestationHalfPriceIds.includes(idPrestationType)) return Math.floor(numberPoint * 0.3);\n\n return numberPoint;\n};\n\nconst getPriceGrid = (idTypeBrand: number, idPrestationList: number): priceGrid | undefined => {\n let currentBrandPriceGrid: priceGridBrand | undefined;\n let currentPriceGrid: priceGrid | undefined;\n\n const currentEnvName = getBrandNameByNodeEnv(process.env.NODE_ENV);\n const listEnvEnum = {\n PriceGridClementine, PriceGridPourcentage, PriceGridLegalstart, PriceGridStatutsExpress,\n };\n // @ts-ignore\n const currentPriceGridFile: priceGridBrand[] = listEnvEnum[`PriceGrid${currentEnvName}`];\n if (currentPriceGridFile) currentBrandPriceGrid = currentPriceGridFile.find((priceGrid: priceGridBrand) => priceGrid.idTypeBrand === idTypeBrand);\n if (currentBrandPriceGrid) currentPriceGrid = currentBrandPriceGrid?.price.find((price: priceGrid) => price.idPrestationList.includes(idPrestationList));\n return currentPriceGrid;\n};\n\nconst calculatePrestationPriceWithPriceGrid = (idPrestationList: number, endDate: string, NbrMonth: number, turnover: number, rentsNumber: number, employeesNumber: number, associatesNumber: number, idTypeBrand: number, idVatRegime: number, pastBalanceSheet: boolean, isYearly: boolean, totalMonth: number, idTaxSystem: number, idLegalForm: number, balanceSheetOffered: number = 0): { totalPrestation: number, reduceMonth: number, canBeCreated: boolean, monthNbr: number, price: number } => {\n let totalPrestation: number = 0;\n let reduceMonth: number = 0;\n let monthNbr: number = NbrMonth;\n let yearlyPrice: number | undefined;\n let finalMonthlyPrice: number | undefined;\n let canBeCreated: boolean = true;\n let recalculateMonthly: boolean = false;\n\n /* Récupération de la grille tarifaire */\n const currentPriceGrid: priceGrid | undefined = getPriceGrid(idTypeBrand, idPrestationList);\n \n if (currentPriceGrid) {\n let monthlyPrice: number | undefined;\n let vatRegimePrice: number | undefined;\n let taxSystemPrice: number | undefined;\n\n /* Gestion du régime de TVA */\n if (currentPriceGrid.vatRegimeMonthly && !isYearly) vatRegimePrice = currentPriceGrid.vatRegimeMonthly?.find(regime => regime.type === idVatRegime)?.price;\n else if (currentPriceGrid.vatRegimeYearly && isYearly) vatRegimePrice = currentPriceGrid.vatRegimeYearly?.find(regime => regime.type === idVatRegime)?.price;\n\n /* Gestion du Régime d'imposition */\n if (currentPriceGrid.taxSystem && idTaxSystem) taxSystemPrice = currentPriceGrid.taxSystem?.find(tax => tax.id === idTaxSystem)?.price;\n\n /* Gestion des montants */\n if (currentPriceGrid.turnoverMonthly && !isYearly) monthlyPrice = currentPriceGrid.turnoverMonthly?.find(turn => turnover < turn.turnoverValue)?.price;\n else if (currentPriceGrid.properties) monthlyPrice = currentPriceGrid.properties?.find(property => property.amount === rentsNumber)?.price;\n else if (currentPriceGrid.employee) {\n monthlyPrice = currentPriceGrid.employee?.find(emp => emp.amountMinimum <= employeesNumber && emp.amountMaximum >= employeesNumber)?.price;\n monthlyPrice = monthlyPrice ? monthlyPrice * employeesNumber : 0;\n } else if (currentPriceGrid.turnoverYearly && isYearly) yearlyPrice = currentPriceGrid.turnoverYearly?.find(turn => turnover < turn.turnoverValue)?.price;\n else if (!pastBalanceSheet && currentPriceGrid.turnoverCreatedYear) yearlyPrice = currentPriceGrid.turnoverCreatedYear?.find(turn => turnover < turn.turnoverValue)?.price;\n else if (pastBalanceSheet && currentPriceGrid.turnoverPastYear) yearlyPrice = currentPriceGrid.turnoverPastYear?.find(turn => turnover < turn.turnoverValue)?.price;\n else if (currentPriceGrid.partner) yearlyPrice = currentPriceGrid.partner?.find(part => part.amountMinimum <= associatesNumber && part.amountMaximum >= associatesNumber)?.price;\n else if (currentPriceGrid.legalForm) yearlyPrice = currentPriceGrid.legalForm?.find(form => form.idLegalForm === idLegalForm)?.price;\n finalMonthlyPrice = (monthlyPrice ? monthlyPrice : 0) + (vatRegimePrice ? vatRegimePrice : 0) + (taxSystemPrice ? taxSystemPrice : 0);\n\n /* Gestion des mois */\n let cloturedPast: boolean = false;\n if (dayjs(endDate, 'YYYY-MM-DD').subtract(15, 'day').isBefore(dayjs())) cloturedPast = true;\n let monthlyNbrList: monthlyNbr[] | undefined;\n let monthlyNbr: monthlyNbr | undefined;\n if (currentPriceGrid.monthlyNbr) {\n monthlyNbrList = currentPriceGrid.monthlyNbr?.filter(el => el.closingType.includes(cloturedPast ? ClosingType.OUTDATED : ClosingType.IN_PROGRESS));\n if (monthlyNbrList) {\n monthlyNbr = monthlyNbrList.find(el => (el.minimum <= monthNbr) && (monthNbr <= el.maximum));\n if (monthlyNbr) {\n monthNbr = monthlyNbr.value;\n }\n }\n }\n if (totalMonth > 0) {\n if (monthlyNbr && ((monthNbr - totalMonth) < monthlyNbr?.minimum)) canBeCreated = false; \n monthNbr = monthNbr - totalMonth;\n recalculateMonthly = true;\n }\n\n reduceMonth = (monthNbr === NbrMonth - totalMonth ? totalMonth : 0);\n\n if (balanceSheetOffered > 0) {\n yearlyPrice = undefined;\n recalculateMonthly = false;\n finalMonthlyPrice = balanceSheetOffered / monthNbr;\n }\n \n /* Prix Final */\n totalPrestation = (yearlyPrice ? yearlyPrice : finalMonthlyPrice * monthNbr);\n }\n return { totalPrestation, reduceMonth, canBeCreated, monthNbr: yearlyPrice ? 0 : recalculateMonthly ? NbrMonth : monthNbr, price: yearlyPrice ? yearlyPrice : recalculateMonthly ? (totalPrestation / NbrMonth) : (finalMonthlyPrice ? finalMonthlyPrice : 0) };\n};\n\nconst calculatePrestationPriceWithPrestationList = (prestationList: IPrestationList): number => {\n let totalPrestation: number = 0;\n\n totalPrestation = prestationList?.price || 0;\n\n return totalPrestation;\n};\n\nconst calculatePrestationPrice = (idPrestationList: number, prestationList: IPrestationList, endDate: string, NbrMonth: number, turnover: number, rentsNumber: number, employeesNumber: number, associatesNumber: number, idTypeBrand: number, idVatRegime: number, pastBalanceSheet: boolean, optionsList: number[], totalPercentage: number, totalAmount: number, totalMonth: number, isWithApplicationFees: boolean, idTaxSystem: number, idLegalForm: number, isYearly: boolean = false, balanceSheetOffered: number = 0): { totalPrestation: number, reduceMonth: number, canBeCreated: boolean, calculDetail: string, monthlyPrice: string, price: number } => {\n let totalPrestation: number = 0;\n let reduceMonth: number = 0;\n let canBeCreated: boolean = true;\n let monthNbr: number = 0;\n let price: number = 0;\n let totalWithReduce: { totalPrestation: number, reduceMonth: number, canBeCreated: boolean, monthNbr: number, price: number } = { totalPrestation: 0, reduceMonth: 0, canBeCreated: true, monthNbr: 0, price: 0 };\n\n /* Gestion du prix en fonction de la prestation */\n if (\n [\n PrestationType.COMPTA_PRO,\n PrestationType.COMPTA_PRO_EXPRESS,\n PrestationType.COMPTA_ENTREPRISE,\n PrestationType.COMPTA_ENTREPRISE_EXPRESS,\n PrestationType.COMPTA_SCI,\n PrestationType.COMPTA_SCI_EXPRESS,\n PrestationType.BILAN_PREVISIONNEL,\n PrestationType.COMPTA_PREMIUM,\n PrestationType.COMPTA_POURCENTAGE_PREMIUM,\n PrestationType.COMPTA_POURCENTAGE_PREMIUM_EXPRESS,\n PrestationType.COMPTA_POURCENTAGE,\n PrestationType.COMPTA_POURCENTAGE_EXPRESS,\n PrestationType.SOCIAL,\n PrestationType.GESTION_JURIDIQUE,\n PrestationType.COMPTA_PRO_COMPTASTART,\n PrestationType.COMPTA_PRO_COMPTASTART_EXPRESS,\n PrestationType.COMPTA_EI_KLEMS,\n PrestationType.COMPTA_EI_KLEMS_EXPRESS,\n PrestationType.COMPTA_MICRO_KLEMS,\n PrestationType.COMPTA_MICRO_KLEMS_EXPRESS,\n PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS,\n PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS_EXPRESS,\n PrestationType.STATUTS_OPTION_2,\n ].includes(idPrestationList)\n ) {\n totalWithReduce = calculatePrestationPriceWithPriceGrid(idPrestationList, endDate, NbrMonth, turnover, rentsNumber, employeesNumber, associatesNumber, idTypeBrand, idVatRegime, pastBalanceSheet, isYearly, totalMonth, idTaxSystem, idLegalForm, balanceSheetOffered);\n totalPrestation = totalWithReduce.totalPrestation;\n reduceMonth = totalWithReduce.reduceMonth;\n canBeCreated = totalWithReduce.canBeCreated;\n monthNbr = totalWithReduce.monthNbr;\n price = totalWithReduce.price;\n } else {\n totalPrestation = calculatePrestationPriceWithPrestationList(prestationList);\n if ([PrestationType.CREATION_SOCIETE].includes(idPrestationList)) totalPrestation += 50;\n }\n if (totalAmount > 0) totalPrestation = totalPrestation - totalAmount;\n if (totalPercentage > 0) totalPrestation = totalPrestation - (totalPrestation * (totalPercentage / 100));\n if (prestationList.minimumPrice && totalPrestation < prestationList.minimumPrice) totalPrestation = prestationList.minimumPrice;\n /* Gestion des options */\n let OptionTotalPrice: number = 0;\n if (optionsList.length) {\n optionsList.forEach((optionId) => {\n const optionPrice: number | undefined = Object.values(PrestationOption).find((option) => option.id === optionId)?.price;\n if (optionPrice) OptionTotalPrice += optionPrice;\n });\n }\n totalPrestation += (OptionTotalPrice ? OptionTotalPrice : 0);\n\n if (isWithApplicationFees) totalPrestation += 50;\n\n const calculDetail = `${monthNbr > 0 ? monthNbr + ' mois x ' + (Math.round(price * 100) / 100) + '€' : (Math.round(price * 100) / 100) + '€'} ${totalAmount > 0 ? '- ' + totalAmount + '€' : ''} ${totalPercentage > 0 ? '- ' + totalPercentage + '%' : ''} ${isWithApplicationFees ? '+ 50€' : ''}`;\n\n return { totalPrestation, reduceMonth, canBeCreated, calculDetail, monthlyPrice: monthNbr > 0 ? (Math.round(price * 100) / 100) + '€/mois' : (Math.round(price * 100) / 100) + '€', price };\n};\n\nconst getPrestationOptions = (idPrestationList: number): PrestationOptionType[] => {\n const PrestationOptionList: PrestationOptionType[] = Object.values(PrestationOption).filter(option => option.brand.includes(getBrandNameByNodeEnv(process.env.NODE_ENV)));\n return PrestationOptionList.filter(option => option.prestationList.includes(idPrestationList));\n};\n\nconst isAbleToUpdatePrice = (idTypeBrand: number, idPrestationList: number, turnover: number, pastBalanceSheet: boolean): boolean => {\n /* Récupération de la grille tarifaire */\n const currentPriceGrid: priceGrid | undefined = getPriceGrid(idTypeBrand, idPrestationList);\n if (currentPriceGrid) {\n // @ts-ignore\n if ([PrestationType.COMPTA_PREMIUM, PrestationType.COMPTA_POURCENTAGE_PREMIUM, PrestationType.COMPTA_POURCENTAGE_PREMIUM_EXPRESS].includes(idPrestationList) && currentPriceGrid.turnoverMonthly[currentPriceGrid.turnoverMonthly.length - 2].turnoverValue < turnover) return true;\n // @ts-ignore\n else if ([PrestationType.COMPTA_POURCENTAGE, PrestationType.COMPTA_POURCENTAGE_EXPRESS].includes(idPrestationList) && currentPriceGrid.turnoverMonthly[currentPriceGrid.turnoverMonthly.length - 1].turnoverValue < turnover) return true;\n // @ts-ignore\n else if ([PrestationType.BILAN_PREVISIONNEL].includes(idPrestationList) && !pastBalanceSheet && currentPriceGrid.turnoverCreatedYear[currentPriceGrid.turnoverCreatedYear.length - 1].turnoverValue < turnover) return true;\n // @ts-ignore\n else if ([PrestationType.BILAN_PREVISIONNEL].includes(idPrestationList) && pastBalanceSheet && currentPriceGrid.turnoverPastYear[currentPriceGrid.turnoverPastYear.length - 1].turnoverValue < turnover) return true;\n else return false;\n }\n return false;\n\n};\n\nexport {\n isOtherAccountingMissions, isOtherJuridicalMissions, isAdditionalPresta, isOtherSocialMission, isOnlyPrevi, isOnlySocial, isOnlyJuridic, isCreation, isFromStatutsExpress, isExpress, calculateScoringOfPrestation, calculatePrestationPrice, getPrestationOptions, isAbleToUpdatePrice, calculatePrestationPriceWithPriceGrid,\n};"]}
|
|
1
|
+
{"version":3,"file":"prestation.js","sourceRoot":"","sources":["../../../ts/utils/prestation.ts"],"names":[],"mappings":";;;AACA,yCAA0C;AAC1C,iEAAgF;AAChF,qEAAwF;AACxF,2EAAwE;AACxE,6EAA0E;AAC1E,2EAAwE;AACxE,mFAAgF;AAChF,2DAAwD;AACxD,qCAAiD;AACjD,+BAA+B;AAC/B,yCAA4C;AA0E5C,MAAM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,gBAAgB,CAAC,gBAAgB,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,aAAa,GAAG,QAAQ;YAAE,OAAO,IAAI,CAAC;;YAChN,OAAO,KAAK,CAAC;KACnB;IACD,OAAO,KAAK,CAAC;AAEf,CAAC,CAAC;AAGoQ,kDAAmB","sourcesContent":["import { IExercice, IPrestation, IPrestationList } from '../types';\nimport { intersection } from './noLodash';\nimport { PrestationDetail, PrestationType } from '../types/Enum/PrestationType';\nimport { PrestationOptionType, PrestationOption } from '../types/Enum/PrestationOption';\nimport { PriceGridClementine } from '../types/Enum/PriceGridClementine';\nimport { PriceGridPourcentage } from '../types/Enum/PriceGridPourcentage';\nimport { PriceGridLegalstart } from '../types/Enum/PriceGridLegalstart';\nimport { PriceGridStatutsExpress } from '../types/Enum/PriceGridStatutsExpress';\nimport { ClosingType } from '../types/Enum/ClosingType';\nimport { getBrandNameByNodeEnv } from './brands';\nimport * as dayjs from 'dayjs';\nimport { exerciceNumber } from './exercice';\n\ntype priceGridBrand = {\n idTypeBrand: number,\n price: priceGrid[]\n};\n\ntype priceGrid = {\n idPrestationList: number[],\n monthlyNbr?: monthlyNbr[],\n exerciceNbr?: exerciceNbr[],\n turnoverCreatedYear?: turnover[],\n turnoverPastYear?: turnover[],\n turnoverMonthly?: turnover[],\n turnoverYearly?: turnover[],\n employee?: employee[],\n partner?: employee[],\n properties?: propertie[],\n vatRegimeMonthly?: vatRegime[],\n vatRegimeYearly?: vatRegime[],\n taxSystem?: taxSystem[],\n legalForm?: legalForm[],\n employeeByLegalForm?: employeeByLegalForm[],\n};\n\ntype monthlyNbr = {\n minimum: number,\n maximum: number,\n value: number,\n closingType: number[],\n};\n\ntype exerciceNbr = {\n minimum: number,\n maximum: number,\n price: number,\n};\n\ntype turnover = {\n turnoverValue: number,\n price: number,\n};\n\ntype legalForm = {\n idLegalForm: number,\n price: number,\n};\n\ntype employee = {\n amountMinimum: number,\n amountMaximum: number,\n price: number,\n};\n\ntype employeeByLegalForm = {\n idLegalForm: number,\n price: number,\n};\n\ntype propertie = {\n amount: number,\n price: number,\n};\n\ntype vatRegime = {\n type: number,\n price: number,\n};\n\ntype taxSystem = {\n id: number,\n price: number,\n};\n\nconst isOtherAccountingMissions = (idPrestationList: number): boolean => [\n PrestationType.PREVISIONNEL,\n PrestationType.BILAN_INTERMEDIAIRE,\n PrestationType.AVANCE_OU_ABANDON_COMPTE_COURANT_ASSOCIE,\n PrestationType.AUTRE_MISSION_COMPTABLE,\n PrestationType.TVS,\n PrestationType.ETUDE_FISCALE,\n PrestationType.BILAN_PREVISIONNEL].includes(idPrestationList);\n\nconst isOtherJuridicalMissions = (isJuridique:boolean, isCatalog:boolean, idPrestationList: number): boolean => idPrestationList !== PrestationType.GESTION_JURIDIQUE && isCatalog && isJuridique;\n\nconst isOtherSocialMission = (idPrestationList: number): boolean => idPrestationList === PrestationType.AUTRE_MISSION_SOCIALE_HORS_PAIE;\n\nconst isAdditionalPresta = (hidden:boolean, isCatalog:boolean): boolean => !hidden && isCatalog;\n\nconst isOnlyPrevi = (idPrestationList: number[]):boolean => !idPrestationList.filter((idPL:number) => ![PrestationType.PREVISIONNEL, PrestationType.BILAN_PREVISIONNEL, PrestationType.PV_AG].includes(idPL)).length;\n\nconst isOnlySocial = (idPrestationList: number[]):boolean => !idPrestationList.filter((idPL:number) => ![PrestationType.FRUCTUPAIE, PrestationType.SOCIAL].includes(idPL)).length;\n\nconst isOnlyJuridic = (idPrestationList: number[]):boolean => !idPrestationList.filter((idPL:number) => ![PrestationType.GESTION_JURIDIQUE].includes(idPL)).length;\n\nconst isCreation = (idPrestationList: number[]):boolean => !!intersection(idPrestationList, [PrestationType.CREATION_SOCIETE, PrestationType.STATUTS_FREE, PrestationType.STATUTS_OPTION_1, PrestationType.STATUTS_OPTION_2, PrestationType.STATUTS_OPTION_AE]).length;\n\nconst isFromStatutsExpress = (idPrestationList: number[]):boolean => !idPrestationList.filter((idPL:number) => ![PrestationType.STATUTS_FREE, PrestationType.STATUTS_OPTION_1, PrestationType.STATUTS_OPTION_2, PrestationType.STATUTS_OPTION_AE].includes(idPL)).length;\n\nconst isExpress = (idPrestationList: number):boolean => {\n const prestationDetailValues = Object.values(PrestationDetail) as any;\n const prestaList = prestationDetailValues.find((pr:any) => pr.id === idPrestationList);\n return !!prestaList.isBack;\n};\n\nconst calculateScoringOfPrestation = (idPrestationType: PrestationType, prestations: IPrestation[]): number => {\n const prestationsSignedPaid = prestations.filter((prestation) => prestation.paid && prestation.signed && prestation.terminationList === null);\n\n // Get the list of prestations that are half price\n const prestationHalfPriceList = Object.values(PrestationDetail).filter((p) => p.isComptable && !p.isCatalog);\n const prestationHalfPriceIds = prestationHalfPriceList.map((t) => t.id);\n\n // Get the number of points for the new prestation\n const prestaDetails = Object.values(PrestationDetail).find((prestaDetail) => prestaDetail.id === idPrestationType);\n const numberPoint = prestaDetails?.point || 0;\n\n // Get list of prestations that are already done and check if one of them is in the list of prestations that are half price\n const prestationsExistIds = prestationsSignedPaid.map((prestation) => prestation.idPrestationList);\n const prestationHalfPriceAlreadyDoneIds = prestationsExistIds.filter((id) => prestationHalfPriceIds.includes(id));\n\n // If one of the prestations already done is in the list of prestations that are half price and if the idPrestationType is in prestationHalfPriceIds, return 50% of points\n if (prestationHalfPriceAlreadyDoneIds.length && prestationHalfPriceIds.includes(idPrestationType)) return Math.floor(numberPoint * 0.3);\n\n return numberPoint;\n};\n\nconst getPriceGrid = (idTypeBrand: number, idPrestationList: number): priceGrid | undefined => {\n let currentBrandPriceGrid: priceGridBrand | undefined;\n let currentPriceGrid: priceGrid | undefined;\n\n const currentEnvName = getBrandNameByNodeEnv(process.env.NODE_ENV);\n const listEnvEnum = {\n PriceGridClementine, PriceGridPourcentage, PriceGridLegalstart, PriceGridStatutsExpress,\n };\n // @ts-ignore\n const currentPriceGridFile: priceGridBrand[] = listEnvEnum[`PriceGrid${currentEnvName}`];\n if (currentPriceGridFile) currentBrandPriceGrid = currentPriceGridFile.find((priceGrid: priceGridBrand) => priceGrid.idTypeBrand === idTypeBrand);\n if (currentBrandPriceGrid) currentPriceGrid = currentBrandPriceGrid?.price.find((price: priceGrid) => price.idPrestationList.includes(idPrestationList));\n return currentPriceGrid;\n};\n\nconst calculatePrestationPriceWithPriceGrid = (\n idPrestationList: number, \n endDate: string, \n NbrMonth: number, \n turnover: number, \n rentsNumber: number, \n employeesNumber: number, \n associatesNumber: number, \n idTypeBrand: number, \n idVatRegime: number, \n pastBalanceSheet: boolean, \n isYearly: boolean, \n totalMonth: number, \n idTaxSystem: number, \n idLegalForm: number, \n exerciceNbr: number,\n balanceSheetOffered: number = 0,\n): { \n totalPrestation: number, \n reduceMonth: number, \n canBeCreated: boolean, \n monthNbr: number, \n price: number \n} => {\n let totalPrestation: number = 0;\n let reduceMonth: number = 0;\n let monthNbr: number = NbrMonth;\n let yearlyPrice: number | undefined;\n let finalMonthlyPrice: number | undefined;\n let canBeCreated: boolean = true;\n let recalculateMonthly: boolean = false;\n\n /* Récupération de la grille tarifaire */\n const currentPriceGrid: priceGrid | undefined = getPriceGrid(idTypeBrand, idPrestationList);\n \n if (currentPriceGrid) {\n let monthlyPrice: number | undefined;\n let vatRegimePrice: number | undefined;\n let taxSystemPrice: number | undefined;\n\n /* Gestion du régime de TVA */\n if (currentPriceGrid.vatRegimeMonthly && !isYearly) vatRegimePrice = currentPriceGrid.vatRegimeMonthly?.find(regime => regime.type === idVatRegime)?.price;\n else if (currentPriceGrid.vatRegimeYearly && isYearly) vatRegimePrice = currentPriceGrid.vatRegimeYearly?.find(regime => regime.type === idVatRegime)?.price;\n\n /* Gestion du Régime d'imposition */\n if (currentPriceGrid.taxSystem && idTaxSystem) taxSystemPrice = currentPriceGrid.taxSystem?.find(tax => tax.id === idTaxSystem)?.price;\n\n /* Gestion des montants */\n if (currentPriceGrid.turnoverMonthly && !isYearly) monthlyPrice = currentPriceGrid.turnoverMonthly?.find(turn => turnover < turn.turnoverValue)?.price;\n else if (currentPriceGrid.properties) monthlyPrice = currentPriceGrid.properties?.find(property => property.amount === rentsNumber)?.price;\n else if (currentPriceGrid.employee) {\n monthlyPrice = currentPriceGrid.employee?.find(emp => emp.amountMinimum <= employeesNumber && emp.amountMaximum >= employeesNumber)?.price;\n monthlyPrice = monthlyPrice ? monthlyPrice * employeesNumber : 0;\n } else if (currentPriceGrid.employeeByLegalForm) {\n monthlyPrice = currentPriceGrid.employeeByLegalForm?.find(emp => emp.idLegalForm === idLegalForm)?.price;\n monthlyPrice = monthlyPrice ? monthlyPrice * employeesNumber : 0;\n } else if (currentPriceGrid.turnoverYearly && isYearly) yearlyPrice = currentPriceGrid.turnoverYearly?.find(turn => turnover < turn.turnoverValue)?.price;\n else if (!pastBalanceSheet && currentPriceGrid.turnoverCreatedYear) yearlyPrice = currentPriceGrid.turnoverCreatedYear?.find(turn => turnover < turn.turnoverValue)?.price;\n else if (pastBalanceSheet && currentPriceGrid.turnoverPastYear) yearlyPrice = currentPriceGrid.turnoverPastYear?.find(turn => turnover < turn.turnoverValue)?.price;\n else if (currentPriceGrid.partner) yearlyPrice = currentPriceGrid.partner?.find(part => part.amountMinimum <= associatesNumber && part.amountMaximum >= associatesNumber)?.price;\n else if (currentPriceGrid.legalForm) yearlyPrice = currentPriceGrid.legalForm?.find(form => form.idLegalForm === idLegalForm)?.price;\n else if (currentPriceGrid.exerciceNbr) yearlyPrice = currentPriceGrid.exerciceNbr?.find(el => el.minimum <= exerciceNbr && exerciceNbr <= el.maximum )?.price;\n finalMonthlyPrice = (monthlyPrice ? monthlyPrice : 0) + (vatRegimePrice ? vatRegimePrice : 0) + (taxSystemPrice ? taxSystemPrice : 0);\n\n /* Gestion des mois */\n let cloturedPast: boolean = false;\n if (dayjs(endDate, 'YYYY-MM-DD').subtract(15, 'day').isBefore(dayjs())) cloturedPast = true;\n let monthlyNbrList: monthlyNbr[] | undefined;\n let monthlyNbr: monthlyNbr | undefined;\n if (currentPriceGrid.monthlyNbr) {\n monthlyNbrList = currentPriceGrid.monthlyNbr?.filter(el => el.closingType.includes(cloturedPast ? ClosingType.OUTDATED : ClosingType.IN_PROGRESS));\n if (monthlyNbrList) {\n monthlyNbr = monthlyNbrList.find(el => (el.minimum <= monthNbr) && (monthNbr <= el.maximum));\n if (monthlyNbr) {\n monthNbr = monthlyNbr.value;\n }\n }\n }\n if (totalMonth > 0) {\n if (monthlyNbr && ((monthNbr - totalMonth) < monthlyNbr?.minimum)) canBeCreated = false; \n monthNbr = monthNbr - totalMonth;\n recalculateMonthly = true;\n }\n\n reduceMonth = (monthNbr === NbrMonth - totalMonth ? totalMonth : 0);\n\n if (balanceSheetOffered > 0) {\n yearlyPrice = undefined;\n recalculateMonthly = false;\n finalMonthlyPrice = balanceSheetOffered / monthNbr;\n }\n \n /* Prix Final */\n totalPrestation = (yearlyPrice ? yearlyPrice : finalMonthlyPrice * monthNbr);\n }\n return { totalPrestation, reduceMonth, canBeCreated, monthNbr: yearlyPrice ? 0 : recalculateMonthly ? NbrMonth : monthNbr, price: yearlyPrice ? yearlyPrice : recalculateMonthly ? (totalPrestation / NbrMonth) : (finalMonthlyPrice ? finalMonthlyPrice : 0) };\n};\n\nconst calculatePrestationPriceWithPrestationList = (prestationList: IPrestationList): number => {\n let totalPrestation: number = 0;\n\n totalPrestation = prestationList?.price || 0;\n\n return totalPrestation;\n};\n\nconst calculatePrestationPrice = (\n idPrestationList: number, \n prestationList: IPrestationList, \n endDate: string, \n NbrMonth: number, \n turnover: number, \n rentsNumber: number, \n employeesNumber: number, \n associatesNumber: number, \n idTypeBrand: number, \n idVatRegime: number, \n pastBalanceSheet: boolean, \n optionsList: number[], \n totalPercentage: number, \n totalAmount: number, \n totalMonth: number, \n isWithApplicationFees: boolean, \n idTaxSystem: number, \n idLegalForm: number, \n isYearly: boolean = false, \n balanceSheetOffered: number = 0,\n exerciceList: IExercice[] = [],\n): { \n totalPrestation: number, \n reduceMonth: number, \n canBeCreated: boolean, \n calculDetail: string, \n monthlyPrice: string, \n price: number \n} => {\n let totalPrestation: number = 0;\n let reduceMonth: number = 0;\n let canBeCreated: boolean = true;\n let monthNbr: number = 0;\n let price: number = 0;\n let totalWithReduce: { totalPrestation: number, reduceMonth: number, canBeCreated: boolean, monthNbr: number, price: number } = { totalPrestation: 0, reduceMonth: 0, canBeCreated: true, monthNbr: 0, price: 0 };\n\n /* Gestion du prix en fonction de la prestation */\n if (\n [\n PrestationType.COMPTA_PRO,\n PrestationType.COMPTA_PRO_EXPRESS,\n PrestationType.COMPTA_ENTREPRISE,\n PrestationType.COMPTA_ENTREPRISE_EXPRESS,\n PrestationType.COMPTA_SCI,\n PrestationType.COMPTA_SCI_EXPRESS,\n PrestationType.BILAN_PREVISIONNEL,\n PrestationType.COMPTA_PREMIUM,\n PrestationType.COMPTA_POURCENTAGE_PREMIUM,\n PrestationType.COMPTA_POURCENTAGE_PREMIUM_EXPRESS,\n PrestationType.COMPTA_POURCENTAGE,\n PrestationType.COMPTA_POURCENTAGE_EXPRESS,\n PrestationType.SOCIAL,\n PrestationType.GESTION_JURIDIQUE,\n PrestationType.COMPTA_PRO_COMPTASTART,\n PrestationType.COMPTA_PRO_COMPTASTART_EXPRESS,\n PrestationType.COMPTA_EI_KLEMS,\n PrestationType.COMPTA_EI_KLEMS_EXPRESS,\n PrestationType.COMPTA_MICRO_KLEMS,\n PrestationType.COMPTA_MICRO_KLEMS_EXPRESS,\n PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS,\n PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS_EXPRESS,\n PrestationType.STATUTS_OPTION_2,\n ].includes(idPrestationList)\n ) {\n let exerciceNbr: number = 0;\n if (exerciceList.length) exerciceNbr = exerciceNumber(dayjs(endDate, 'YYYY-MM-DD').toDate(), exerciceList);\n totalWithReduce = calculatePrestationPriceWithPriceGrid(\n idPrestationList, \n endDate, \n NbrMonth, \n turnover, \n rentsNumber, \n employeesNumber, \n associatesNumber, \n idTypeBrand, \n idVatRegime, \n pastBalanceSheet, \n isYearly, \n totalMonth, \n idTaxSystem, \n idLegalForm, \n exerciceNbr,\n balanceSheetOffered,\n );\n totalPrestation = totalWithReduce.totalPrestation;\n reduceMonth = totalWithReduce.reduceMonth;\n canBeCreated = totalWithReduce.canBeCreated;\n monthNbr = totalWithReduce.monthNbr;\n price = totalWithReduce.price;\n } else {\n totalPrestation = calculatePrestationPriceWithPrestationList(prestationList);\n if ([PrestationType.CREATION_SOCIETE].includes(idPrestationList)) totalPrestation += 50;\n }\n if (totalAmount > 0) totalPrestation = totalPrestation - totalAmount;\n if (totalPercentage > 0) totalPrestation = totalPrestation - (totalPrestation * (totalPercentage / 100));\n if (prestationList.minimumPrice && totalPrestation < prestationList.minimumPrice) totalPrestation = prestationList.minimumPrice;\n /* Gestion des options */\n let OptionTotalPrice: number = 0;\n if (optionsList.length) {\n optionsList.forEach((optionId) => {\n const optionPrice: number | undefined = Object.values(PrestationOption).find((option) => option.id === optionId)?.price;\n if (optionPrice) OptionTotalPrice += optionPrice;\n });\n }\n totalPrestation += (OptionTotalPrice ? OptionTotalPrice : 0);\n\n if (isWithApplicationFees) totalPrestation += 50;\n\n const calculDetail = `${monthNbr > 0 ? monthNbr + ' mois x ' + (Math.round(price * 100) / 100) + '€' : (Math.round(price * 100) / 100) + '€'} ${totalAmount > 0 ? '- ' + totalAmount + '€' : ''} ${totalPercentage > 0 ? '- ' + totalPercentage + '%' : ''} ${isWithApplicationFees ? '+ 50€' : ''}`;\n\n return { totalPrestation, reduceMonth, canBeCreated, calculDetail, monthlyPrice: monthNbr > 0 ? (Math.round(price * 100) / 100) + '€/mois' : (Math.round(price * 100) / 100) + '€', price };\n};\n\nconst getPrestationOptions = (idPrestationList: number): PrestationOptionType[] => {\n const PrestationOptionList: PrestationOptionType[] = Object.values(PrestationOption).filter(option => option.brand.includes(getBrandNameByNodeEnv(process.env.NODE_ENV)));\n return PrestationOptionList.filter(option => option.prestationList.includes(idPrestationList));\n};\n\nconst isAbleToUpdatePrice = (idTypeBrand: number, idPrestationList: number, turnover: number, pastBalanceSheet: boolean): boolean => {\n /* Récupération de la grille tarifaire */\n const currentPriceGrid: priceGrid | undefined = getPriceGrid(idTypeBrand, idPrestationList);\n if (currentPriceGrid) {\n // @ts-ignore\n if ([PrestationType.COMPTA_PREMIUM, PrestationType.COMPTA_POURCENTAGE_PREMIUM, PrestationType.COMPTA_POURCENTAGE_PREMIUM_EXPRESS].includes(idPrestationList) && currentPriceGrid.turnoverMonthly[currentPriceGrid.turnoverMonthly.length - 2].turnoverValue < turnover) return true;\n // @ts-ignore\n else if ([PrestationType.COMPTA_POURCENTAGE, PrestationType.COMPTA_POURCENTAGE_EXPRESS].includes(idPrestationList) && currentPriceGrid.turnoverMonthly[currentPriceGrid.turnoverMonthly.length - 1].turnoverValue < turnover) return true;\n // @ts-ignore\n else if ([PrestationType.BILAN_PREVISIONNEL].includes(idPrestationList) && !pastBalanceSheet && currentPriceGrid.turnoverCreatedYear[currentPriceGrid.turnoverCreatedYear.length - 1].turnoverValue < turnover) return true;\n // @ts-ignore\n else if ([PrestationType.BILAN_PREVISIONNEL].includes(idPrestationList) && pastBalanceSheet && currentPriceGrid.turnoverPastYear[currentPriceGrid.turnoverPastYear.length - 1].turnoverValue < turnover) return true;\n else return false;\n }\n return false;\n\n};\n\nexport {\n isOtherAccountingMissions, isOtherJuridicalMissions, isAdditionalPresta, isOtherSocialMission, isOnlyPrevi, isOnlySocial, isOnlyJuridic, isCreation, isFromStatutsExpress, isExpress, calculateScoringOfPrestation, calculatePrestationPrice, getPrestationOptions, isAbleToUpdatePrice, calculatePrestationPriceWithPriceGrid,\n};"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"century23.d.ts","sourceRoot":"","sources":["../../../../../ts/utils/vat/3517/century23.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAChG,OAAO,EAAE,gBAAgB,EAAE,MAAM,kDAAkD,CAAC;AAKpF,OAAO,EACL,gBAAgB,EAAkB,gBAAgB,EACnD,MAAM,gBAAgB,CAAC;AAExB,wBAAgB,4BAA4B,CAAC,iBAAiB,EAAE,gBAAgB,EAAE,EAAE,OAAO,EAAE,qBAAqB,GAAG,cAAc,
|
|
1
|
+
{"version":3,"file":"century23.d.ts","sourceRoot":"","sources":["../../../../../ts/utils/vat/3517/century23.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAChG,OAAO,EAAE,gBAAgB,EAAE,MAAM,kDAAkD,CAAC;AAKpF,OAAO,EACL,gBAAgB,EAAkB,gBAAgB,EACnD,MAAM,gBAAgB,CAAC;AAExB,wBAAgB,4BAA4B,CAAC,iBAAiB,EAAE,gBAAgB,EAAE,EAAE,OAAO,EAAE,qBAAqB,GAAG,cAAc,CAqVlI;AAED,wBAAgB,oCAAoC,CAAC,IAAI,EAAE,cAAc,GAAG,gBAAgB,CA4mC3F;AAED,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,cAAc,GAAG,gBAAgB,CA2JvF;AAED,eAAO,MAAM,wBAAwB,EAAE,gBAAgB,EA4HtD,CAAC"}
|
|
@@ -7,7 +7,7 @@ const lodash_1 = require("lodash");
|
|
|
7
7
|
const Vat_1 = require("../../../types/Enum/Vat");
|
|
8
8
|
const utils_1 = require("../utils");
|
|
9
9
|
function getCerfa3517Century23Payload(accountingEntries, payload) {
|
|
10
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39, _40, _41, _42, _43, _44, _45, _46, _47, _48, _49, _50, _51, _52, _53, _54, _55, _56, _57, _58, _59, _60, _61, _62, _63, _64, _65, _66, _67, _68, _69, _70, _71, _72, _73, _74, _75, _76, _77, _78, _79, _80, _81, _82, _83, _84, _85, _86, _87, _88, _89, _90, _91, _92, _93, _94, _95, _96, _97, _98, _99, _100, _101, _102, _103, _104, _105, _106, _107, _108, _109, _110, _111, _112, _113, _114, _115, _116, _117, _118, _119, _120, _121, _122, _123, _124, _125, _126, _127, _128, _129, _130, _131, _132, _133, _134, _135, _136, _137, _138, _139, _140, _141, _142, _143, _144, _145, _146, _147, _148, _149, _150, _151, _152, _153, _154, _155, _156, _157, _158, _159, _160, _161, _162, _163, _164, _165, _166, _167, _168, _169, _170, _171, _172, _173, _174, _175, _176, _177, _178, _179, _180, _181, _182, _183, _184, _185, _186, _187, _188, _189, _190, _191, _192, _193, _194
|
|
10
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39, _40, _41, _42, _43, _44, _45, _46, _47, _48, _49, _50, _51, _52, _53, _54, _55, _56, _57, _58, _59, _60, _61, _62, _63, _64, _65, _66, _67, _68, _69, _70, _71, _72, _73, _74, _75, _76, _77, _78, _79, _80, _81, _82, _83, _84, _85, _86, _87, _88, _89, _90, _91, _92, _93, _94, _95, _96, _97, _98, _99, _100, _101, _102, _103, _104, _105, _106, _107, _108, _109, _110, _111, _112, _113, _114, _115, _116, _117, _118, _119, _120, _121, _122, _123, _124, _125, _126, _127, _128, _129, _130, _131, _132, _133, _134, _135, _136, _137, _138, _139, _140, _141, _142, _143, _144, _145, _146, _147, _148, _149, _150, _151, _152, _153, _154, _155, _156, _157, _158, _159, _160, _161, _162, _163, _164, _165, _166, _167, _168, _169, _170, _171, _172, _173, _174, _175, _176, _177, _178, _179, _180, _181, _182, _183, _184, _185, _186, _187, _188, _189, _190, _191, _192, _193, _194;
|
|
11
11
|
const shouldHaveVatCode = (0, class_validator_1.isDefined)((_a = payload.setting) === null || _a === void 0 ? void 0 : _a.tvaCode) && (0, class_validator_1.isDefined)(payload.society.siret);
|
|
12
12
|
const shouldFillRefund = (0, lodash_1.round)((_c = (_b = payload.refund) === null || _b === void 0 ? void 0 : _b.asked) !== null && _c !== void 0 ? _c : 0) > 0;
|
|
13
13
|
const isNil = payload.isNil === true;
|
|
@@ -272,8 +272,8 @@ function getCerfa3517Century23Payload(accountingEntries, payload) {
|
|
|
272
272
|
recapitulation: {
|
|
273
273
|
balance: 0,
|
|
274
274
|
refund: isNil ? 0 : (0, lodash_1.round)((_182 = (_181 = payload.refund) === null || _181 === void 0 ? void 0 : _181.asked) !== null && _182 !== void 0 ? _182 : 0),
|
|
275
|
-
creditToReport:
|
|
276
|
-
imputedCredit: isNil ? 0 : (0, lodash_1.round)((
|
|
275
|
+
creditToReport: 0,
|
|
276
|
+
imputedCredit: isNil ? 0 : (0, lodash_1.round)((_184 = (_183 = payload.recapitulation) === null || _183 === void 0 ? void 0 : _183.imputedCredit) !== null && _184 !== void 0 ? _184 : 0),
|
|
277
277
|
ticRefunded: 0,
|
|
278
278
|
imputeOnVat: 0,
|
|
279
279
|
vatNetDue: 0,
|
|
@@ -287,20 +287,20 @@ function getCerfa3517Century23Payload(accountingEntries, payload) {
|
|
|
287
287
|
},
|
|
288
288
|
total: 0,
|
|
289
289
|
refund: {
|
|
290
|
-
creditRefundable: shouldFillRefund ? isNil ? 0 : (0, lodash_1.round)((
|
|
290
|
+
creditRefundable: shouldFillRefund ? isNil ? 0 : (0, lodash_1.round)((_186 = (_185 = payload.refund) === null || _185 === void 0 ? void 0 : _185.creditRefundable) !== null && _186 !== void 0 ? _186 : 0) : 0,
|
|
291
291
|
surplus: 0,
|
|
292
292
|
maximum: 0,
|
|
293
|
-
asked: isNil ? 0 : (0, lodash_1.round)((
|
|
293
|
+
asked: isNil ? 0 : (0, lodash_1.round)((_188 = (_187 = payload.refund) === null || _187 === void 0 ? void 0 : _187.asked) !== null && _188 !== void 0 ? _188 : 0),
|
|
294
294
|
reportable: 0,
|
|
295
295
|
place: shouldFillRefund ? payload.society.city : null,
|
|
296
296
|
date: shouldFillRefund ? dayjs().format('YYYY-MM-DD') : null,
|
|
297
297
|
shouldCredit: true,
|
|
298
298
|
shouldImpute: false,
|
|
299
|
-
name: shouldFillRefund ? `${(
|
|
299
|
+
name: shouldFillRefund ? `${(_189 = payload.owner) === null || _189 === void 0 ? void 0 : _189.firstname} ${(_190 = payload.owner) === null || _190 === void 0 ? void 0 : _190.lastname}` : null,
|
|
300
300
|
},
|
|
301
301
|
bankAccount: {
|
|
302
|
-
iban: (
|
|
303
|
-
bic: (
|
|
302
|
+
iban: (_192 = (_191 = payload.details) === null || _191 === void 0 ? void 0 : _191.iban) !== null && _192 !== void 0 ? _192 : null,
|
|
303
|
+
bic: (_194 = (_193 = payload.details) === null || _193 === void 0 ? void 0 : _193.bic) !== null && _194 !== void 0 ? _194 : null,
|
|
304
304
|
},
|
|
305
305
|
};
|
|
306
306
|
data.vat.total.tax = data.vat.normalRate20.tax + data.vat.normalRate20OnPetrol.tax + data.vat.reduceRate5Dot5.tax + data.vat.reduceRate10.tax + data.vat.reduceRate8Dot5.tax + data.vat.reduceRate2Dot1.tax + data.vat.particularRate.tax + data.vat.reducedRateOnPetrol.tax + data.vat.oldRate.tax + data.vat.energyBought.tax + data.vat.prestation.tax + data.vat.prestation2.tax + data.vat.saleOfImmobilization.tax + data.vat.ownDelivery.tax + data.vat.other.tax;
|
|
@@ -318,6 +318,7 @@ function getCerfa3517Century23Payload(accountingEntries, payload) {
|
|
|
318
318
|
data.tax.total = data.tax.onRetransmission + data.tax.onResultFarm + data.tax.payingVideo.reduced + data.tax.payingVideo.normal + data.tax.freeVideo.reduce + data.tax.freeVideo.normal + data.tax.bailiff + data.tax.contribution + data.tax.ofEmployer + data.tax.onBoardingCorse + data.tax.onBoarding + data.tax.development + data.tax.publicity + data.tax.onCompanySurplus + data.tax.onPublicElectricity + data.tax.onCanceledOrders + data.tax.specialDue + data.tax.slaughter + data.tax.cutting + data.tax.substances + data.tax.fishing + data.tax.fishingProduct + data.tax.agreement + data.tax.phyto.onCirculation + data.tax.phyto.onExportation + data.tax.phyto.total + data.tax.onPreciousMetal.normalRate + data.tax.onPreciousMetal.reduceRate + data.tax.onContribution + data.tax.onSaleAntiquity + data.tax.onYearly + data.tax.onCO2 + data.tax.oldVehicle + data.tax.profit + data.tax.social + data.tax.fromOtherCountry + data.tax.trottingRace + data.tax.gallopRace + data.tax.sportBetting + data.tax.sportBettingSocial + data.tax.sportBettingSport + data.tax.sportBettingCommercial + data.tax.sportBettingCommercialSocial + data.tax.sportBettingCommercialSport + data.tax.onlineGame + data.tax.onlineGameSocial + data.tax.fuelExploration + data.tax.nonAlcoolWithSugar + data.tax.nonAlcool + data.tax.nonAlcoolWithEdul + data.tax.mineralWater + data.tax.numericalService + data.tax.platform;
|
|
319
319
|
data.recapitulation.balance = data.net.balanceSurplus;
|
|
320
320
|
data.recapitulation.ticRefunded = data.tic.total.refund;
|
|
321
|
+
data.recapitulation.creditToReport = isNil ? 0 : data.recapitulation.balance - data.recapitulation.refund;
|
|
321
322
|
data.recapitulation.imputeOnVat = data.tic.total.imputed;
|
|
322
323
|
data.recapitulation.consumsion = data.tic.total.tax;
|
|
323
324
|
data.recapitulation.vatNetDue = data.net.balance;
|