ken_nogi/Pleasanter/営業積算システム/docs/新・営業積算システム仕様書_分割/054_新・営業積算システム仕様書_別記資料スクリプト(24/28).md
Kenichiro NOGI ce58cb4be4 初回コミット: dev配下(NodeSrv/Pleasanter等)をGitea管理下に統合
GitHub(nextgroup2706/ken_nogi)は今後使わず自社Gitea運用に切替え。
NodeSrvは旧リポジトリの履歴を破棄しファイルのみ統合(Dokploy用サービスアカウントは
別途mygit-admin/NodeSrv.gitに履歴あり)。notepmエクスポート(12GB)とPleasanter
インストーラzip(208MB)はサイズが大きいため.gitignoreで除外。

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-04 15:37:06 +09:00

1.2 KiB
Raw Blame History

別記資料 スクリプトScripts全文 2428

// ...(前ファイルからの続き)
        let limitDateStr = limitDate.getFullYear() + '/' + (limitDate.getMonth() + 1).toString().padStart(2, '0') + '/' + limitDate.getDate().toString().padStart(2, '0');
        if (!(limitDate.getDay() == 0) && !(limitDate.getDay() == 6) && !(holidays.includes(limitDateStr))) {
            count++;
        }
    }

    return limitDate.getFullYear() + '/' + (limitDate.getMonth() + 1).toString().padStart(2, '0') + '/' + limitDate.getDate().toString().padStart(2, '0');
}

// numを丸数字に変換して表示
function toCircledNumber(n) {
    n = Math.floor(Number(n));
    if (isNaN(n) || n < 0 || n > 100) return n;
    if (n === 0) return '⓪';
    if (n <= 20) return String.fromCharCode(9311 + n); // 9312 = ①
    if (n <= 35) return String.fromCharCode(12881 + n - 21); // 12881 = ㉑
    if (n <= 50) return String.fromCharCode(12977 + n - 36); // 12977 = ㊱
    if (n <= 100) return n; // fallback for 51-100
}

scripts/4_04_プロセス処理スクリプト.js.js