mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 13:50:31 +00:00
fix(BalanceSheet): calculate the section total.
fix(MakeJournal): write transaction number and reference.
This commit is contained in:
@@ -286,8 +286,13 @@ export default class JournalCommands {
|
||||
* @param {number} manualJournalId
|
||||
*/
|
||||
async manualJournal(manualJournalObj: IManualJournal) {
|
||||
const commonEntry = {
|
||||
transaction_number: manualJournalObj.journalNumber,
|
||||
reference_number: manualJournalObj.reference,
|
||||
};
|
||||
manualJournalObj.entries.forEach((entry: IManualJournalEntry) => {
|
||||
const jouranlEntry = new JournalEntry({
|
||||
...commonEntry,
|
||||
debit: entry.debit,
|
||||
credit: entry.credit,
|
||||
account: entry.accountId,
|
||||
|
||||
Reference in New Issue
Block a user