mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-25 00:59:50 +00:00
fix: correct cash flow transaction type naming inconsistencies
- Fix typo ONWERS_DRAWING -> OWNERS_DRAWING in server constants - Change OwnerDrawing -> owner_drawing for consistency in webapp - Fix typo TRANSACRIONS_TYPE -> TRANSACTIONS_TYPE - Fix typo OnwersDrawing -> OwnerDrawing - Add missing Icon and FDateInput imports - Add dark mode styling for BranchRowDivider Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
@@ -92,7 +92,7 @@ function CategorizeTransactionFormSubContent() {
|
||||
} else if (values.transactionType === 'transfer_to_account') {
|
||||
return <CategorizeTransactionToAccount />;
|
||||
// Owner drawings.
|
||||
} else if (values.transactionType === 'OwnerDrawing') {
|
||||
} else if (values.transactionType === 'owner_drawing') {
|
||||
return <CategorizeTransactionOwnerDrawings />;
|
||||
}
|
||||
return null;
|
||||
|
||||
@@ -23,6 +23,8 @@ import {
|
||||
FFormGroup,
|
||||
FTextArea,
|
||||
FMoneyInputGroup,
|
||||
Icon,
|
||||
FDateInput,
|
||||
} from '@/components';
|
||||
import { CLASSES, ACCOUNT_TYPE, Features } from '@/constants';
|
||||
|
||||
|
||||
@@ -17,6 +17,7 @@ import {
|
||||
FTextArea,
|
||||
FInputGroup,
|
||||
FDateInput,
|
||||
Icon,
|
||||
} from '@/components';
|
||||
import { ACCOUNT_TYPE, CLASSES, Features } from '@/constants';
|
||||
import {
|
||||
|
||||
@@ -46,4 +46,8 @@ export const BranchRowDivider = styled.div`
|
||||
height: 1px;
|
||||
background: #ebf1f6;
|
||||
margin-bottom: 15px;
|
||||
|
||||
.bp4-dark & {
|
||||
background: var(--color-dark-gray5);
|
||||
}
|
||||
`;
|
||||
|
||||
@@ -17,7 +17,7 @@ function MoneyOutContentFields() {
|
||||
|
||||
const transactionType = useMemo(() => {
|
||||
switch (values.transaction_type) {
|
||||
case 'OwnerDrawing':
|
||||
case 'owner_drawing':
|
||||
return <OwnerDrawingsFormFields />;
|
||||
|
||||
case 'other_expense':
|
||||
|
||||
@@ -45,4 +45,8 @@ export const BranchRowDivider = styled.div`
|
||||
height: 1px;
|
||||
background: #ebf1f6;
|
||||
margin-bottom: 15px;
|
||||
|
||||
.bp4-dark & {
|
||||
background: var(--color-dark-gray5);
|
||||
}
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user