stock aggregate table

This commit is contained in:
Thanakorn S
2026-05-25 13:30:10 +07:00
parent 45a78a3fed
commit 1237888ab9
20 changed files with 725 additions and 62 deletions
@@ -14,6 +14,13 @@ try {
exit(json_encode($answer));
}
if ($action === 'get_current_gaps') {
$gaps = $etl->getGaps();
$answer['output'] = ['current_gaps' => count($gaps)];
$answer['success'] = 1;
exit(json_encode($answer));
}
if ($action === 'get_periods') {
$sth = $pdo2->prepare(
"SELECT DISTINCT period FROM td_gl WHERE company_id = :cid ORDER BY period"