-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
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
Edit journal entity #1511
Edit journal entity #1511
Conversation
_.each(result, (row, uid) => transaction.addQuery(UPDATE_JOURNAL_ROW, [row, db.bid(uid)])); | ||
_.each(result, (row, uid) => { | ||
db.convert(row, ['entity_uuid']); | ||
return transaction.addQuery(UPDATE_JOURNAL_ROW, [row, db.bid(uid)]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You do not need this return
here.
@@ -307,15 +307,18 @@ function editTransaction(req, res, next) { | |||
transformColumns(rowsAdded, true) | |||
.then((result) => { | |||
result.forEach((row) => { | |||
db.convert(row, ['uuid', 'record_uuid']); | |||
db.convert(row, ['uuid', 'record_uuid', 'entity_uuid']); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
* @public | ||
* | ||
*/ | ||
Transactions.prototype.editCellGrid = function editCellGrid(rowEntity, field, value) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you make this function the same function as editCell
? It looks duplicated. And if it must be a different function, can this just call editCell
internally?
☔ The latest upstream changes (presumably 2b2435d) made this pull request unmergeable. Please resolve the merge conflicts. |
@mbayopanda, whoops.... sorry about that :( |
8b4602e
to
363ed3a
Compare
@kwilu try |
Edit journal entity This PR add the option of editing the entity of transactions in the posting journal.
@kwilu try |
@mbayopanda: 🔑 Insufficient privileges: Not in reviewers |
update transaction service Fix and enhancement Fix $digest error and enhancement Fix issues from review
Edit journal entity This PR add the option of editing the entity of transactions in the posting journal.
LGTM! |
This PR add the option of editing the entity of transactions in the posting journal.