ExpenseAllocation - 전역
ExpenseAllocation 스크립트 포함은 다양한 비용 관리 프로세스에서 사용되며 스크립팅된 경비 할당 규칙에서 사용자 지정 경비 할당 기록(fm_expense_allocation)을 생성하는 데도 사용할 수 있습니다.
이 스크립트 포함에는 비용 관리(com.snc.cost_management) 플러그인이 필요합니다.
ExpenseAllocation - ExpenseAllocation(GlideRecord 경비, GlideRecord 규칙)
새 ExpenseAllocation 개체를 만들 때 호출됩니다.
고급 할당 규칙을 스크립팅하는 경우에는 필요하지 않습니다. 이 개체는 이미 할당 변수로 사용할 수 있습니다.
| 이름 | 유형 | 설명 |
|---|---|---|
| 비용 | GlideRecord | 경비의 출처를 식별하는 GlideRecord입니다. |
| 규칙 | GlideRecord | 경비 라인을 할당하는 데 사용할 규칙을 식별하는 GlideRecord입니다. |
| 유형 | 설명 |
|---|---|
| ExpenseAllocation 객체 | 방금 만든 ExpenseAllocation 개체입니다. |
var allocation=new ExpenseAllocation(expenseGlideRecord, ruleGlideRecord);
ExpenseAllocation - createAllocation(GlideRecord 대상, 숫자 금액)
인스턴스화 및 이 메서드 중에 제공된 매개변수를 참조하는 경비 할당(fm_expense_allocation) 기록을 생성합니다.
| 이름 | 유형 | 설명 |
|---|---|---|
| 대상 | GlideRecord | 할당의 GlideRecord 대상(예: 경비를 할당할 비용 센터 기록) 10진수 금액 - 할당 금액입니다. |
| 금액 | 번호 | 할당 금액입니다. |
| 유형 | 설명 |
|---|---|
| 부울 | 경비 할당이 성공적으로 생성된 경우 True입니다. |
var allocation=new ExpenseAllocation(expenseGlideRecord, ruleGlideRecord);
allocation.createAllocation(costCenterGlideRecord, 2345.67);