feat: refs #6636 Modified updateClaim, model and tests #2256

Merged
guillermo merged 10 commits from 6636-pickup into dev 2024-04-09 08:01:28 +00:00
1 changed files with 1 additions and 3 deletions
Showing only changes of commit 16a6e3d8a6 - Show all commits

View File

@ -72,9 +72,7 @@ module.exports = Self => {
// Get sales person from claim client
const salesPerson = claim.client().salesPersonUser();
let changedPickup;
if (args.pickup != claim.pickup)
changedPickup = true;
const changedPickup = args.pickup != claim.pickup;
guillermo marked this conversation as resolved Outdated
Outdated
Review

Les 3 linies se poden refactoritzar per const changedPickup = args.pickup != claim.pickup

Les 3 linies se poden refactoritzar per `const changedPickup = args.pickup != claim.pickup`

Muy bien visto

Muy bien visto
// Validate when claimState has been changed
if (args.claimStateFk) {