mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-21 15:20:34 +00:00
feat: add formatted amount & data in credit.
This commit is contained in:
@@ -60,7 +60,7 @@ export function useVendorsCreditNoteTableColumns() {
|
|||||||
{
|
{
|
||||||
id: 'vendor_credit_date',
|
id: 'vendor_credit_date',
|
||||||
Header: intl.get('date'),
|
Header: intl.get('date'),
|
||||||
accessor: 'vendor_credit_date',
|
accessor: 'formatted_vendor_credit_date',
|
||||||
Cell: FormatDateCell,
|
Cell: FormatDateCell,
|
||||||
width: 110,
|
width: 110,
|
||||||
className: 'vendor_credit_date',
|
className: 'vendor_credit_date',
|
||||||
@@ -88,8 +88,7 @@ export function useVendorsCreditNoteTableColumns() {
|
|||||||
{
|
{
|
||||||
id: 'amount',
|
id: 'amount',
|
||||||
Header: intl.get('amount'),
|
Header: intl.get('amount'),
|
||||||
// accessor: 'formatted_amount',
|
accessor: 'formatted_amount',
|
||||||
accessor: 'amount',
|
|
||||||
width: 120,
|
width: 120,
|
||||||
align: 'right',
|
align: 'right',
|
||||||
clickable: true,
|
clickable: true,
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ export function useCreditNoteTableColumns() {
|
|||||||
{
|
{
|
||||||
id: 'credit_note_date',
|
id: 'credit_note_date',
|
||||||
Header: intl.get('credit_note.column.credit_date'),
|
Header: intl.get('credit_note.column.credit_date'),
|
||||||
accessor: 'credit_note_date',
|
accessor: 'formatted_credit_note_date',
|
||||||
Cell: FormatDateCell,
|
Cell: FormatDateCell,
|
||||||
width: 110,
|
width: 110,
|
||||||
className: 'credit_note_date',
|
className: 'credit_note_date',
|
||||||
@@ -85,8 +85,7 @@ export function useCreditNoteTableColumns() {
|
|||||||
{
|
{
|
||||||
id: 'amount',
|
id: 'amount',
|
||||||
Header: intl.get('amount'),
|
Header: intl.get('amount'),
|
||||||
accessor: 'amount',
|
accessor: 'formatted_amount',
|
||||||
// accessor: 'formatted_amount',
|
|
||||||
width: 120,
|
width: 120,
|
||||||
align: 'right',
|
align: 'right',
|
||||||
clickable: true,
|
clickable: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user