|
When adjusting a savings transaction the bookings in the accounting are not carried out correctly, for example: POST savingsaccounts/1/transactions ( dateFormat => dd-MM-yyyy locale => en transactionDate => 30-09-2013 transactionAmount => 1000 receiptNumber => bla paymentTypeId => 29 )
Then adjusting to: POST savingsaccounts/1/transactions/56?command=modify ( transactionDate => 30-09-2013 dateFormat => dd-MM-yyyy locale => en_GB transactionAmount => 1250 )
The resulting bookings show: code { "totalFilteredRecords": 46, "pageItems": [ { "id": 611, "officeId": 2, "officeName": "Premier League", "glAccountName": "Head Office - Bank SC Current Account", "glAccountId": 3, "glAccountCode": "1000210", "glAccountType": { "id": 1, "code": "accountType.asset", "value": "ASSET" }
, "transactionDate": [ 2013, 9, 30 ], "entryType": { "id": 2, "code": "journalEntrytType.debit", "value": "DEBIT" }
, "amount": 1000, "transactionId": "56", "manualEntry": false, "entityType": { "id": 2, "code": "productType.saving", "value": "SAVING" }
, "entityId": 1, "createdByUserId": 1, "createdDate": [ 2013, 9, 30 ], "createdByUserName": "musoni", "reversed": false }, { "id": 612, "officeId": 2, "officeName": "Premier League", "glAccountName": "Deposits", "glAccountId": 13, "glAccountCode": "1111700", "glAccountType": { "id": 2, "code": "accountType.liability", "value": "LIABILITY" }
, "transactionDate": [ 2013, 9, 30 ], "entryType": { "id": 1, "code": "journalEntryType.credit", "value": "CREDIT" }
, "amount": 1000, "transactionId": "56", "manualEntry": false, "entityType": { "id": 2, "code": "productType.saving", "value": "SAVING" }
, "entityId": 1, "createdByUserId": 1, "createdDate": [ 2013, 9, 30 ], "createdByUserName": "musoni", "reversed": false }, { "id": 613, "officeId": 2, "officeName": "Premier League", "glAccountName": "Head Office - Bank SC Current Account", "glAccountId": 3, "glAccountCode": "1000210", "glAccountType": { "id": 1, "code": "accountType.asset", "value": "ASSET" }
, "transactionDate": [ 2013, 9, 30 ], "entryType": { "id": 2, "code": "journalEntrytType.debit", "value": "DEBIT" }
, "amount": 1250, "transactionId": "57", "manualEntry": false, "entityType": { "id": 2, "code": "productType.saving", "value": "SAVING" }
, "entityId": 1, "createdByUserId": 1, "createdDate": [ 2013, 9, 30 ], "createdByUserName": "musoni", "reversed": false }, { "id": 614, "officeId": 2, "officeName": "Premier League", "glAccountName": "Deposits", "glAccountId": 13, "glAccountCode": "1111700", "glAccountType": { "id": 2, "code": "accountType.liability", "value": "LIABILITY" }
, "transactionDate": [ 2013, 9, 30 ], "entryType": { "id": 1, "code": "journalEntryType.credit", "value": "CREDIT" }
, "amount": 1250, "transactionId": "57", "manualEntry": false, "entityType": { "id": 2, "code": "productType.saving", "value": "SAVING" }
, "entityId": 1, "createdByUserId": 1, "createdDate": [ 2013, 9, 30 ], "createdByUserName": "musoni", "reversed": false } ] } /code (see also attached screenshots in a more user friendly way).
The bookings show the same booking twice (debit Bank, Credit Savings), but do not correct/remove/reverse the old booking correctly in the accounting (reversed = 0 in DB).
|