-
Notifications
You must be signed in to change notification settings - Fork 1
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
Conversation
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.
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.
Vurdere å legge til try/catch?
} | ||
} | ||
if (isError) { | ||
delete createdRequest; |
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.
Bør man ha try/catch?
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.
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; |
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.
Bør man ha try/catch?
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.
Førnøyd nå?
Førnøyd nå? |
låv it |
No description provided.