ERP code 수정
보이기
ERP 코드 임의 수정 부분 기록
Project Overview
- 파일
project\elements.php
- project overview
프로젝트 오버뷰는 프로젝트와 관련된 모든 것이 display된다. (느림)
프로젝트 생성이후 모든 history display.
급여 정보도 나옴
프로젝트 overview에서 급여(Salaries)가 표시되는 문제
코드에서 Salaries 부분 제거
The "salaries" section has been successfully removed from element.php. The code blocks related to the salaries module, including the require_once line, the salaries entry in the $listofreferent array, and the langs->load call, have been removed.
- 수정 부분
86번 라인 - 삭제
if (isModEnabled('salaries')) {
require_once DOL_DOCUMENT_ROOT.'/salaries/class/salary.class.php';
}
142번 라인 - 삭제
if (isModEnabled('salaries')) {
$langs->load("salaries");
}
</[re>
655번 라인 - 삭제
<pre>
'salaries' => array(
'name' => "Salaries",
'title' => "ListSalariesAssociatedProject",
'class' => 'Salary',
'table' => 'salary',
'datefieldname' => 'datesp',
'margin' => 'minus',
'disableamount' => 0,
'urlnew' => DOL_URL_ROOT.'/salaries/card.php?action=create&projectid='.$id.'&backtopage='.urlencode($_SERVER['PHP_SELF'].'?id='.$id),
'lang' => 'salaries',
'buttonnew' => 'AddSalary',
'testnew' => $user->hasRight('salaries', 'write'),
'test' => isModEnabled('salaries') && $user->hasRight('salaries', 'read')
),
참고 이전 형식 유지의 경우 사용
projet/element2.php?id=10 #프로젝트 ID
- 주의사항
업데이트의 경우 해당 파일을 바꿔 줄 것!
- Dolibarr 전체 업데이트 경우 수정해야 하는 것
- lang
- element 파일 수정