Skip to content

Commit

Permalink
Merge pull request #93 from konsept-ch/invoice
Browse files Browse the repository at this point in the history
fix invoice number
  • Loading branch information
firepolo committed Apr 23, 2024
2 parents f0f50bc + c2259b6 commit 331f0af
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/components/ManualInvoiceModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -382,17 +382,7 @@ export function ManualInvoiceModal({
</Form.Control.Feedback>
</InputGroup>
</Form.Group>
{isEditModal && (
<>
<Form.Label>Numéro facture: </Form.Label>
{getInvoiceNumber({
courseYear: getYearFromJsDate({ date: courseYearWatched }),
userCode: `${selectedInvoiceData?.user.cfNumber}`.padStart(2, '0'),
invoiceNumberForCurrentYear:
selectedInvoiceData?.invoiceNumberForCurrentYear,
})}
</>
)}
{isEditModal && <Form.Label>Numéro facture: {selectedInvoiceData.number}</Form.Label>}
</Col>
<Col>
<Form.Group className="mb-3" controlId="dateInput">
Expand Down

0 comments on commit 331f0af

Please sign in to comment.