This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use client"; | |
import React from 'react'; | |
import type { UseFormReturn, UseFieldArrayReturn } from "react-hook-form"; | |
import { FormField, FormControl, FormItem, FormLabel, FormMessage, FormDescription } from "@/components/ui/form"; | |
import { Input } from "@/components/ui/input"; | |
import { Textarea } from "@/components/ui/textarea"; | |
import { Button } from "@/components/ui/button"; | |
import { Card } from "@/components/ui/card"; | |
import { Checkbox } from "@/components/ui/checkbox"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import type { Customer } from '@/types/customer'; | |
import type { FilterCriterion } from '@/types/segment'; | |
import { Timestamp } from 'firebase/firestore'; | |
export const applyFiltersToCustomersWithCount = ( | |
customers: Customer[], | |
criteria: FilterCriterion[] | |
): { customers: Customer[]; memberCount: number } => { | |
if (!criteria || criteria.length === 0) { | |
return { customers, memberCount: customers.length }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title> | |
Job Card Template | |
</title> | |
<script src="https://cdn.tailwindcss.com"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/**************************************************** | |
* Lodging PMS – Updated Core Server Code (2-step) | |
****************************************************/ | |
// ====== CONFIG ====== | |
const sheetId = "1HhhuY7QEptHfir5Zk1RxbP_HGK5o2i_IxLqPrncxMIQ"; | |
const CONFIG_SHEET = "Config"; | |
const BOOKINGS_SHEET = "Bookings"; | |
const CLEANING_SHEET = "Cleaning"; | |
const UNIT_SHEET = "Units"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/**************************************************** | |
* Lodging PMS – Updated Core Server Code (2-step) | |
****************************************************/ | |
// ====== CONFIG ====== | |
const sheetId = "1HhhuY7QEptHfir5Zk1RxbP_HGK5o2i_IxLqPrncxMIQ"; | |
const CONFIG_SHEET = "Config"; | |
const BOOKINGS_SHEET = "Bookings"; | |
const CLEANING_SHEET = "Cleaning"; | |
const UNIT_SHEET = "Units"; |