feat(WEB): FCM 푸시 알림, 입금 등록, 견적 저장 개선
- 수주 상세 페이지에서 수주확정 시 FCM 푸시 알림 발송 추가 - FCM 프리셋 함수 추가: 계약완료, 발주완료 알림 - 입금 등록 시 입금일, 입금계좌, 입금자명, 입금금액 입력 가능 - 견적 저장 시 토스트 메시지 정상 표시 수정 - ShipmentCreate SelectItem key prop 경고 수정 - DevToolbar 문법 오류 수정
This commit is contained in:
@@ -175,4 +175,34 @@ export async function sendSalesOrderNotification(
|
||||
channel_id: 'push_sales_order',
|
||||
...customParams,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 계약완료 알림 발송 (프리셋)
|
||||
*/
|
||||
export async function sendContractCompletedNotification(
|
||||
customParams?: Partial<FcmNotificationParams>
|
||||
): Promise<FcmResult> {
|
||||
return sendFcmNotification({
|
||||
title: '계약 완료 알림',
|
||||
body: '계약이 완료되었습니다.',
|
||||
type: 'contract_completed',
|
||||
channel_id: 'push_contract',
|
||||
...customParams,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 발주완료 알림 발송 (프리셋)
|
||||
*/
|
||||
export async function sendPurchaseOrderNotification(
|
||||
customParams?: Partial<FcmNotificationParams>
|
||||
): Promise<FcmResult> {
|
||||
return sendFcmNotification({
|
||||
title: '발주 완료 알림',
|
||||
body: '발주가 완료되었습니다.',
|
||||
type: 'purchase_order',
|
||||
channel_id: 'push_purchase_order',
|
||||
...customParams,
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user