diff --git a/email-worker/src/lib/emailSenders.ts b/email-worker/src/lib/emailSenders.ts index 583d5fb..e26c007 100644 --- a/email-worker/src/lib/emailSenders.ts +++ b/email-worker/src/lib/emailSenders.ts @@ -150,7 +150,7 @@ export async function sendRentDueNotifications(db: Db, budget: number): Promise< const rentDueDate = `${location.yearMonth.month}/${location.rentDueDay}/${location.yearMonth.year}`; // Format rent amount (convert from cents to display format) - const rentAmount = location.rentAmount ? (location.rentAmount / 100).toFixed(2) : '0.00'; + const rentAmount = location.rentAmount ? (location.rentAmount).toFixed(2) : '0.00'; const currency = userSettings?.currency || 'EUR'; const html = loadAndRender('rent-due', { diff --git a/web-app/app/ui/LocationEditForm.tsx b/web-app/app/ui/LocationEditForm.tsx index 03b974b..769dab6 100644 --- a/web-app/app/ui/LocationEditForm.tsx +++ b/web-app/app/ui/LocationEditForm.tsx @@ -336,7 +336,7 @@ export const LocationEditForm: FC = ({ location, yearMont name="rentAmount" type="number" min="1" - step="0.01" + step="1" placeholder={t("rent-amount-placeholder")} className="input input-bordered w-full placeholder:text-gray-600 text-right" defaultValue={formValues.rentAmount}