Skip to content
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

Tolk 2233 : Bestillinger kommer inn uten dato og tidspunkt #2094

Merged
merged 10 commits into from
Oct 15, 2024

Conversation

olsenrasmus
Copy link
Member

No description provided.

Om forespørsel kommer inn med start og slutt -tid og om det ble opprettet like mange arbeidsordrer som det ble skulle.

Ellers slett både forespørsel og arbeidsordrer.
@olsenrasmus olsenrasmus requested a review from a team October 14, 2024 06:34
Copy link
Collaborator

@EdvardBrekke EdvardBrekke left a comment

Choose a reason for hiding this comment

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

Vurdere å legge til try/catch?

}
}
if (isError) {
delete createdRequest;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Bør man ha try/catch?

Copy link
Member Author

Choose a reason for hiding this comment

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

Førnøyd nå?

List<WorkOrder> createdWorkOrders = [SELECT Id FROM WorkOrder WHERE HOT_Request__c = :requestId];
if (createdRequest.NumberOfWorkOrders__c != createdWorkOrders.size()) {
isError = true;
delete createdWorkOrders;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Bør man ha try/catch?

Copy link
Member Author

Choose a reason for hiding this comment

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

Førnøyd nå?

@olsenrasmus
Copy link
Member Author

Vurdere å legge til try/catch?

Førnøyd nå?

@EdvardBrekke
Copy link
Collaborator

Vurdere å legge til try/catch?

Førnøyd nå?

låv it

@olsenrasmus olsenrasmus merged commit bc6f71f into master Oct 15, 2024
4 of 6 checks passed
@olsenrasmus olsenrasmus deleted the TOLK-2233 branch October 15, 2024 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants