forked from DGNum/gestioCOF
ajouts supp. previous_op
- Le trigramme est obtenu à partir de ``account_data`` qui contient les données traitées et validées relatives au compte en train de commander. - L'opération précédente disparaît en cas de ``hard reset``
This commit is contained in:
parent
7ed9c90726
commit
a34732cc9d
1 changed files with 6 additions and 1 deletions
|
@ -1054,12 +1054,16 @@ $(document).ready(function() {
|
||||||
|
|
||||||
function updatePreviousOp() {
|
function updatePreviousOp() {
|
||||||
var previousop_html = '';
|
var previousop_html = '';
|
||||||
var trigramme = triInput.val().toUpperCase();
|
var trigramme = account_data['trigramme'];
|
||||||
previousop_html += '<div class="trigramme">Trigramme : '+trigramme+'</div>';
|
previousop_html += '<div class="trigramme">Trigramme : '+trigramme+'</div>';
|
||||||
previousop_html += basketrel_container.html();
|
previousop_html += basketrel_container.html();
|
||||||
previousop_container.html(previousop_html);
|
previousop_container.html(previousop_html);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function resetPreviousOp() {
|
||||||
|
previousop_container.html('');
|
||||||
|
}
|
||||||
|
|
||||||
// -----
|
// -----
|
||||||
// Addcost
|
// Addcost
|
||||||
// -----
|
// -----
|
||||||
|
@ -1228,6 +1232,7 @@ $(document).ready(function() {
|
||||||
coolReset(give_tri_focus);
|
coolReset(give_tri_focus);
|
||||||
checkoutInput.trigger('change');
|
checkoutInput.trigger('change');
|
||||||
resetArticles();
|
resetArticles();
|
||||||
|
resetPreviousOp();
|
||||||
khistory.reset();
|
khistory.reset();
|
||||||
resetSettings();
|
resetSettings();
|
||||||
getArticles();
|
getArticles();
|
||||||
|
|
Loading…
Reference in a new issue