fix(SPG-1270): add information date to message notification
parent
58e062dd6c
commit
2c92d4b8b3
|
@ -332,6 +332,8 @@ export class WhatsappService {
|
||||||
const momentDate = moment(data.time);
|
const momentDate = moment(data.time);
|
||||||
const fallbackValue = momentDate.locale('id').format('dddd, DD MMMM YYYY');
|
const fallbackValue = momentDate.locale('id').format('dddd, DD MMMM YYYY');
|
||||||
|
|
||||||
|
const currentDate = moment().locale('id').format('DD MMMM YYYY');
|
||||||
|
|
||||||
const formattedTotal = new Intl.NumberFormat('id-ID', {
|
const formattedTotal = new Intl.NumberFormat('id-ID', {
|
||||||
style: 'currency',
|
style: 'currency',
|
||||||
currency: 'IDR',
|
currency: 'IDR',
|
||||||
|
@ -364,6 +366,11 @@ export class WhatsappService {
|
||||||
parameter_name: 'booking_date',
|
parameter_name: 'booking_date',
|
||||||
text: fallbackValue,
|
text: fallbackValue,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
type: 'text',
|
||||||
|
parameter_name: 'created_date',
|
||||||
|
text: currentDate,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
type: 'text',
|
type: 'text',
|
||||||
parameter_name: 'booking_code',
|
parameter_name: 'booking_code',
|
||||||
|
|
Loading…
Reference in New Issue