Compare commits
5 commits
807f8200b1
...
9f8f2a233b
| Author | SHA1 | Date | |
|---|---|---|---|
| 9f8f2a233b | |||
| 8a9ea269de | |||
| 87f86647e7 | |||
| 3ffb3bf983 | |||
| 49e7afb0ab |
5 changed files with 81 additions and 90 deletions
|
|
@ -96,16 +96,16 @@
|
||||||
<FormLabel>Description *</FormLabel>
|
<FormLabel>Description *</FormLabel>
|
||||||
<FormControl>
|
<FormControl>
|
||||||
<Textarea
|
<Textarea
|
||||||
placeholder="e.g., Workshop fee, Donation, Service revenue"
|
placeholder="A detailed description of the income source, and what it was for (event/project/etc)..."
|
||||||
v-bind="componentField"
|
v-bind="componentField"
|
||||||
rows="3"
|
rows="3"
|
||||||
/>
|
/>
|
||||||
</FormControl>
|
</FormControl>
|
||||||
<FormDescription>Describe the source of this income</FormDescription>
|
|
||||||
<FormMessage />
|
<FormMessage />
|
||||||
</FormItem>
|
</FormItem>
|
||||||
</FormField>
|
</FormField>
|
||||||
|
|
||||||
|
<div class="grid grid-cols-2 gap-4">
|
||||||
<FormField v-slot="{ componentField }" name="amount">
|
<FormField v-slot="{ componentField }" name="amount">
|
||||||
<FormItem>
|
<FormItem>
|
||||||
<FormLabel>Amount *</FormLabel>
|
<FormLabel>Amount *</FormLabel>
|
||||||
|
|
@ -118,7 +118,6 @@
|
||||||
step="0.01"
|
step="0.01"
|
||||||
/>
|
/>
|
||||||
</FormControl>
|
</FormControl>
|
||||||
<FormDescription>Amount in selected currency</FormDescription>
|
|
||||||
<FormMessage />
|
<FormMessage />
|
||||||
</FormItem>
|
</FormItem>
|
||||||
</FormField>
|
</FormField>
|
||||||
|
|
@ -128,7 +127,7 @@
|
||||||
<FormLabel>Currency *</FormLabel>
|
<FormLabel>Currency *</FormLabel>
|
||||||
<Select v-bind="componentField">
|
<Select v-bind="componentField">
|
||||||
<FormControl>
|
<FormControl>
|
||||||
<SelectTrigger>
|
<SelectTrigger class="w-full">
|
||||||
<SelectValue placeholder="Select currency" />
|
<SelectValue placeholder="Select currency" />
|
||||||
</SelectTrigger>
|
</SelectTrigger>
|
||||||
</FormControl>
|
</FormControl>
|
||||||
|
|
@ -138,18 +137,17 @@
|
||||||
</SelectItem>
|
</SelectItem>
|
||||||
</SelectContent>
|
</SelectContent>
|
||||||
</Select>
|
</Select>
|
||||||
<FormDescription>Currency for this income</FormDescription>
|
|
||||||
<FormMessage />
|
<FormMessage />
|
||||||
</FormItem>
|
</FormItem>
|
||||||
</FormField>
|
</FormField>
|
||||||
|
</div>
|
||||||
|
|
||||||
<FormField v-slot="{ componentField }" name="reference">
|
<FormField v-slot="{ componentField }" name="reference">
|
||||||
<FormItem>
|
<FormItem>
|
||||||
<FormLabel>Reference</FormLabel>
|
<FormLabel>Reference (optional)</FormLabel>
|
||||||
<FormControl>
|
<FormControl>
|
||||||
<Input placeholder="e.g., Invoice #123, Receipt #456" v-bind="componentField" />
|
<Input placeholder="e.g., Invoice #123, Receipt #456" v-bind="componentField" />
|
||||||
</FormControl>
|
</FormControl>
|
||||||
<FormDescription>Optional reference number or note</FormDescription>
|
|
||||||
<FormMessage />
|
<FormMessage />
|
||||||
</FormItem>
|
</FormItem>
|
||||||
</FormField>
|
</FormField>
|
||||||
|
|
@ -201,7 +199,6 @@ import { Textarea } from '@/components/ui/textarea'
|
||||||
import { Badge } from '@/components/ui/badge'
|
import { Badge } from '@/components/ui/badge'
|
||||||
import {
|
import {
|
||||||
FormControl,
|
FormControl,
|
||||||
FormDescription,
|
|
||||||
FormField,
|
FormField,
|
||||||
FormItem,
|
FormItem,
|
||||||
FormLabel,
|
FormLabel,
|
||||||
|
|
|
||||||
|
|
@ -202,7 +202,7 @@ const messages: LocaleMessages = {
|
||||||
income: {
|
income: {
|
||||||
title: 'Add Income',
|
title: 'Add Income',
|
||||||
description: 'Submit income for the organization',
|
description: 'Submit income for the organization',
|
||||||
selectAccount: 'Select the revenue account',
|
selectAccount: 'Select the revenue account. Use the "Other" account if you\'re not sure.',
|
||||||
submitIncome: 'Submit Income',
|
submitIncome: 'Submit Income',
|
||||||
notAvailable: 'Income submission is not yet available. This feature is coming soon.',
|
notAvailable: 'Income submission is not yet available. This feature is coming soon.',
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -202,7 +202,7 @@ const messages: LocaleMessages = {
|
||||||
income: {
|
income: {
|
||||||
title: 'A\u00f1adir ingreso',
|
title: 'A\u00f1adir ingreso',
|
||||||
description: 'Enviar un ingreso para la organizaci\u00f3n',
|
description: 'Enviar un ingreso para la organizaci\u00f3n',
|
||||||
selectAccount: 'Seleccionar la cuenta de ingresos',
|
selectAccount: 'Seleccionar la cuenta de ingresos. Use la cuenta "Other" si no está seguro.',
|
||||||
submitIncome: 'Enviar ingreso',
|
submitIncome: 'Enviar ingreso',
|
||||||
notAvailable: 'El registro de ingresos a\u00fan no est\u00e1 disponible. Esta funci\u00f3n llegar\u00e1 pronto.',
|
notAvailable: 'El registro de ingresos a\u00fan no est\u00e1 disponible. Esta funci\u00f3n llegar\u00e1 pronto.',
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -202,7 +202,7 @@ const messages: LocaleMessages = {
|
||||||
income: {
|
income: {
|
||||||
title: 'Ajouter un revenu',
|
title: 'Ajouter un revenu',
|
||||||
description: 'Soumettre un revenu pour l\u2019organisation',
|
description: 'Soumettre un revenu pour l\u2019organisation',
|
||||||
selectAccount: 'S\u00e9lectionner le compte de revenus',
|
selectAccount: 'S\u00e9lectionner le compte de revenus. Utilisez le compte "Other" si vous n\'\u00eates pas s\u00fbr.',
|
||||||
submitIncome: 'Soumettre le revenu',
|
submitIncome: 'Soumettre le revenu',
|
||||||
notAvailable: 'La saisie de revenus n\u2019est pas encore disponible. Cette fonctionnalit\u00e9 arrive bient\u00f4t.',
|
notAvailable: 'La saisie de revenus n\u2019est pas encore disponible. Cette fonctionnalit\u00e9 arrive bient\u00f4t.',
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -113,6 +113,8 @@
|
||||||
</FormItem>
|
</FormItem>
|
||||||
</FormField>
|
</FormField>
|
||||||
|
|
||||||
|
<!-- Amount + Currency -->
|
||||||
|
<div class="grid grid-cols-2 gap-4">
|
||||||
<!-- Amount -->
|
<!-- Amount -->
|
||||||
<FormField v-slot="{ componentField }" name="amount">
|
<FormField v-slot="{ componentField }" name="amount">
|
||||||
<FormItem>
|
<FormItem>
|
||||||
|
|
@ -126,9 +128,6 @@
|
||||||
step="0.01"
|
step="0.01"
|
||||||
/>
|
/>
|
||||||
</FormControl>
|
</FormControl>
|
||||||
<FormDescription>
|
|
||||||
Amount in selected currency
|
|
||||||
</FormDescription>
|
|
||||||
<FormMessage />
|
<FormMessage />
|
||||||
</FormItem>
|
</FormItem>
|
||||||
</FormField>
|
</FormField>
|
||||||
|
|
@ -139,7 +138,7 @@
|
||||||
<FormLabel>Currency *</FormLabel>
|
<FormLabel>Currency *</FormLabel>
|
||||||
<Select v-bind="componentField">
|
<Select v-bind="componentField">
|
||||||
<FormControl>
|
<FormControl>
|
||||||
<SelectTrigger>
|
<SelectTrigger class="w-full">
|
||||||
<SelectValue placeholder="Select currency" />
|
<SelectValue placeholder="Select currency" />
|
||||||
</SelectTrigger>
|
</SelectTrigger>
|
||||||
</FormControl>
|
</FormControl>
|
||||||
|
|
@ -153,26 +152,21 @@
|
||||||
</SelectItem>
|
</SelectItem>
|
||||||
</SelectContent>
|
</SelectContent>
|
||||||
</Select>
|
</Select>
|
||||||
<FormDescription>
|
|
||||||
Currency for this expense
|
|
||||||
</FormDescription>
|
|
||||||
<FormMessage />
|
<FormMessage />
|
||||||
</FormItem>
|
</FormItem>
|
||||||
</FormField>
|
</FormField>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- Reference (optional) -->
|
<!-- Reference (optional) -->
|
||||||
<FormField v-slot="{ componentField }" name="reference">
|
<FormField v-slot="{ componentField }" name="reference">
|
||||||
<FormItem>
|
<FormItem>
|
||||||
<FormLabel>Reference</FormLabel>
|
<FormLabel>Reference (optional)</FormLabel>
|
||||||
<FormControl>
|
<FormControl>
|
||||||
<Input
|
<Input
|
||||||
placeholder="e.g., Invoice #123, Receipt #456"
|
placeholder="e.g., Invoice #123, Receipt #456"
|
||||||
v-bind="componentField"
|
v-bind="componentField"
|
||||||
/>
|
/>
|
||||||
</FormControl>
|
</FormControl>
|
||||||
<FormDescription>
|
|
||||||
Optional reference number or note
|
|
||||||
</FormDescription>
|
|
||||||
<FormMessage />
|
<FormMessage />
|
||||||
</FormItem>
|
</FormItem>
|
||||||
</FormField>
|
</FormField>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue