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: 'buildWaitingControlReport' },
|
||||||
{ label: '🔔 Уведомить постановщиков', functionName: 'sendWaitingControlReports' },
|
{ label: '🔔 Уведомить постановщиков', functionName: 'sendWaitingControlReports' },
|
||||||
{ label: '🔄 Обновить статусы задач', functionName: 'refreshWaitingControlReport' },
|
{ label: '🔄 Обновить статусы задач', functionName: 'refreshWaitingControlReport' },
|
||||||
{ label: '👔 Отправить отчет РОПу', functionName: 'checkWaitingControlReasonsAndSendPdf' },
|
{ label: '👔 Отправить отчет Владимиру', functionName: 'checkWaitingControlReasonsAndSendPdf' },
|
||||||
],
|
],
|
||||||
handlers: {
|
handlers: {
|
||||||
buildWaitingControlReport,
|
buildWaitingControlReport,
|
||||||
|
|
|
||||||
|
|
@ -12,12 +12,12 @@ export function checkWaitingControlReasonsAndSendPdf(): void {
|
||||||
const emailConfig = getEmailConfig(ss);
|
const emailConfig = getEmailConfig(ss);
|
||||||
const recipient = pickRoleEmail(
|
const recipient = pickRoleEmail(
|
||||||
emailConfig,
|
emailConfig,
|
||||||
'salesDepartmentHeadEmail',
|
'directorEmail',
|
||||||
'salesDepartmentDeputyEmail'
|
'directorEmail'
|
||||||
);
|
);
|
||||||
|
|
||||||
if (!recipient) {
|
if (!recipient) {
|
||||||
SpreadsheetApp.getUi().alert('Не заполнены email РОПа или его заместителя');
|
SpreadsheetApp.getUi().alert('Не заполнены email директора');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue