|
![]() |
#1 |
Участник
|
Да, есть такое дело... Сами заменили на следующее:
X++: ... EmplTable emplTable; ; ... while select EmplId from emplTable where emplTable.PayMainEmplId_Ru == emplTable.EmplId && (emplTable.EmplId == _emplId || (_emplId ? false : true)) { if (! _emplId) { operationProgress.setText("@HRP372" + emplTable.EmplId); operationProgress.incCount(); } for (currentPeriod = _payPeriod; currentPeriod <= endmth(openPeriod); currentPeriod = endmth(nextmth(currentPeriod))) { this.runFund(currentPeriod,emplTable.EmplId); } this.createCorrection(emplTable.EmplId); this.updateSumYearCompensation(year(_payPeriod), emplTable.EmplId); } |
|
|
За это сообщение автора поблагодарили: gl00mie (5). |
![]() |
#2 |
Участник
|
Спасибо, хотела заменить на таблицу сотрудников, но сомневалась, т.к. странно, что такое неработающее есть в типовом функционале.
А по поводу endmth(openPeriod) спасибо, а то получалось, что если перешли в след период. Там посчитали зарплату. Вернулись назад, пересчитали фонды и они учли в текущем открытом периоде в базе фонда все будущее начисления. |
|
![]() |
#3 |
Участник
|
Цитата:
Сообщение от rusk
![]() Да, есть такое дело... Сами заменили на следующее:
X++: ... EmplTable emplTable; ; ... while select EmplId from emplTable where emplTable.PayMainEmplId_Ru == emplTable.EmplId && (emplTable.EmplId == _emplId || (_emplId ? false : true)) { if (! _emplId) { operationProgress.setText("@HRP372" + emplTable.EmplId); operationProgress.incCount(); } for (currentPeriod = _payPeriod; currentPeriod <= endmth(openPeriod); currentPeriod = endmth(nextmth(currentPeriod))) { this.runFund(currentPeriod,emplTable.EmplId); } this.createCorrection(emplTable.EmplId); this.updateSumYearCompensation(year(_payPeriod), emplTable.EmplId); }
__________________
Sapere aude |
|
Теги |
расчет фондов, расчеты с персоналом |
|
Опции темы | Поиск в этой теме |
Опции просмотра | |
|