mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 12:50:38 +00:00
feat: add notes.
This commit is contained in:
@@ -19,7 +19,7 @@ export default function CreditNoteDetailFooter() {
|
||||
<CommercialDocFooter>
|
||||
<DetailsMenu direction={'horizantal'} minLabelSize={'180px'}>
|
||||
<If condition={creditNote.terms_conditions}>
|
||||
<DetailItem label={<T id={'credit_note.drawer.terms_conditions'} />}>
|
||||
<DetailItem label={<T id={'terms_conditions'} />}>
|
||||
{creditNote.terms_conditions}
|
||||
</DetailItem>
|
||||
</If>
|
||||
|
||||
@@ -1,6 +1,12 @@
|
||||
import React from 'react';
|
||||
|
||||
import { CommercialDocFooter, If, DetailsMenu, DetailItem } from 'components';
|
||||
import {
|
||||
CommercialDocFooter,
|
||||
T,
|
||||
If,
|
||||
DetailsMenu,
|
||||
DetailItem,
|
||||
} from 'components';
|
||||
import { useInvoiceDetailDrawerContext } from './InvoiceDetailDrawerProvider';
|
||||
|
||||
/**
|
||||
@@ -17,13 +23,13 @@ export function InvoiceDetailFooter() {
|
||||
<CommercialDocFooter>
|
||||
<DetailsMenu direction={'horizantal'} minLabelSize={'180px'}>
|
||||
<If condition={invoice.terms_conditions}>
|
||||
<DetailItem label={'Terms & Conditions'}>
|
||||
<DetailItem label={<T id={'terms_conditions'} />}>
|
||||
{invoice.terms_conditions}
|
||||
</DetailItem>
|
||||
</If>
|
||||
|
||||
<If condition={invoice.invoice_message}>
|
||||
<DetailItem label={'Invoice Message'}>
|
||||
<DetailItem label={<T id={'invoice.details.invoice_message'} />}>
|
||||
{invoice.invoice_message}
|
||||
</DetailItem>
|
||||
</If>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import React from 'react';
|
||||
import intl from 'react-intl-universal';
|
||||
import { Intent } from '@blueprintjs/core';
|
||||
import styled from 'styled-components';
|
||||
|
||||
@@ -57,8 +58,9 @@ export function TransactionsLockingHeader() {
|
||||
|
||||
if (isAllLockingActive) {
|
||||
AppToaster.show({
|
||||
message:
|
||||
'You should unlock all transactions at once before, than lock transactions partially on each module.',
|
||||
message: intl.get(
|
||||
'transactions_locking.you_should_unlock_all_transactions_at_once_before',
|
||||
),
|
||||
intent: Intent.DANGER,
|
||||
});
|
||||
} else {
|
||||
@@ -79,7 +81,10 @@ export function TransactionsLockingHeader() {
|
||||
</ButtonLink>
|
||||
</LockAllAlert>
|
||||
) : (
|
||||
<LockAllAlert title={'Lock Individual Modules'} intent={Intent.PRIMARY}>
|
||||
<LockAllAlert
|
||||
title={<T id={'transactions_locking.lock_individual_modules'} />}
|
||||
intent={Intent.PRIMARY}
|
||||
>
|
||||
<p>
|
||||
<T id={'transactions_locking.callout.lock_individual.desc'} />
|
||||
</p>
|
||||
|
||||
Reference in New Issue
Block a user