| Line 593... |
Line 593... |
| 593 |
franchiseeActivityRepository.persist(franchiseeActivity);
|
593 |
franchiseeActivityRepository.persist(franchiseeActivity);
|
| 594 |
|
594 |
|
| 595 |
franchiseeVisit.setFranchiseActivityId(franchiseeActivity.getId());
|
595 |
franchiseeVisit.setFranchiseActivityId(franchiseeActivity.getId());
|
| 596 |
|
596 |
|
| 597 |
if(!createFranchiseeRequest.getOutsideVisibityReason().isEmpty()){
|
597 |
if(!createFranchiseeRequest.getOutsideVisibityReason().isEmpty()){
|
| 598 |
csService.createTicket(createFranchiseeRequest.getFofoId(), ProfitMandiConstants.TICKET_CATEGORY_DESIGN, ProfitMandiConstants.TICKET_CATEGORY_DESIGNING_BRANDING_ANY_OTHER, createFranchiseeRequest.getOutsideVisibityReason(), authUser.getId());
|
598 |
csService.createTicket(createFranchiseeRequest.getFofoId(), ProfitMandiConstants.TICKET_CATEGORY_DESIGN, ProfitMandiConstants.TICKET_CATEGORY_DESIGNING_BRANDING_EXTERNAL_VISIBILITY, createFranchiseeRequest.getOutsideVisibityReason(), authUser.getId());
|
| 599 |
}
|
599 |
}
|
| 600 |
|
600 |
|
| 601 |
if(!createFranchiseeRequest.getInstoreVisibilityReason().isEmpty()){
|
601 |
if(!createFranchiseeRequest.getInstoreVisibilityReason().isEmpty()){
|
| 602 |
csService.createTicket(createFranchiseeRequest.getFofoId(), ProfitMandiConstants.TICKET_CATEGORY_DESIGN, ProfitMandiConstants.TICKET_CATEGORY_DESIGNING_BRANDING_ANY_OTHER, createFranchiseeRequest.getInstoreVisibilityReason(), authUser.getId());
|
602 |
csService.createTicket(createFranchiseeRequest.getFofoId(), ProfitMandiConstants.TICKET_CATEGORY_DESIGN, ProfitMandiConstants.TICKET_CATEGORY_DESIGNING_BRANDING_INTERNAL_VISIBILITY, createFranchiseeRequest.getInstoreVisibilityReason(), authUser.getId());
|
| 603 |
}
|
603 |
}
|
| 604 |
|
604 |
|
| 605 |
if(!createFranchiseeRequest.getOutsideStockReason().isEmpty()){
|
605 |
if(!createFranchiseeRequest.getOutsideStockReason().isEmpty()){
|
| 606 |
csService.createTicket(createFranchiseeRequest.getFofoId(), ProfitMandiConstants.TICKET_CATEGORY_SALES, ProfitMandiConstants.TICKET_CATEGORY_SALES_ANY_OTHER, createFranchiseeRequest.getOutsideStockReason(), authUser.getId());
|
606 |
csService.createTicket(createFranchiseeRequest.getFofoId(), ProfitMandiConstants.TICKET_CATEGORY_SALES, ProfitMandiConstants.TICKET_CATEGORY_SALES_OUTSIDE_STOCK, createFranchiseeRequest.getOutsideStockReason(), authUser.getId());
|
| 607 |
}
|
607 |
}
|
| 608 |
|
608 |
|
| 609 |
if(!createFranchiseeRequest.getSystemKnowledgeReason().isEmpty()){
|
609 |
if(!createFranchiseeRequest.getSystemKnowledgeReason().isEmpty()){
|
| 610 |
csService.createTicket(createFranchiseeRequest.getFofoId(), ProfitMandiConstants.TICKET_CATEGORY_TRAINING, ProfitMandiConstants.TICKET_CATEGORY_TRAINING_ANY_OTHER, createFranchiseeRequest.getSystemKnowledgeReason(), authUser.getId());
|
610 |
csService.createTicket(createFranchiseeRequest.getFofoId(), ProfitMandiConstants.TICKET_CATEGORY_TRAINING, ProfitMandiConstants.TICKET_CATEGORY_TRAINING_NEED, createFranchiseeRequest.getSystemKnowledgeReason(), authUser.getId());
|
| 611 |
}
|
611 |
}
|
| 612 |
|
612 |
|
| 613 |
if(!createFranchiseeRequest.getLatestDummiesReason().isEmpty()){
|
613 |
if(!createFranchiseeRequest.getLatestDummiesReason().isEmpty()){
|
| 614 |
csService.createTicket(createFranchiseeRequest.getFofoId(), ProfitMandiConstants.TICKET_CATEGORY_MARKETING, ProfitMandiConstants.TICKET_CATEGORY_MARKETING_ANY_OTHER, createFranchiseeRequest.getLatestDummiesReason(), authUser.getId());
|
614 |
csService.createTicket(createFranchiseeRequest.getFofoId(), ProfitMandiConstants.TICKET_CATEGORY_MARKETING, ProfitMandiConstants.TICKET_CATEGORY_MARKETING_DUMMIES, createFranchiseeRequest.getLatestDummiesReason(), authUser.getId());
|
| 615 |
}
|
615 |
}
|
| 616 |
|
616 |
|
| 617 |
if(!createFranchiseeRequest.getInvestmentReason().isEmpty()){
|
617 |
if(!createFranchiseeRequest.getInvestmentReason().isEmpty()){
|
| 618 |
csService.createTicket(createFranchiseeRequest.getFofoId(), ProfitMandiConstants.TICKET_CATEGORY_SALES, ProfitMandiConstants.TICKET_CATEGORY_SALES_ANY_OTHER, createFranchiseeRequest.getInvestmentReason(), authUser.getId());
|
618 |
csService.createTicket(createFranchiseeRequest.getFofoId(), ProfitMandiConstants.TICKET_CATEGORY_SALES, ProfitMandiConstants.TICKET_CATEGORY_SALES_LOW_INVESTMENT, createFranchiseeRequest.getInvestmentReason(), authUser.getId());
|
| - |
|
619 |
}
|
| - |
|
620 |
|
| - |
|
621 |
if(!createFranchiseeRequest.getHygieneReason().isEmpty()){
|
| - |
|
622 |
csService.createTicket(createFranchiseeRequest.getFofoId(), ProfitMandiConstants.TICKET_CATEGORY_SALES, ProfitMandiConstants.TICKET_CATEGORY_SALES_LOW_DATA_ACCURACY, createFranchiseeRequest.getHygieneReason(), authUser.getId());
|
| 619 |
}
|
623 |
}
|
| 620 |
|
624 |
|
| 621 |
|
625 |
|
| 622 |
|
626 |
|
| 623 |
return responseSender.ok(true);
|
627 |
return responseSender.ok(true);
|