#6118 (BankStatement.balance1 must default to balance2 of previous statement)
40 · by Luc Saffre · in Developers · assigned to Luc Saffre
Kurzbeschreibung
Kinder
Kommentare
- 1 Jahr, 4 Monate ago von Luc Saffre about #6118 (BankStatement.balance1 must default to balance2 of previous statement) : But now the fields are no longer copied for other models, e.g. contacts.Person. TODO: add an attribute Actor.copy_on_insert and have the default insert action "duplicate" when this is True. Actually this is another ticket: #6125 (Reimplement the ShowInsert action)
- 1 Jahr, 5 Monate ago von Luc Saffre about #6118 (BankStatement.balance1 must default to balance2 of previous statement) : The problem is the logic in extjs.ApiElement.get() where it should rather call datarec = ba.action.get_datarec(pk)...
- 1 Jahr, 5 Monate ago von Sharif Mehedi about #6118 (BankStatement.balance1 must default to balance2 of previous statement) : React doesn't blindly copies the current detail instead react makes a request of the form "/api/app_label/actor/pk_of_the_current_row?an=insert". Instead of passing "-99999" to the URL react pass the "pk" of the current row to the URL and backend returns a copy of the current row.
- 1 Jahr, 5 Monate ago von Luc Saffre about #6118 (BankStatement.balance1 must default to balance2 of previous statement) : I noticed that it *does* work when I hit the ⊕ button in the JournalsOverview table in the dashboard.
- 1 Jahr, 5 Monate ago von Luc Saffre about #6118 (BankStatement.balance1 must default to balance2 of previous statement) : I increased the priority because it disturbs for tim2lino.
- 1 Jahr, 5 Monate ago von Luc Saffre about #6118 (BankStatement.balance1 must default to balance2 of previous statement) : BankStatement.on_create() does this, but I'm afraid that our recent changes in react override this by blindly copying every field of the insert window. Actually the front end should NOT copy any field of the insert window from the current row, it should PASS the current row to the server and let the...
- 1 Jahr, 5 Monate ago von Luc Saffre about #6118 (BankStatement.balance1 must default to balance2 of previous statement) : Created new Ticket #6118 (BankStatement.balance1 must default to balance2 of previous statement).