THANASOFT-HFC/gestion/src/js/statistique.js
2024-12-16 17:24:37 +03:00

18 lines
736 B
JavaScript

import "@nextcloud/dialogs/dist/index.css";
import "../css/mycss.css";
import { getAnnualTurnoverPerMonthNoVat, getStatArticleAnnuel, getStatSoinsThanatoAnnuel, getStatSoinsThanatoWeekend } from "./modules/ajaxRequest.mjs";
import { cur, globalConfiguration } from "./modules/mainFunction.mjs";
import "./listener/main_listener";
window.addEventListener("DOMContentLoaded", function () {
var currentDate = new Date();
var currentYear = currentDate.getFullYear();
var currentMonth = currentDate.getMonth();
globalConfiguration();
getAnnualTurnoverPerMonthNoVat(cur);
getStatArticleAnnuel(currentYear);
getStatSoinsThanatoAnnuel(currentYear);
getStatSoinsThanatoWeekend(currentYear, currentMonth+1);
});