-
Notifications
You must be signed in to change notification settings - Fork 16
5177 allow user to create program manual requisitions #5220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking βSign up for GitHubβ, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
roxy-dao
merged 20 commits into
develop
from
5177-Allow-user-to-create-PROGRAM-manual-requisitions
Oct 29, 2024
Merged
Changes from 17 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
3c2cbb5
Hook to insert program response requisition
roxy-dao fe7842e
Hook to get customer program settings
roxy-dao 3269335
Move NewRequisitionType to common type file
roxy-dao a484ea2
Move program info section to side panel
roxy-dao 52eb2ac
Refactor customer modal to return as autocomplete list or list search
roxy-dao 157a768
Move translation const up
roxy-dao 1e23f91
Response Program Requisition options
roxy-dao 9251059
Modal for creating program or general response requisition
roxy-dao 48d2a42
Refactor add requisition button to use new creation modal
roxy-dao c2ce413
Merge branch 'develop' into 5177-Allow-user-to-create-PROGRAM-manual-β¦
roxy-dao 5893d09
Make modal wider
roxy-dao 4f8b2b7
Filter out order types by customer
roxy-dao 21ab759
Change translation string
roxy-dao dd9c7d3
Fixed height instead of use window dimensions to stop re-rendering
roxy-dao 68d62d7
Use function instead of useEffect
roxy-dao fb1b9f1
Change height of new order modal
roxy-dao 01fbcea
Refactor useEffect in internal order program
roxy-dao a848abd
Add back new internal order label
roxy-dao 7f2cbc4
Merge branch 'develop' into 5177-Allow-user-to-create-PROGRAM-manual-β¦
roxy-dao 05f793e
Update schema
roxy-dao File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 0 additions & 4 deletions
4
client/packages/requisitions/src/RequestRequisition/ListView/types.ts
This file was deleted.
Oops, something went wrong.
40 changes: 40 additions & 0 deletions
40
client/packages/requisitions/src/ResponseRequisition/DetailView/ProgramInfoSection.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import React from 'react'; | ||
import { DetailPanelSection } from '@common/components'; | ||
import { useTranslation } from '@common/intl'; | ||
import { useResponse } from '../api'; | ||
import { | ||
Grid, | ||
PanelField, | ||
PanelLabel, | ||
PanelRow, | ||
} from '@openmsupply-client/common'; | ||
|
||
export const ProgramInfoSection = () => { | ||
const t = useTranslation(); | ||
const { orderType, programName, period } = useResponse.document.fields([ | ||
'orderType', | ||
'programName', | ||
'period', | ||
]); | ||
|
||
return programName ? ( | ||
<DetailPanelSection title={t('heading.program-info')}> | ||
<Grid container gap={0.5} key="program-info"> | ||
<PanelRow> | ||
<PanelLabel>{t('label.order-type')}</PanelLabel> | ||
<PanelField>{orderType ?? ''}</PanelField> | ||
</PanelRow> | ||
<PanelRow> | ||
<PanelLabel>{t('label.program')}</PanelLabel> | ||
<PanelField>{programName ?? ''}</PanelField> | ||
</PanelRow> | ||
<PanelRow> | ||
<PanelLabel>{t('label.period')}</PanelLabel> | ||
<PanelField>{period?.name ?? ''}</PanelField> | ||
</PanelRow> | ||
</Grid> | ||
</DetailPanelSection> | ||
) : ( | ||
<></> | ||
); | ||
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.