Skip to content

KVSPSAItem#

Extends #437dbf0e84ff417a965ded2bb9650972#Item

Fields#

Name Type Note
KVSPSAFactor Decimal
KVSPSABlocked Job Budget Boolean
KVSPSATotalPriceJobLedgerEntry Decimal FlowField
KVSPSARes. Qty. on Job Budget Decimal FlowField
KVSPSAJob Inventory Decimal FlowField
KVSPSAResponsibilCenterFilter Code[10] FlowFilter
KVSPSATarget Work Package Code Code[20]
KVSPSAQtyOnSalesOrderWoJobNo Decimal FlowField
KVSPSABlockedForNewSale Boolean

Procedures#

KVSPSACalcJobBudgetOutstandingQuantity() : Decimal#

Summary: Calculates the outstanding quantity of this item in all open job budget lines.

procedure KVSPSACalcJobBudgetOutstandingQuantity(): Decimal

Returns: Outstanding Quantity as Decimal

KVSPSASetJobBudgetFilter(Record KVSPSA Job Budget Line) :#

Summary: Sets filter on the job budget line, the filters are used when calculating the outstanding quantity.

procedure KVSPSASetJobBudgetFilter(var JobBudgetLine: Record "KVSPSA Job Budget Line"): 

Parameters:

  • JobBudgetLine: Record with applied filters

Events#

KVSPSAOnAfterCalcJobBudgetOutstandingQuantity(Record Item, Decimal) :#

Summary: Event is raised after the outstanding quantity of this item in all open job budget lines has been calculated.

[IntegrationEvent(false, false)]
local procedure KVSPSAOnAfterCalcJobBudgetOutstandingQuantity(var Item: Record "Item"; var OutstandingQuantity: Decimal): 
[EventSubscriber(ObjectType::TableExtension, TableExtension::"KVSPSAItem", 'KVSPSAOnAfterCalcJobBudgetOutstandingQuantity', '', false, false)]
local procedure DoSomethingKVSPSAOnAfterCalcJobBudgetOutstandingQuantity(var Item: Record "Item"; var OutstandingQuantity: Decimal)
begin
end;

Parameters:

  • Item: Item record
  • OutstandingQuantity: Calculated outstanding quantity

KVSPSAOnAfterSetJobBudgetFilter(Record Item, Record KVSPSA Job Budget Line) :#

Summary: Event is raised after the filter on the job budget line has been set.

[IntegrationEvent(false, false)]
local procedure KVSPSAOnAfterSetJobBudgetFilter(var Item: Record "Item"; var JobBudgetLine: Record "KVSPSA Job Budget Line"): 
[EventSubscriber(ObjectType::TableExtension, TableExtension::"KVSPSAItem", 'KVSPSAOnAfterSetJobBudgetFilter', '', false, false)]
local procedure DoSomethingKVSPSAOnAfterSetJobBudgetFilter(var Item: Record "Item"; var JobBudgetLine: Record "KVSPSA Job Budget Line")
begin
end;

Parameters:

  • Item: Item record
  • JobBudgetLine: Job Budget Line record with applied filters