We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I should get an error that the variable amount is not defined but i don't
// Structs and DTOs... DomainService ReconciliationDomainService(reconciliationService: ReconciliationServicePort) { public reconcile(ledgerFinancialDocument: FinancialDocumentEntity, externalFinancialDocument: FinancialDocumentEntity): (OK(ReconciliationReportEntity),Errors( DomainErrors.DuplicateTransactionIdsError | DomainErrors.CreditDebitSumError | DomainErrors.DocumentStatusNotValidatedError )) { const ledgerTransactions = []; for (transaction of ledgerFinancialDocument.financialTransactions){ creditAmount: float; debitAmount: float; if(transaction.amount.type == 'credit') { creditAmount = amount.amount; } if(transaction.amount.type == 'debit') { debitAmount = amount.amount; } const ledgerTransaction = LedgerTransaction({ ledgerId: transaction.financialTransactionId, id: transaction.rowId, credit: creditAmount, debit: debitAmount, balance: transaction.balance, date: transaction.date, description: transaction.description, reference: transaction.reference, rowId: transaction.rowId, }); ledgerTransactions.push(ledgerTransaction); } // ... } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I should get an error that the variable amount is not defined but i don't
The text was updated successfully, but these errors were encountered: