KVSPSAWork Package#
Fields#
| Name | Type | Note |
|---|---|---|
| Code | Code[20] | |
| Description | Text[100] | |
| Search Description | Code[100] | |
| Invoice Type | Option | OptionMembers: ,Account (GL),Item,Resource |
| Invoice No. | Code[20] | |
| Description 2 | Text[50] | |
| Time Posting w. Progress | Boolean | |
| Blocked | Boolean | |
| Budget (Quantity) | Decimal | FlowField |
| Work Type Code | Code[10] | |
| Usage (Quantity) | Decimal | FlowField |
| Date Filter | Date | FlowFilter |
| Type Filter | Enum (KVSPSAJobBudgetLineType) | FlowFilter |
| Job Filter | Code[20] | FlowFilter |
| KVSPSAInvoicing Type | Enum (KVSPSAPspInvoicingType) | |
| Use as Bundle | Boolean | |
| BudgetCalculation | Boolean | |
| Transfer in Sales Doc | Option | OptionMembers: PSP-Line,Budget-Lines,To-Do,no transfer |
| No Consideration in Planning | Boolean | |
| Requisition | Boolean | |
| Common Code | Code[10] | |
| Info BOM Total Cost (LCY) | Decimal | FlowField |
| Info BOM Total Price (LCY) | Decimal | FlowField |
| Last BOM Recalc. | Date | |
| Invoicing Delimination | Boolean | |
| Invoicing Delimination Percent | Decimal | |
| Use in Resource Planning | Boolean | |
| Automatic Progress Calculation | Boolean | |
| Budget Type Item | Boolean | |
| Budget Type G/L Account | Boolean | |
| Budget Type Resource | Boolean | |
| Budget Allowed | Boolean | |
| Unit of Measure Code | Code[10] | |
| KVSPSAInvoicUnitOfMeasureCode | Code[10] | |
| Surcharge Type Code | Code[20] | |
| Distrib. Calc. Formula Code | Code[20] | |
| Period Unit Type | Enum (KVSPSAPeriodUnitType) | |
| Distribution Level Type | Enum (KVSPSADistributionLevelType) | |
| Keep Total Quantity | Boolean | |
| Use Resource Capacity | Boolean | |
| Distribution Base Type | Enum (KVSPSADistributionBaseType) | |
| Rounding Precision | Decimal | |
| No Active Planning | Boolean | |
| Distribute Differences | Boolean |
Procedures#
GetAndCheckBlocked(Code[20]) :#
Summary: This procedure checks if a work package is valid to use or not.
procedure GetAndCheckBlocked(No: Code[20]):
Parameters:
No: No. of the work package to check.
Events#
OnBeforeCheckWorkPackageUsed(Record KVSPSAWork Package, Record KVSPSAWork Package, Boolean) :#
Summary: Called before the CheckWorkPackageUsed checks are run
[IntegrationEvent(false, false)]
local procedure OnBeforeCheckWorkPackageUsed(Rec: Record "KVSPSAWork Package"; xRec: Record "KVSPSAWork Package"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Table, Table::"KVSPSAWork Package", 'OnBeforeCheckWorkPackageUsed', '', false, false)]
local procedure DoSomethingOnBeforeCheckWorkPackageUsed(Rec: Record "KVSPSAWork Package"; xRec: Record "KVSPSAWork Package"; var IsHandled: Boolean)
begin
end;
Parameters:
Rec: Record "KVSPSAWork Package"xRec: xRecord "KVSPSAWork Package"IsHandled: Boolean that controlls if CheckWorkPackageUsed should be exited