mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-20 14:50:32 +00:00
feat: add section label to import mapping
This commit is contained in:
@@ -295,6 +295,7 @@
|
|||||||
"invoice.field.status.draft": "Draft",
|
"invoice.field.status.draft": "Draft",
|
||||||
"invoice.field.created_at": "Created at",
|
"invoice.field.created_at": "Created at",
|
||||||
"invoice.field.currency": "Currency",
|
"invoice.field.currency": "Currency",
|
||||||
|
"invoice.field.entries": "Entries",
|
||||||
"estimate.field.amount": "Amount",
|
"estimate.field.amount": "Amount",
|
||||||
"estimate.field.estimate_number": "Estimate number",
|
"estimate.field.estimate_number": "Estimate number",
|
||||||
"estimate.field.customer": "Customer",
|
"estimate.field.customer": "Customer",
|
||||||
|
|||||||
@@ -1,6 +1,16 @@
|
|||||||
|
.group {
|
||||||
|
margin-top: 1.4rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.groupTitle {
|
||||||
|
margin-bottom: 1.2rem;
|
||||||
|
color: #738091;
|
||||||
|
font-weight: 700;
|
||||||
|
padding: 0 11px;
|
||||||
|
}
|
||||||
|
|
||||||
.table {
|
.table {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-top: 1.4rem;
|
|
||||||
|
|
||||||
th.label,
|
th.label,
|
||||||
td.label{
|
td.label{
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ export function ImportFileMapping() {
|
|||||||
{entityColumns.map((entityColumn, index) => (
|
{entityColumns.map((entityColumn, index) => (
|
||||||
<ImportFileMappingGroup
|
<ImportFileMappingGroup
|
||||||
groupKey={entityColumn.groupKey}
|
groupKey={entityColumn.groupKey}
|
||||||
groupName={entityColumn.groupName}
|
groupLabel={entityColumn.groupLabel}
|
||||||
fields={entityColumn.fields}
|
fields={entityColumn.fields}
|
||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
@@ -40,7 +40,7 @@ export function ImportFileMapping() {
|
|||||||
|
|
||||||
interface ImportFileMappingGroupProps {
|
interface ImportFileMappingGroupProps {
|
||||||
groupKey: string;
|
groupKey: string;
|
||||||
groupName: string;
|
groupLabel: string;
|
||||||
fields: any;
|
fields: any;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -50,12 +50,12 @@ interface ImportFileMappingGroupProps {
|
|||||||
*/
|
*/
|
||||||
function ImportFileMappingGroup({
|
function ImportFileMappingGroup({
|
||||||
groupKey,
|
groupKey,
|
||||||
groupName,
|
groupLabel,
|
||||||
fields,
|
fields,
|
||||||
}: ImportFileMappingGroupProps) {
|
}: ImportFileMappingGroupProps) {
|
||||||
return (
|
return (
|
||||||
<Box>
|
<Box className={styles.group}>
|
||||||
{groupName && <h3>{groupName}</h3>}
|
{groupLabel && <h3 className={styles.groupTitle}>{groupLabel}</h3>}
|
||||||
|
|
||||||
<table className={clsx('bp4-html-table', styles.table)}>
|
<table className={clsx('bp4-html-table', styles.table)}>
|
||||||
<thead>
|
<thead>
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ export type EntityColumnField = {
|
|||||||
|
|
||||||
export interface EntityColumn {
|
export interface EntityColumn {
|
||||||
groupKey: string;
|
groupKey: string;
|
||||||
groupName: string;
|
groupLabel: string;
|
||||||
fields: EntityColumnField[];
|
fields: EntityColumnField[];
|
||||||
}
|
}
|
||||||
export type SheetColumn = string;
|
export type SheetColumn = string;
|
||||||
|
|||||||
Reference in New Issue
Block a user