feat(ratecard): update currency default to USD and align rate columns to the right

This commit is contained in:
shancds
2025-05-22 09:12:40 +05:30
parent b104cf2d3f
commit a879176c24
3 changed files with 5 additions and 1 deletions

View File

@@ -45,4 +45,4 @@ ALTER TABLE projects
ADD COLUMN rate_card UUID REFERENCES finance_rate_cards(id) ON DELETE SET NULL;
ALTER TABLE finance_rate_cards
ADD COLUMN currency TEXT NOT NULL DEFAULT 'LKR';
ADD COLUMN currency TEXT NOT NULL DEFAULT 'USD';

View File

@@ -249,6 +249,7 @@ const RatecardDrawer = ({
{
title: `${t('ratePerHourColumn')} (${currency})`,
dataIndex: 'rate',
align: 'right',
render: (text: number, record: any, index: number) => (
<Input
type="number"
@@ -258,6 +259,7 @@ const RatecardDrawer = ({
border: 'none',
boxShadow: 'none',
padding: 0,
textAlign: 'right',
}}
onChange={(e) => {
const updatedRoles = roles.map((role, idx) =>

View File

@@ -151,6 +151,7 @@ const RatecardTable: React.FC = () => {
{
title: `${t('ratePerHourColumn')} (${currency})`,
dataIndex: 'rate',
align: 'right',
render: (value: number, record: JobRoleType, index: number) => (
<Input
type="number"
@@ -161,6 +162,7 @@ const RatecardTable: React.FC = () => {
boxShadow: 'none',
padding: 0,
width: 80,
textAlign: 'right',
}}
onChange={(e) => handleRateChange(e.target.value, index)}
/>