feat: fix make journal.

This commit is contained in:
elforjani13
2022-03-16 19:55:27 +02:00
parent a360f8a62b
commit d85133b35e
3 changed files with 10 additions and 9 deletions

View File

@@ -641,14 +641,14 @@ export default [
ability: ReportsAction.READ_AP_AGING_SUMMARY, ability: ReportsAction.READ_AP_AGING_SUMMARY,
}, },
}, },
{ // {
text: <T id={'realized_gain_or_loss.label'} />, // text: <T id={'realized_gain_or_loss.label'} />,
href: '/financial-reports/realized-gain-loss', // href: '/financial-reports/realized-gain-loss',
}, // },
{ // {
text: <T id={'unrealized_gain_or_loss.label'} />, // text: <T id={'unrealized_gain_or_loss.label'} />,
href: '/financial-reports/unrealized-gain-loss', // href: '/financial-reports/unrealized-gain-loss',
}, // },
{ {
text: <T id={'Sales/Purchases'} />, text: <T id={'Sales/Purchases'} />,
label: true, label: true,

View File

@@ -74,7 +74,7 @@ function MakeJournalEntriesForm({
currency_code: base_currency, currency_code: base_currency,
}), }),
}), }),
[manualJournal, base_currency, journalNumber], [manualJournal, base_currency, journalNumber, journalAutoIncrement],
); );
// Handle the form submiting. // Handle the form submiting.

View File

@@ -34,6 +34,7 @@ export const defaultEntry = {
credit: '', credit: '',
debit: '', debit: '',
contact_id: '', contact_id: '',
branch_id: '',
note: '', note: '',
}; };