본문으로 이동

ERP code 수정

LS Taiwan
Hschoi2 (토론 | 기여)님의 2025년 5월 30일 (금) 05:37 판 (새 문서: ERP 코드 임의 수정 부분 기록 ==Project Overview== * 파일 elements.php 프로젝트 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 (...)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)

ERP 코드 임의 수정 부분 기록

Project Overview

  • 파일

elements.php

프로젝트 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");
}

655번 라인 - 삭제 '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') ),