Supprime les doublons de la liste des status

pull/301/head
Johan Girod 2018-08-23 11:49:51 +02:00
parent 955d8f1fd7
commit c25883877e
4 changed files with 42 additions and 44 deletions

View File

@ -19,7 +19,7 @@ type Props = {
const CreateCompany = ({ match, statusChooserCompleted, onChecklistInitialization, onItemCheck, companyCreationChecklist }: Props) => {
const microenterprise =
match.params.status && match.params.status.includes('Microenterprise')
match.params.status && match.params.status.includes('microenterprise')
const SARL = match.params.status && match.params.status.includes('SARL')
const EURL = match.params.status && match.params.status.includes('EURL')

View File

@ -33,6 +33,8 @@ const SetMainStatus = ({ history, possibleStatus }: Props) => {
Also called company in own name or company in a personal name. No
capital contribution is necessary. Private wealth and corporate
wealth are one.
<br/>
<StatusButton status='EI' history={history} />
</li>
)}
{possibleStatus.EIRL && (
@ -43,6 +45,8 @@ const SetMainStatus = ({ history, possibleStatus }: Props) => {
</strong>
Protects your property by assigning to your business a professional
heritage necessary for the activity.
<br/>
<StatusButton status='EIRL' history={history} />
</li>
)}
{possibleStatus.EURL && (
@ -53,28 +57,27 @@ const SetMainStatus = ({ history, possibleStatus }: Props) => {
</strong>
Company with only one partner. Liability is limited to the amount of
its contribution to the capital.
<br/>
<StatusButton status='EURL' history={history} />
</li>
)}
{possibleStatus['SARL (minority director)'] && (
{(possibleStatus['SARL (minority director)'] ||
possibleStatus['SARL (majority director)']) && (
<li>
<strong>
SARL - Société à responsabilité limitée (Limited corporation):{' '}
</strong>
Composed of at least 2 partners whose financial responsibility is
limited to the amounts of contributions in the capital. The minimum
capital is freely fixed in the statutes. The equality or minority
manager or college has the "salaried" status.
</li>
)}
{possibleStatus['SARL (majority director)'] && (
<li>
<strong>
SARL - Société à responsabilité limitée (Limited corporation):{' '}
</strong>
Composed of at least 2 partners whose financial responsibility is
limited to the amounts of contributions in the capital. The minimum
capital is freely fixed in the statutes. The majority manager or
college has the self employed status.
capital is freely fixed in the statutes. {
possibleStatus['SARL (minority director)'] &&
'The equality or minority manager or college has the "salaried" status.'}
{possibleStatus['SARL (majority director)'] &&
'The majority manager or college has the self employed status.'
}
<br/>
<StatusButton status='SARL' history={history} />
</li>
)}
{possibleStatus.SAS && (
@ -86,6 +89,9 @@ const SetMainStatus = ({ history, possibleStatus }: Props) => {
responsibility of the partners is limited to the amounts of
contributions in the capital. The minimum capital is freely fixed in
the statutes.
<br/>
<StatusButton status='SAS' history={history} />
</li>
)}
{possibleStatus.SASU && (
@ -96,6 +102,9 @@ const SetMainStatus = ({ history, possibleStatus }: Props) => {
</strong>Composed of only one associate. The financial
responsibility is limited to the amounts of contributions in the
capital. The minimum capital is freely fixed in the statutes.
<br/>
<StatusButton status='SASU' history={history} />
</li>
)}
{possibleStatus.SA && (
@ -104,6 +113,8 @@ const SetMainStatus = ({ history, possibleStatus }: Props) => {
composed of at least 2 shareholders. The only status that allows you
to be listed on the stock exchange (from 7 shareholders). The
minimum share capital is 37.000.
<br/>
<StatusButton status='SA' history={history} />
</li>
)}
{possibleStatus.SNC && (
@ -112,34 +123,25 @@ const SetMainStatus = ({ history, possibleStatus }: Props) => {
liability of the partners for the debts of the company is unified
(one partner only can be sued for the entire debt) and indefinite
(responsible on the entirety of their personnal wealth).
<br/>
<StatusButton status='SNC' history={history} />
</li>
)}
{possibleStatus['Microenterprise (option EIRL)'] && (
{(possibleStatus['Microenterprise (option EIRL)'] || possibleStatus['Microenterprise']) && (
<li>
<strong>Microenterprise (option EIRL):</strong> The micro-enterprise
<strong>Microenterprise:</strong> The micro-enterprise
is a sole proprietorship company, subject to a flat-rate scheme for
the calculation of taxes and the payment of social security
contributions. With the EIRL option, you have limited liability on
your losses.
contributions. {possibleStatus['Microenterprise (option EIRL)'] && 'With the EIRL option, you have limited liability on your losses.'}
<br/>
<StatusButton status='microenterprise' history={history} />
</li>
)}
{possibleStatus.Microenterprise && (
<li>
<strong>Microenterprise:</strong> The micro-enterprise is a sole
proprietorship subject to a flat-rate scheme for the calculation of
taxes and the payment of social security contributions.
</li>
)}
</ul>
<div className="ui__ answer-group">
{/* $FlowFixMe */}
{(Object.entries(possibleStatus): Array<[LegalStatus, boolean]>)
.filter(([, statusIsVisible]) => statusIsVisible)
.map(([status]) => (
<StatusButton key={status} status={status} history={history} />
))}
<Link to="/social-security" className="ui__ skip-button">
Do it later
</Link>

View File

@ -15,16 +15,12 @@ const Microenterprise = ({ companyIsMicroenterprise }: Props) => (
The Micro entreprise is a simplified scheme of declaration and payment, whose tax and social contributions are based on the turnover achieved each month. Available for companies whose annual turnover does not exceed (for the past year) 70 000 for services providers or 170 000 for micro-entrepreneurs whose main activity is the sale of goods, catering or the provision of housing.</p>
<p>This is a interesting choice if:</p>
<ul>
<li>you do not need lot of capital and important expenses to run your activity</li>
<li>you want to test the viability or plan it to be small</li>
<li>you want the minimum amount of paperwork to get started</li>
</ul>
<p><strong>Note:</strong></p>
<ul>
<li>Some activities are excluded from this status. <a href="https://www.afecreation.fr/pid10375/pour-quelles-activites.html#principales-exclusions">See the list (French)</a></li>
<li>Some activities are regulated with a qualification or a professional experience. <a href="https://www.afecreation.fr/pid316/activites-reglementees.html">See the list (French)</a></li>
<li>You do not need lot of capital and important expenses to run your activity</li>
<li>You want to test the viability or plan it to be small</li>
<li>You want the minimum amount of paperwork to get started</li>
</ul>
<p><strong>Note:</strong> Some activities are excluded from this status (<a href="https://www.afecreation.fr/pid10375/pour-quelles-activites.html#principales-exclusions">see the list</a>).{' '}
Some activities are regulated with a qualification or a professional experience (<a href="https://www.afecreation.fr/pid316/activites-reglementees.html">see the list</a>).</p>
<p>For all other case, it is advised to choose the standard status, which is <strong>Individual Business.</strong></p>
<div className="ui__ answer-group">
<button

View File

@ -32,10 +32,10 @@ const CreateMyCompany = ({ match, location, companyStatusChoice }) => (
component={CreationChecklist}
/>
<Route path={match.path + '/find'} component={Find} />
{companyStatusChoice ?
<Redirect from={match.path} to={match.path + '/create-' + companyStatusChoice} /> :
<Route path={match.path} component={Home} />
{companyStatusChoice &&
<Redirect from={match.path} to={match.path + '/create-' + companyStatusChoice} />
}
<Route path={match.path} component={Home} />
</Switch>
<div className="ui__ route-trans">
<Transition