Jumlah naskah semua nilai array
const sum = receiptItems.reduce((sum, current) => sum + current.total, 0);
Mobile Star
const sum = receiptItems.reduce((sum, current) => sum + current.total, 0);