Автозаполнение справки примерными данными
This commit is contained in:
parent
7f55402720
commit
66219ff99a
18
script.js
18
script.js
@ -1,7 +1,25 @@
|
|||||||
// Инициализация даты при загрузке
|
// Инициализация даты при загрузке
|
||||||
document.addEventListener('DOMContentLoaded', function() {
|
document.addEventListener('DOMContentLoaded', function() {
|
||||||
const today = new Date().toISOString().split('T')[0];
|
const today = new Date().toISOString().split('T')[0];
|
||||||
|
|
||||||
|
// Заполняем форму примерными данными
|
||||||
|
document.getElementById('companyName').value = 'ТОО «АлматыСтройСервис»';
|
||||||
|
document.getElementById('companyBin').value = '123456789012';
|
||||||
|
document.getElementById('companyAddress').value = 'г. Алматы, ул. Абая 10';
|
||||||
|
document.getElementById('fio').value = 'Иванова Мария Петровна';
|
||||||
|
document.getElementById('debtAmount').value = '250000';
|
||||||
|
document.getElementById('currency').value = 'KZT';
|
||||||
|
document.getElementById('debtType').value = 'debtor';
|
||||||
|
document.getElementById('debtPeriod').value = 'Июль 2025 — Август 2025';
|
||||||
|
document.getElementById('reason').value = 'Подотчётные суммы по авансовому отчёту № 45 от 15.08.2025';
|
||||||
|
document.getElementById('document').value = 'Авансовый отчёт № 45 от 15.08.2025';
|
||||||
|
document.getElementById('legalBasis').value = 'ст. 114 ТК РК, п. 1 ст. 296 ГК РК';
|
||||||
document.getElementById('issueDate').value = today;
|
document.getElementById('issueDate').value = today;
|
||||||
|
document.getElementById('issueNumber').value = '123-С';
|
||||||
|
document.getElementById('recipient').value = 'Юридический отдел';
|
||||||
|
document.getElementById('director').value = 'Генеральный директор Петров П.П.';
|
||||||
|
document.getElementById('accountant').value = 'Главный бухгалтер Сидорова А.А.';
|
||||||
|
|
||||||
updateCertificate();
|
updateCertificate();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user