Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/InvoiceFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ const InvoiceFilter = ({ intl, classes, filters, onChangeFilters }) => {
withNull
nullLabel={formatMessage(intl, "invoice", "any")}
value={filterValue("status")}
onChange={onChangeStringFilter("status")}
onChange={onChangeFilter("status")}
/>
</Grid>
<Grid item xs={2} className={classes.item}>
Expand Down
16 changes: 8 additions & 8 deletions src/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ export const CONTAINS_LOOKUP = "Icontains";
export const STARTS_WITH_LOOKUP = "Istartswith";
export const ENUM_PREFIX_LENGTH = 2;
export const STATUS = {
DRAFT: "0",
VALIDATED: "1",
PAID: "2",
CANCELLED: "3",
DELETED: "4",
SUSPENDED: "5",
UNPAID: "6",
RECONCILIATED: "7",
DRAFT: "A_0",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why changing that ? won't that impact payload from / to backend ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is an enum option of billStatus and invoiceStatus type in graphql
we have a bug in bill/invoice filtering with previous value

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure I get how this helps; does GQL have A_{} options ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GQL expects type InvoiceStatus wich is an enum with the options A_{}
Screenshot 2025-11-03 at 10 14 36 AM

VALIDATED: "A_1",
PAYED: "A_2",
CANCELLED: "A_3",
DELETED: "A_4",
SUSPENDED: "A_5",
UNPAID: "A_6",
RECONCILIATED: "A_7"
};
export const SUBJECT_TYPE_OPTIONS = [
{
Expand Down
Loading