Hide goal from quick-book when buffer covers a full day
If the accumulated buffer (buf) is >= the daily target, the goal is already covered for today and doesn't need to appear in Quick-Buchen. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
462401d41a
commit
950c3bcfc5
1 changed files with 1 additions and 1 deletions
|
|
@ -773,7 +773,7 @@ function buildCard(g){
|
||||||
// ── Quick-Buchen ──────────────────────────────────────────────────────────────
|
// ── Quick-Buchen ──────────────────────────────────────────────────────────────
|
||||||
|
|
||||||
function buildQuickBook(){
|
function buildQuickBook(){
|
||||||
var active=goals.filter(function(g){ var c=calc(g); return tOff(g)<g.days&&!c.ok; });
|
var active=goals.filter(function(g){ var c=calc(g); return tOff(g)<g.days&&!c.ok&&c.buf<g.daily; });
|
||||||
if(!active.length) return null;
|
if(!active.length) return null;
|
||||||
var frag=document.createDocumentFragment();
|
var frag=document.createDocumentFragment();
|
||||||
var lbl=document.createElement('div'); lbl.className='sec-lbl'; lbl.textContent=tr('qbLabel');
|
var lbl=document.createElement('div'); lbl.className='sec-lbl'; lbl.textContent=tr('qbLabel');
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue