mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 13:20:31 +00:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
17deeb18e3 | ||
|
|
8416b45f4e | ||
|
|
3cc5aab80e | ||
|
|
93711a7bf4 |
@@ -27,7 +27,7 @@ export enum CASHFLOW_DIRECTION {
|
||||
}
|
||||
|
||||
export enum CASHFLOW_TRANSACTION_TYPE {
|
||||
ONWERS_DRAWING = 'OwnerDrawing',
|
||||
OWNERS_DRAWING = 'OwnerDrawing',
|
||||
OWNER_CONTRIBUTION = 'OwnerContribution',
|
||||
OTHER_INCOME = 'OtherIncome',
|
||||
TRANSFER_FROM_ACCOUNT = 'TransferFromAccount',
|
||||
@@ -36,7 +36,7 @@ export enum CASHFLOW_TRANSACTION_TYPE {
|
||||
}
|
||||
|
||||
export const CASHFLOW_TRANSACTION_TYPE_META = {
|
||||
[`${CASHFLOW_TRANSACTION_TYPE.ONWERS_DRAWING}`]: {
|
||||
[`${CASHFLOW_TRANSACTION_TYPE.OWNERS_DRAWING}`]: {
|
||||
type: 'OwnerDrawing',
|
||||
direction: CASHFLOW_DIRECTION.OUT,
|
||||
creditType: [ACCOUNT_TYPE.EQUITY],
|
||||
|
||||
@@ -9,7 +9,7 @@ import { CommonMailOptionsDTO } from '@/modules/MailNotification/MailNotificatio
|
||||
import { CommonMailOptions } from '@/modules/MailNotification/MailNotification.types';
|
||||
import { EditSaleEstimateDto } from '../dtos/SaleEstimate.dto';
|
||||
|
||||
export const SendSaleEstimateMailQueue = 'SendSaleEstimateMailProcessor';
|
||||
export const SendSaleEstimateMailQueue = 'SendSaleEstimateMailQueue';
|
||||
export const SendSaleEstimateMailJob = 'SendSaleEstimateMailProcess';
|
||||
|
||||
export interface ISaleEstimateDTO {
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
// import config from '@/config';
|
||||
|
||||
export const SendSaleInvoiceQueue = 'SendSaleInvoiceQueue';
|
||||
export const SendSaleInvoiceMailJob = 'SendSaleInvoiceMailJob';
|
||||
|
||||
|
||||
export const DEFAULT_INVOICE_MAIL_SUBJECT =
|
||||
'Invoice {Invoice Number} from {Company Name} for {Customer Name}';
|
||||
export const DEFAULT_INVOICE_MAIL_CONTENT = `Hi {Customer Name},
|
||||
|
||||
@@ -37,7 +37,7 @@ export default class InviteSendMainNotificationSubscribe {
|
||||
const organizationId = tenant.organizationId;
|
||||
const userId = authedUser.id;
|
||||
|
||||
this.sendInviteMailQueue.add(SendInviteUserMailJob, {
|
||||
await this.sendInviteMailQueue.add(SendInviteUserMailJob, {
|
||||
fromUser: invitingUser,
|
||||
invite,
|
||||
userId,
|
||||
|
||||
@@ -19,7 +19,7 @@ export const getAddMoneyInOptions = () => [
|
||||
export const getAddMoneyOutOptions = () => [
|
||||
{
|
||||
name: intl.get('banking.owner_drawings'),
|
||||
value: 'OwnerDrawing',
|
||||
value: 'owner_drawing',
|
||||
},
|
||||
{
|
||||
name: intl.get('banking.expenses'),
|
||||
@@ -31,11 +31,11 @@ export const getAddMoneyOutOptions = () => [
|
||||
},
|
||||
];
|
||||
|
||||
export const TRANSACRIONS_TYPE = [
|
||||
export const TRANSACTIONS_TYPE = [
|
||||
'OwnerContribution',
|
||||
'OtherIncome',
|
||||
'TransferFromAccount',
|
||||
'OnwersDrawing',
|
||||
'OwnerDrawing',
|
||||
'OtherExpense',
|
||||
'TransferToAccount',
|
||||
];
|
||||
|
||||
@@ -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