diff --git a/admin-spa/src/routes/Settings/Tax.tsx b/admin-spa/src/routes/Settings/Tax.tsx index fc1e8e8..e7e0122 100644 --- a/admin-spa/src/routes/Settings/Tax.tsx +++ b/admin-spa/src/routes/Settings/Tax.tsx @@ -6,6 +6,8 @@ import { SettingsCard } from './components/SettingsCard'; import { SettingsSection } from './components/SettingsSection'; import { ToggleField } from './components/ToggleField'; import { Button } from '@/components/ui/button'; +import { Input } from '@/components/ui/input'; +import { Label } from '@/components/ui/label'; import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogFooter } from '@/components/ui/dialog'; import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle } from '@/components/ui/alert-dialog'; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@/components/ui/select'; @@ -167,6 +169,19 @@ export default function TaxSettings() { { + queryClient.invalidateQueries({ queryKey: ['tax-settings'] }); + queryClient.invalidateQueries({ queryKey: ['tax-suggested'] }); + }} + > + + {__('Refresh')} + + } >
{/* Enable Tax Calculation */} @@ -291,7 +306,7 @@ export default function TaxSettings() { // Update setting }} > - + @@ -311,7 +326,7 @@ export default function TaxSettings() { // Update setting }} > - + @@ -331,7 +346,7 @@ export default function TaxSettings() { // Update setting }} > - + @@ -375,14 +390,13 @@ export default function TaxSettings() {
- - {__('Country')} +

{__('2-letter country code (e.g., ID, MY, SG)')} @@ -390,13 +404,12 @@ export default function TaxSettings() {

- - {__('State/Province (Optional)')} +

{__('Leave empty for country-wide rate')} @@ -404,8 +417,8 @@ export default function TaxSettings() {

- - {__('Tax Rate (%)')} +
- - {__('Tax Name')} +
- +