-
Notifications
You must be signed in to change notification settings - Fork 24
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
PSP-7271 : Create/Edit Offer (Disposition) #3683
Conversation
eddherrera
commented
Dec 28, 2023
(Grammar) |
|
||
public PimsDispositionOffer AddDispositionFileOffer(long dispositionFileId, PimsDispositionOffer dispositionOffer) | ||
{ | ||
_logger.LogInformation("Getting disposition file offers with DispositionFileId: {id}", dispositionFileId); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: log message is not correct.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated
@@ -8,7 +8,7 @@ public class DispositionFileOfferModel : BaseConcurrentModel | |||
/// <summary> | |||
/// get/set - The relationship id. | |||
/// </summary> | |||
public long Id { get; set; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this actually nullable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For new offers the value comes as null.
@@ -53,16 +55,31 @@ export const DispositionRouter: React.FC<IDispositionRouterProps> = props => { | |||
</Route> | |||
<AppRoute | |||
exact | |||
path={`${stripTrailingSlash(path)}/${FileTabType.OFFERS_AND_SALE}/addOffer`} | |||
path={`${stripTrailingSlash(path)}/${FileTabType.OFFERS_AND_SALE}/offers/new`} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, this is better.
const { setModalContent, setDisplayModal } = useModalContext(); | ||
const [offerStatusError, setOfferStatusError] = useState(false); | ||
|
||
const backUrl = location.pathname.split('/offers/new')[0]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure I love this pattern. Is this what we are doing in acquisition?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was used for Form8
return postDispositionOffer(dispositionFileId, newOffer); | ||
}; | ||
|
||
const handleSucces = async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: success
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated
# Conflicts: # source/backend/api/Services/DispositionFileService.cs # source/backend/tests/unit/api/Services/DispositionFileServiceTest.cs