{"id":12361,"date":"2026-11-04T16:42:22","date_gmt":"2026-11-04T14:42:22","guid":{"rendered":"https:\/\/betterqa.co\/?p=12361"},"modified":"2026-11-04T16:42:22","modified_gmt":"2026-11-04T14:42:22","slug":"holiday-rule-twelve-places","status":"publish","type":"post","link":"https:\/\/betterqa.co\/holiday-rule-twelve-places\/","title":{"rendered":"Absent 11 days, charged for 10"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"12361\" class=\"elementor elementor-12361\" data-elementor-post-type=\"post\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-195e4es elementor-section-full_width elementor-section-height-default elementor-section-height-default\" data-id=\"195e4es\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-195e4ec\" data-id=\"195e4ec\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-195e4ew elementor-widget elementor-widget-html\" data-id=\"195e4ew\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<style>\n.bqa-cs3{--c-ink:#0C1726;--c-body:#3d4653;--c-dim:#5f6b78;--c-line:#e6e9ee;--c-purple:#9152DE;--c-deep:#5F29A1;--c-blue:#204782;--c-wash:#f6f8f9;--c-lilac:#f1eafb;--c-teal:#DDE9E9;font-family:'Roboto',sans-serif;color:var(--c-body);line-height:1.6;background:#fff;font-size:16px}\n.bqa-cs3 *,.bqa-cs3 *::before,.bqa-cs3 *::after{box-sizing:border-box}\n.bqa-cs3 h1,.bqa-cs3 h2,.bqa-cs3 h3{font-family:'Jost',sans-serif;color:var(--c-ink);text-transform:none;font-weight:600;line-height:1.25;margin:0;letter-spacing:0}\n.bqa-cs3 p{margin:0}\n.bqa-cs3 a{color:var(--c-deep)}\n.bqa-cs3 .bqa-cs3-wrap{max-width:1120px;margin:0 auto;padding:0 32px}\n.bqa-cs3 .bqa-cs3-label{font-family:'Jost',sans-serif;font-size:.8125rem;font-weight:500;letter-spacing:.08em;text-transform:uppercase;color:var(--c-deep);display:flex;align-items:center;gap:10px;margin:0 0 10px}\n.bqa-cs3 .bqa-cs3-label::before{content:'';width:20px;height:2px;background:var(--c-purple);flex-shrink:0}\n.bqa-cs3 .bqa-cs3-sec{padding:44px 0;border-top:1px solid var(--c-line)}\n.bqa-cs3 .bqa-cs3-sec.is-wash{background:var(--c-wash)}\n.bqa-cs3 .bqa-cs3-sec h2{font-size:1.625rem;margin:0 0 18px}\n.bqa-cs3 .bqa-cs3-note{font-size:.875rem;color:var(--c-dim);margin-top:12px;line-height:1.5}\n\/* hero *\/\n.bqa-cs3 .bqa-cs3-hero{padding:44px 0 40px}\n.bqa-cs3 .bqa-cs3-herogrid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:48px;align-items:center}\n.bqa-cs3 .bqa-cs3-hero h1{font-size:2.375rem;margin:0 0 14px}\n.bqa-cs3 .bqa-case-hook{font-family:'Jost',sans-serif;font-size:1.125rem;line-height:1.45;color:var(--c-deep);border-left:3px solid var(--c-purple);padding:0 0 0 14px;margin:0 0 14px}\n.bqa-cs3 .bqa-v2-aud{font-family:'Jost',sans-serif;font-weight:500;color:var(--c-ink);font-size:1rem;line-height:1.4;margin:0 0 10px}\n.bqa-cs3 .bqa-v2-aud strong{color:var(--c-deep);font-weight:600}\n.bqa-cs3 .bqa-cs3-lead{font-size:1rem;margin:0 0 18px}\n.bqa-cs3 .bqa-v2-chips{display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0;list-style:none}\n.bqa-cs3 .bqa-v2-chip{font-family:'Jost',sans-serif;font-size:.8125rem;font-weight:500;line-height:1;padding:7px 12px;border-radius:999px;background:var(--c-lilac);color:var(--c-deep)}\n.bqa-cs3 .bqa-v2-chip.is-ind{background:var(--c-ink);color:#fff}\n.bqa-cs3 .bqa-cs3-photo{margin:0;position:relative}\n.bqa-cs3 .bqa-cs3-photo img{display:block;width:100%;height:auto;aspect-ratio:4\/3;object-fit:cover;border-radius:14px}\n.bqa-cs3 .bqa-cs3-photo::after{content:'';position:absolute;left:-12px;bottom:-12px;width:96px;height:96px;border-radius:0 0 0 14px;border-left:3px solid var(--c-purple);border-bottom:3px solid var(--c-purple);pointer-events:none}\n\/* numbers *\/\n.bqa-cs3 .bqa-cs3-nums{display:grid;grid-template-columns:minmax(0,1.5fr) repeat(var(--n,4),minmax(0,1fr));gap:12px;align-items:stretch}\n.bqa-cs3 .bqa-cs3-band{border-radius:12px;padding:20px 22px;background:linear-gradient(120deg,#5F29A1 0%,#204782 100%);color:#fff;display:flex;flex-direction:column;justify-content:center}\n.bqa-cs3 .bqa-cs3-band b{font-family:'Jost',sans-serif;font-weight:600;font-size:2.125rem;line-height:1.1}\n.bqa-cs3 .bqa-cs3-band span{font-size:.9375rem;line-height:1.4;margin-top:6px;opacity:.95}\n.bqa-cs3 .bqa-cs3-fact{border:1px solid var(--c-line);border-radius:12px;padding:16px;background:#fff}\n.bqa-cs3 .bqa-cs3-fact b{font-family:'Jost',sans-serif;font-weight:600;font-size:1.375rem;color:var(--c-ink);display:block;line-height:1.2}\n.bqa-cs3 .bqa-cs3-fact span{font-size:.8125rem;color:var(--c-dim);display:block;margin-top:6px;line-height:1.4}\n\/* cards: risks and findings *\/\n.bqa-cs3 .bqa-cs3-cards{display:grid;grid-template-columns:repeat(var(--n,3),minmax(0,1fr));gap:14px}\n.bqa-cs3 .bqa-cs3-card{background:#fff;border:1px solid var(--c-line);border-radius:12px;padding:18px 18px 16px;display:flex;flex-direction:column;gap:6px}\n.bqa-cs3 .bqa-cs3-card h3{font-size:1.0625rem}\n.bqa-cs3 .bqa-cs3-card p{font-size:.9375rem;line-height:1.5}\n.bqa-cs3 .bqa-cs3-chip{align-self:flex-start;font-family:'Jost',sans-serif;font-size:.75rem;font-weight:500;color:var(--c-deep);background:var(--c-lilac);border-radius:999px;padding:3px 10px}\n.bqa-cs3 .bqa-cs3-card .bqa-cs3-cost{margin-top:auto;padding-top:10px;border-top:1px solid var(--c-line)}\n.bqa-cs3 .bqa-cs3-k{font-family:'Jost',sans-serif;font-size:.75rem;font-weight:500;letter-spacing:.06em;text-transform:uppercase;color:var(--c-dim);display:block;margin-bottom:2px}\n\/* rules and method *\/\n.bqa-cs3 .bqa-cs3-two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px;align-items:start}\n.bqa-cs3 .bqa-cs3-two h2{font-size:1.375rem;margin-bottom:14px}\n.bqa-cs3 .bqa-cs3-two.is-mw{grid-template-columns:minmax(0,2fr) minmax(0,3fr)}\n.bqa-cs3 .bqa-cs3-two.is-rw{grid-template-columns:minmax(0,3fr) minmax(0,2fr)}\n.bqa-cs3 .bqa-cs3-box{border:1px solid var(--c-line);border-radius:12px;background:#fff;overflow:hidden}\n.bqa-cs3 .bqa-cs3-box + .bqa-cs3-box{margin-top:10px}\n.bqa-cs3 .bqa-cs3-list{list-style:none;margin:0;padding:0}\n.bqa-cs3 .bqa-cs3-list li{padding:11px 16px;border-top:1px solid var(--c-line);font-size:.9375rem;line-height:1.5}\n.bqa-cs3 .bqa-cs3-list li:first-child{border-top:0}\n.bqa-cs3 .bqa-cs3-list .h{font-family:'Jost',sans-serif;font-weight:600;color:var(--c-ink);display:block;font-size:1rem;margin-bottom:2px}\n.bqa-cs3 .bqa-cs3-dl{margin:0;display:grid;grid-template-columns:120px minmax(0,1fr)}\n.bqa-cs3 .bqa-cs3-dl dt,.bqa-cs3 .bqa-cs3-dl dd{margin:0;padding:10px 16px;border-top:1px solid var(--c-line);font-size:.9375rem;line-height:1.5}\n.bqa-cs3 .bqa-cs3-dl dt:first-of-type,.bqa-cs3 .bqa-cs3-dl dt:first-of-type + dd{border-top:0}\n.bqa-cs3 .bqa-cs3-dl dt{font-family:'Jost',sans-serif;font-weight:600;color:var(--c-ink)}\n\/* outcome and checks *\/\n.bqa-cs3 .bqa-cs3-out{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px;align-items:start}\n.bqa-cs3 .bqa-cs3-out h2{font-size:1.375rem;margin-bottom:12px}\n.bqa-cs3 .bqa-cs3-out p + p{margin-top:10px}\n.bqa-cs3 .bqa-v2-you{margin-top:14px;border-left:4px solid var(--c-purple);background:var(--c-lilac);border-radius:0 10px 10px 0;padding:14px 18px;font-family:'Jost',sans-serif;font-size:1.0625rem;line-height:1.45;color:var(--c-deep)}\n.bqa-cs3 .bqa-cs3-checks{list-style:none;margin:0;padding:0;counter-reset:cs3}\n.bqa-cs3 .bqa-cs3-checks li{counter-increment:cs3;position:relative;padding:10px 0 10px 40px;border-top:1px solid var(--c-line);font-size:.9375rem;line-height:1.5}\n.bqa-cs3 .bqa-cs3-checks li:first-child{border-top:0;padding-top:0}\n.bqa-cs3 .bqa-cs3-checks li::before{content:counter(cs3);position:absolute;left:0;top:10px;width:26px;height:26px;border-radius:7px;background:var(--c-deep);color:#fff;font-family:'Jost',sans-serif;font-weight:600;font-size:.875rem;display:flex;align-items:center;justify-content:center}\n.bqa-cs3 .bqa-cs3-checks li:first-child::before{top:0}\n.bqa-cs3 .bqa-cs3-checks .h{font-family:'Jost',sans-serif;font-weight:600;color:var(--c-ink);display:block;margin-bottom:2px}\n\/* cta *\/\n.bqa-cs3 .bqa-cs3-cta{padding:12px 0 52px}\n.bqa-cs3 .bqa-cs3-ctacard{border-radius:14px;padding:26px 30px;background:var(--c-teal);display:flex;gap:24px;align-items:center;justify-content:space-between}\n.bqa-cs3 .bqa-cs3-ctacard h2{font-size:1.375rem;margin-bottom:6px}\n.bqa-cs3 .bqa-cs3-ctacard p{color:var(--c-ink);max-width:620px}\n.bqa-cs3 .bqa-cs3-btn{display:inline-flex;align-items:center;white-space:nowrap;padding:12px 22px;border-radius:8px;font-family:'Jost',sans-serif;font-weight:500;font-size:.9375rem;text-decoration:none;background:var(--c-ink);color:#fff}\n.bqa-cs3 .bqa-cs3-btn:hover{background:var(--c-deep);color:#fff}\n.bqa-cs3 .bqa-cs3-btn:focus-visible{outline:2px solid var(--c-purple);outline-offset:3px}\n@media (max-width:1024px){.bqa-cs3 .bqa-cs3-nums{grid-template-columns:repeat(2,minmax(0,1fr))}.bqa-cs3 .bqa-cs3-band{grid-column:1 \/ -1}.bqa-cs3 .bqa-cs3-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}\n@media (max-width:768px){.bqa-cs3 .bqa-cs3-wrap{padding:0 20px}.bqa-cs3 .bqa-cs3-herogrid,.bqa-cs3 .bqa-cs3-two,.bqa-cs3 .bqa-cs3-two.is-mw,.bqa-cs3 .bqa-cs3-two.is-rw,.bqa-cs3 .bqa-cs3-out{grid-template-columns:1fr;gap:22px}.bqa-cs3 .bqa-cs3-pair{padding-bottom:0}.bqa-cs3 .bqa-cs3-pair .bqa-cs3-two{gap:0}.bqa-cs3 .bqa-cs3-half{padding-bottom:32px}.bqa-cs3 .bqa-cs3-half + .bqa-cs3-half{border-top:1px solid var(--c-line);margin:0 -20px;padding:32px 20px}.bqa-cs3 .bqa-cs3-photo{order:-1}.bqa-cs3 .bqa-cs3-photo img{aspect-ratio:16\/9}.bqa-cs3 .bqa-cs3-photo::after{display:none}.bqa-cs3 .bqa-cs3-hero{padding:20px 0 28px}.bqa-cs3 .bqa-cs3-hero h1{font-size:1.75rem}.bqa-cs3 .bqa-cs3-sec{padding:32px 0}.bqa-cs3 .bqa-cs3-ctacard{flex-direction:column;align-items:flex-start;padding:22px}}\n@media (max-width:500px){.bqa-cs3 .bqa-cs3-wrap{padding:0 16px}.bqa-cs3 .bqa-cs3-hero h1{font-size:1.5rem}.bqa-cs3 .bqa-case-hook{font-size:1.0625rem}.bqa-cs3 .bqa-cs3-lead{font-size:.9375rem}.bqa-cs3 .bqa-v2-chip:nth-child(n+4){display:none}.bqa-cs3 .bqa-cs3-sec{padding:28px 0}.bqa-cs3 .bqa-cs3-pair{padding-bottom:0}.bqa-cs3 .bqa-cs3-half{padding-bottom:28px}.bqa-cs3 .bqa-cs3-half + .bqa-cs3-half{margin:0 -16px;padding:28px 16px}.bqa-cs3 .bqa-cs3-sec h2{font-size:1.3125rem;margin-bottom:14px}.bqa-cs3 .bqa-cs3-cards{grid-template-columns:1fr;gap:8px}.bqa-cs3 .bqa-cs3-card{padding:12px 14px;gap:4px}.bqa-cs3 .bqa-cs3-card .bqa-cs3-cost{padding-top:8px}.bqa-cs3 .bqa-cs3-card p,.bqa-cs3 .bqa-cs3-list li,.bqa-cs3 .bqa-cs3-dl dd,.bqa-cs3 .bqa-cs3-checks li{font-size:.875rem}.bqa-cs3 .bqa-cs3-band b{font-size:1.75rem}.bqa-cs3 .bqa-cs3-fact{padding:12px}.bqa-cs3 .bqa-cs3-fact b{font-size:1.1875rem}.bqa-cs3 .bqa-cs3-dl{grid-template-columns:1fr}.bqa-cs3 .bqa-cs3-dl dt{padding-bottom:0}.bqa-cs3 .bqa-cs3-dl dd{border-top:0;padding-top:2px}.bqa-cs3 .bqa-cs3-btn{width:100%;justify-content:center}.bqa-cs3 .bqa-v2-you{font-size:1rem}}\n@media (max-width:380px){.bqa-cs3 .bqa-cs3-nums{grid-template-columns:1fr}}\n.bqa-cs3[data-bqa-case=\"holiday-rule-twelve-places\"] .bqa-cs3-photo img{object-position:50% 45%}\n<\/style>\n<div class=\"bqa-svc-page bqa-case bqa-cs3\" data-bqa-case=\"holiday-rule-twelve-places\">\n<header class=\"bqa-cs3-hero\"><div class=\"bqa-cs3-wrap bqa-cs3-herogrid\"><div class=\"bqa-cs3-herotext\">\n<div class=\"bqa-cs3-label\">Case study<\/div>\n<h1>Absent 11 days, charged for 10<\/h1>\n<p class=\"bqa-case-hook\">A holiday that staff proposed and no admin had confirmed still counted in some parts of the product, and not in others.<\/p>\n<p class=\"bqa-v2-aud\"><strong>For<\/strong> heads of HR technology and engineering at companies that calculate leave, overtime or billable time.<\/p>\n<p class=\"bqa-cs3-lead\">If your product calculates leave, overtime or billable time, that rule is probably written more than once, and the copies may disagree. BetterFlow is a time and leave platform that BetterQA builds and tests. In it, twelve places decided whether a calendar entry is a day off, and they gave two answers: in leave arithmetic, in the overtime ledger and on a public page.<\/p>\n<ul class=\"bqa-v2-chips\"><li class=\"bqa-v2-chip is-ind\">Workforce, timesheet and leave software<\/li><li class=\"bqa-v2-chip\">Time and leave platform built and tested by BetterQA<\/li><li class=\"bqa-v2-chip\">Money<\/li><li class=\"bqa-v2-chip\">Clients<\/li><li class=\"bqa-v2-chip\">Compliance<\/li><li class=\"bqa-v2-chip\">Reputation<\/li><\/ul>\n<\/div><figure class=\"bqa-cs3-photo\"><picture><source type=\"image\/webp\" srcset=\"https:\/\/betterqa.co\/wp-content\/uploads\/2026\/10\/betterqa-office-SZY_6555.webp\"><img fetchpriority=\"high\" src=\"https:\/\/betterqa.co\/wp-content\/uploads\/2026\/10\/betterqa-office-SZY_6555.jpg\" data-bqa-frame=\"szy-6555\" alt=\"BetterQA colleagues working on laptops at the meeting table in the Cluj-Napoca office\" width=\"1600\" height=\"1065\" decoding=\"async\" fetchpriority=\"high\" title=\"\"><\/picture><\/figure><\/div><\/header>\n<section class=\"bqa-cs3-sec bqa-cs3-numsec\" aria-label=\"The numbers\"><div class=\"bqa-cs3-wrap\"><div class=\"bqa-cs3-label\">The numbers<\/div>\n<div class=\"bqa-cs3-nums\" style=\"--n:4\">\n<div class=\"bqa-cs3-band\"><b>11 vs 10<\/b><span>days absent against days charged for one employee<\/span><\/div>\n<div class=\"bqa-cs3-fact\"><b>12<\/b><span>places that decide whether a calendar entry is a day off<\/span><\/div>\n<div class=\"bqa-cs3-fact\"><b>8<\/b><span>of them never checked it was confirmed; 2 of those touched money<\/span><\/div>\n<div class=\"bqa-cs3-fact\"><b>11 vs 10<\/b><span>days absent against days charged, in one leave plan<\/span><\/div>\n<div class=\"bqa-cs3-fact\"><b>4<\/b><span>more readers found by a second, broader search<\/span><\/div>\n<\/div><\/div><\/section>\n<section class=\"bqa-cs3-sec is-wash\"><div class=\"bqa-cs3-wrap\"><div class=\"bqa-cs3-label\">At stake<\/div><h2>What was at risk<\/h2>\n<div class=\"bqa-cs3-cards\" style=\"--n:4\">\n<div class=\"bqa-cs3-card\"><span class=\"bqa-cs3-chip\">Money<\/span><h3>Leave charged against the wrong number of days<\/h3><p>In one leave plan, an unconfirmed holiday inside the window made the employee absent for 11 working days and charged for 10.<\/p><\/div>\n<div class=\"bqa-cs3-card\"><span class=\"bqa-cs3-chip\">Clients<\/span><h3>Staff credited less overtime than they worked<\/h3><p>The recovery ledger discarded overtime. A test now applies 2.0 hours where the old code applied 0.0.<\/p><\/div>\n<div class=\"bqa-cs3-card\"><span class=\"bqa-cs3-chip\">Compliance<\/span><h3>Leave records that disagree with each other<\/h3><p>Leave balances and working time are often governed by labour law. Two answers to the same question is an audit problem.<\/p><\/div>\n<div class=\"bqa-cs3-card\"><span class=\"bqa-cs3-chip\">Reputation<\/span><h3>A public page showing draft and rejected entries<\/h3><p>The public holidays endpoint served draft and admin-rejected rows, with date and title.<\/p><\/div>\n<\/div><\/div><\/section>\n<div class=\"bqa-cs3-sec bqa-cs3-pair\"><div class=\"bqa-cs3-wrap bqa-cs3-two is-mw\"><section class=\"bqa-cs3-half\">\n<div class=\"bqa-cs3-label\">Rules<\/div><h2>Standards and rules in play<\/h2><div class=\"bqa-cs3-box\"><ul class=\"bqa-cs3-list\">\n<li><span class=\"h\">One rule, one implementation<\/span>Four implementations already answered approved-only. Eight did not check status. Twelve places, two answers.<\/li>\n<li><span class=\"h\">Confirmed means confirmed<\/span>Staff can propose an entry that an admin has not confirmed. Draft and rejected entries must not count as days off.<\/li>\n<\/ul><\/div><p class=\"bqa-cs3-note\">Leave and working-time rules are set by labour law and each employer&#x27;s policy. This page describes testing, not legal advice or an audit.<\/p><\/section><section class=\"bqa-cs3-half\">\n<div class=\"bqa-cs3-label\">Method<\/div><h2>How we tested it<\/h2><div class=\"bqa-cs3-box\"><dl class=\"bqa-cs3-dl\">\n<dt>Test level<\/dt><dd>Component and system integration testing: the holiday rule and every place that reads it, from leave arithmetic to the public API.<\/dd><dt>Test types<\/dt><dd>Functional; confirmation and regression testing, with a test that failed before the fix covering the public endpoint.<\/dd><dt>Test basis<\/dt><dd>The rule: only an approved entry is a day off.<\/dd><\/dl><\/div>\n<div class=\"bqa-cs3-box\"><ul class=\"bqa-cs3-list\">\n<li><span class=\"bqa-cs3-k\">Technique<\/span><span class=\"h\">Decision table testing<\/span>Each caller was checked against the entry states: draft, approved and rejected.<\/li>\n<li><span class=\"bqa-cs3-k\">Technique<\/span><span class=\"h\">Static testing (code census)<\/span>The first search looked for the scope&#x27;s name. A broad search over every holiday query, 22 lines before and after, found four more readers.<\/li>\n<\/ul><\/div>\n<p class=\"bqa-cs3-note\">Terms as in the ISTQB CTFL 4.0 glossary.<\/p><\/section><\/div><\/div>\n<section class=\"bqa-cs3-sec is-wash\"><div class=\"bqa-cs3-wrap\"><div class=\"bqa-cs3-label\">Findings<\/div><h2>What we found, and what it costs<\/h2>\n<div class=\"bqa-cs3-cards\" style=\"--n:3\">\n<div class=\"bqa-cs3-card\"><span class=\"bqa-cs3-chip\">Money<\/span><h3>Leave arithmetic counted an unconfirmed holiday as absence but not as a charge<\/h3><p class=\"bqa-cs3-cost\"><span class=\"bqa-cs3-k\">What it costs you<\/span>11 days absent, 10 charged: the employee and the books disagree.<\/p><\/div>\n<div class=\"bqa-cs3-card\"><span class=\"bqa-cs3-chip\">Money<\/span><h3>The recovery ledger under-credited overtime<\/h3><p class=\"bqa-cs3-cost\"><span class=\"bqa-cs3-k\">What it costs you<\/span>It was the opposite of how the issue was first described. Reading the code, not the ticket, found it.<\/p><\/div>\n<div class=\"bqa-cs3-card\"><span class=\"bqa-cs3-chip\">Disclosure<\/span><h3>The public holidays page served draft and rejected entries<\/h3><p class=\"bqa-cs3-cost\"><span class=\"bqa-cs3-k\">What it costs you<\/span>Anyone could read dates and titles an admin had not approved.<\/p><\/div>\n<\/div><p class=\"bqa-cs3-note\">Four dead call sites were deleted, and a second, broader search found four more readers the first census had missed.<\/p><\/div><\/section>\n<section class=\"bqa-cs3-sec\"><div class=\"bqa-cs3-wrap bqa-cs3-out\"><div>\n<div class=\"bqa-cs3-label\">Outcome<\/div><h2>What changed<\/h2>\n<p>Eight live call sites moved to one helper that checks the entry is confirmed, four dead ones were deleted, and a test that failed before the fix covers the public endpoint.<\/p>\n<div class=\"bqa-v2-you\"><strong>What this means for you:<\/strong> When a business rule touches money, count how many places implement it. If the answer is more than one, test them against each other.<\/div>\n<\/div><div>\n<div class=\"bqa-cs3-label\">Check<\/div><h2>What to check in your own product<\/h2><ol class=\"bqa-cs3-checks\">\n<li><span class=\"h\">Search broadly before you count the places that decide a rule.<\/span>A broad search over every holiday query, 22 lines before and after, found four more readers.<\/li>\n<li><span class=\"h\">Check that public endpoints do not serve draft or rejected entries.<\/span>Anyone could read dates and titles an admin had not approved.<\/li>\n<li><span class=\"h\">Read the code, not only the ticket.<\/span>It was the opposite of how the issue was first described.<\/li>\n<\/ol><\/div>\n<\/div><\/section>\n<section class=\"bqa-cs3-cta\"><div class=\"bqa-cs3-wrap\"><div class=\"bqa-cs3-ctacard\"><div><h2>How many places in your product decide the same business rule?<\/h2><p>We find every place a rule lives and test them against each other. The first month is a trial.<\/p><\/div><a class=\"bqa-cs3-btn\" href=\"\/contact-us\/\">Talk to our team<\/a><\/div><\/div><\/section>\n<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>One holiday rule lived in twelve places and gave two answers across leave, overtime and a public page. We test the copies against each other.<\/p>\n","protected":false},"author":1,"featured_media":10632,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1295],"tags":[],"class_list":["post-12361","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-case-studies"],"acf":[],"_links":{"self":[{"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/posts\/12361","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/comments?post=12361"}],"version-history":[{"count":1,"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/posts\/12361\/revisions"}],"predecessor-version":[{"id":12379,"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/posts\/12361\/revisions\/12379"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/media\/10632"}],"wp:attachment":[{"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/media?parent=12361"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/categories?post=12361"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/tags?post=12361"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}