Merge pull request #506 from bigcapitalhq/BIG-206

feat: Setting up the date format in the whole system dates
This commit is contained in:
Ahmed Bouhuolia
2024-06-17 12:53:31 +02:00
committed by GitHub
40 changed files with 207 additions and 83 deletions

View File

@@ -5,7 +5,6 @@ import clsx from 'classnames';
import { Intent, Tag, Menu, MenuItem, MenuDivider } from '@blueprintjs/core';
import { CLASSES } from '@/constants/classes';
import {
FormatDateCell,
FormattedMessage as T,
Choose,
If,
@@ -112,7 +111,6 @@ export function useCreditNoteTableColumns() {
id: 'credit_date',
Header: intl.get('credit_note.column.credit_date'),
accessor: 'formatted_credit_note_date',
Cell: FormatDateCell,
width: 110,
className: 'credit_date',
clickable: true,

View File

@@ -164,8 +164,7 @@ export function useEstiamtesTableColumns() {
{
id: 'estimate_date',
Header: intl.get('estimate_date'),
accessor: 'estimate_date',
Cell: FormatDateCell,
accessor: 'formatted_estimate_date',
width: 140,
className: 'estimate_date',
clickable: true,

View File

@@ -128,7 +128,7 @@ export function ActionsMenu({
onQuick,
onViewDetails,
onPrint,
onSendMail
onSendMail,
},
row: { original },
}) {
@@ -202,8 +202,7 @@ export function useInvoicesTableColumns() {
{
id: 'invoice_date',
Header: intl.get('invoice_date'),
accessor: 'invoice_date',
Cell: FormatDateCell,
accessor: 'invoice_date_formatted',
width: 110,
className: 'invoice_date',
clickable: true,

View File

@@ -90,8 +90,7 @@ export function usePaymentReceivesColumns() {
{
id: 'payment_date',
Header: intl.get('payment_date'),
accessor: 'payment_date',
Cell: FormatDateCell,
accessor: 'formatted_payment_date',
width: 140,
className: 'payment_date',
clickable: true,

View File

@@ -119,8 +119,7 @@ export function useReceiptsTableColumns() {
{
id: 'receipt_date',
Header: intl.get('receipt_date'),
accessor: 'receipt_date',
Cell: FormatDateCell,
accessor: 'formatted_receipt_date',
width: 140,
className: 'receipt_date',
clickable: true,