stanislavtrifonov88 / rentalcar

Rental Car Training Project
0 stars 0 forks source link

return car - all calcs should be at the backend #54

Closed stanislavtrifonov88 closed 4 years ago

stanislavtrifonov88 commented 4 years ago

-get only contract ID from frontned -calculate the final price on the backend -in a transaction, only .save code. No other code due to lock of entities -delivered date: null to be outside of find as a separate check. If the contract is already closed, it should throw a descriptive error