fix: doctype general ledger

This commit is contained in:
Ahmed Bouhuolia
2024-06-06 18:48:33 +02:00
parent 708a4dda9e
commit 94192bfc29
2 changed files with 28 additions and 23 deletions

View File

@@ -0,0 +1,13 @@
/**
* Calculate the running balance.
* @param {number} amount - Transaction amount.
* @param {number} lastRunningBalance - Last running balance.
* @param {number} openingBalance - Opening balance.
* @return {number} Running balance.
*/
export function calculateRunningBalance(
amount: number,
lastRunningBalance: number
): number {
return amount + lastRunningBalance;
}