Update waiting control report labels and email notification messages for clarity
This commit is contained in:
parent
fdd2a58a70
commit
38caf5152d
|
|
@ -11,7 +11,7 @@ export const waitingControlPlugin: ReportPlugin = {
|
|||
{ label: '📈 Сформировать отчет', functionName: 'buildWaitingControlReport' },
|
||||
{ label: '🔔 Уведомить постановщиков', functionName: 'sendWaitingControlReports' },
|
||||
{ label: '🔄 Обновить статусы задач', functionName: 'refreshWaitingControlReport' },
|
||||
{ label: '👔 Отправить отчет РОПу', functionName: 'checkWaitingControlReasonsAndSendPdf' },
|
||||
{ label: '👔 Отправить отчет Владимиру', functionName: 'checkWaitingControlReasonsAndSendPdf' },
|
||||
],
|
||||
handlers: {
|
||||
buildWaitingControlReport,
|
||||
|
|
|
|||
|
|
@ -12,12 +12,12 @@ export function checkWaitingControlReasonsAndSendPdf(): void {
|
|||
const emailConfig = getEmailConfig(ss);
|
||||
const recipient = pickRoleEmail(
|
||||
emailConfig,
|
||||
'salesDepartmentHeadEmail',
|
||||
'salesDepartmentDeputyEmail'
|
||||
'directorEmail',
|
||||
'directorEmail'
|
||||
);
|
||||
|
||||
if (!recipient) {
|
||||
SpreadsheetApp.getUi().alert('Не заполнены email РОПа или его заместителя');
|
||||
SpreadsheetApp.getUi().alert('Не заполнены email директора');
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue