mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 22:30:31 +00:00
fix(Estimate): estimate status.
This commit is contained in:
@@ -10,23 +10,22 @@ import { T, Choose } from 'components';
|
|||||||
export function EstimateDetailsStatus({ estimate }) {
|
export function EstimateDetailsStatus({ estimate }) {
|
||||||
return (
|
return (
|
||||||
<Choose>
|
<Choose>
|
||||||
<Choose.When condition={estimate.is_delivered && estimate.is_approved}>
|
<Choose.When condition={estimate.is_approved}>
|
||||||
<Tag intent={Intent.SUCCESS} round={true}>
|
<Tag intent={Intent.SUCCESS} round={true}>
|
||||||
<T id={'approved'} />
|
<T id={'approved'} />
|
||||||
</Tag>
|
</Tag>
|
||||||
</Choose.When>
|
</Choose.When>
|
||||||
<Choose.When condition={estimate.is_delivered && estimate.is_rejected}>
|
<Choose.When condition={estimate.is_rejected}>
|
||||||
<Tag intent={Intent.DANGER} round={true}>
|
<Tag intent={Intent.DANGER} round={true}>
|
||||||
<T id={'rejected'} />
|
<T id={'rejected'} />
|
||||||
</Tag>
|
</Tag>
|
||||||
</Choose.When>
|
</Choose.When>
|
||||||
<Choose.When
|
<Choose.When condition={estimate.is_expired}>
|
||||||
condition={
|
<Tag intent={Intent.WARNING} round={true}>
|
||||||
estimate.is_delivered &&
|
<T id={'estimate.status.expired'} />
|
||||||
!estimate.is_rejected &&
|
</Tag>
|
||||||
!estimate.is_approved
|
</Choose.When>
|
||||||
}
|
<Choose.When condition={estimate.is_delivered}>
|
||||||
>
|
|
||||||
<Tag intent={Intent.SUCCESS} round={true}>
|
<Tag intent={Intent.SUCCESS} round={true}>
|
||||||
<T id={'delivered'} />
|
<T id={'delivered'} />
|
||||||
</Tag>
|
</Tag>
|
||||||
|
|||||||
@@ -43,7 +43,6 @@ function EstimatesList({
|
|||||||
<EstimatesViewTabs />
|
<EstimatesViewTabs />
|
||||||
<EstimatesDataTable />
|
<EstimatesDataTable />
|
||||||
</DashboardPageContent>
|
</DashboardPageContent>
|
||||||
|
|
||||||
</EstimatesListProvider>
|
</EstimatesListProvider>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,19 +24,22 @@ import { safeCallback } from 'utils';
|
|||||||
*/
|
*/
|
||||||
export const statusAccessor = (row) => (
|
export const statusAccessor = (row) => (
|
||||||
<Choose>
|
<Choose>
|
||||||
<Choose.When condition={row.is_delivered && row.is_approved}>
|
<Choose.When condition={row.is_approved}>
|
||||||
<Tag minimal={true} intent={Intent.SUCCESS} round={true}>
|
<Tag minimal={true} intent={Intent.SUCCESS} round={true}>
|
||||||
<T id={'approved'} />
|
<T id={'approved'} />
|
||||||
</Tag>
|
</Tag>
|
||||||
</Choose.When>
|
</Choose.When>
|
||||||
<Choose.When condition={row.is_delivered && row.is_rejected}>
|
<Choose.When condition={row.is_rejected}>
|
||||||
<Tag minimal={true} intent={Intent.DANGER} round={true}>
|
<Tag minimal={true} intent={Intent.DANGER} round={true}>
|
||||||
<T id={'rejected'} />
|
<T id={'rejected'} />
|
||||||
</Tag>
|
</Tag>
|
||||||
</Choose.When>
|
</Choose.When>
|
||||||
<Choose.When
|
<Choose.When condition={row.is_expired}>
|
||||||
condition={row.is_delivered && !row.is_rejected && !row.is_approved}
|
<Tag minimal={true} intent={Intent.WARNING} round={true}>
|
||||||
>
|
<T id={'estimate.status.expired'} />
|
||||||
|
</Tag>
|
||||||
|
</Choose.When>
|
||||||
|
<Choose.When condition={row.is_delivered}>
|
||||||
<Tag minimal={true} intent={Intent.SUCCESS} round={true}>
|
<Tag minimal={true} intent={Intent.SUCCESS} round={true}>
|
||||||
<T id={'delivered'} />
|
<T id={'delivered'} />
|
||||||
</Tag>
|
</Tag>
|
||||||
|
|||||||
@@ -1732,7 +1732,8 @@
|
|||||||
"permissions.inventory_valuation_summary":"ملخص تقييم المخزون ",
|
"permissions.inventory_valuation_summary":"ملخص تقييم المخزون ",
|
||||||
"permissions.inventory_items_details":"تفاصيل منتج المخزون",
|
"permissions.inventory_items_details":"تفاصيل منتج المخزون",
|
||||||
"permissions.cashflow_account_transactions":"معاملات حسابات التدفقات النقدية",
|
"permissions.cashflow_account_transactions":"معاملات حسابات التدفقات النقدية",
|
||||||
"permissions.more_permissions":"عرض المزيد "
|
"permissions.more_permissions":"عرض المزيد ",
|
||||||
|
|
||||||
|
"estimate.status.expired": "منتهية الصلاحية"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1719,6 +1719,8 @@
|
|||||||
"permissions.inventory_valuation_summary":"Inventory valuation summary",
|
"permissions.inventory_valuation_summary":"Inventory valuation summary",
|
||||||
"permissions.inventory_items_details":"Inventory valuation summary",
|
"permissions.inventory_items_details":"Inventory valuation summary",
|
||||||
"permissions.cashflow_account_transactions":"Cashflow account transactions",
|
"permissions.cashflow_account_transactions":"Cashflow account transactions",
|
||||||
"permissions.more_permissions":"More Permissions"
|
"permissions.more_permissions":"More Permissions",
|
||||||
|
|
||||||
|
"estimate.status.expired": "Expired"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user