---
id: object/codeunit/18470-in
type: object
title: Codeunit 18470 "Subcontracting Validations" (IN)
summary: Codeunit 18470 "Subcontracting Validations" (IN) in the IN country layer (Microsoft.Finance.GST.Subcontracting). 9 public procedures, 9 event subscribers. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - in layer
versions:
  introduced: "29"
  last_changed: null
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: 7747e90d06f9d5b39a712e4e136fa5298dbd8c765008dfe3cec12fca3f0d603d
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/IN/INGST/app/GSTSubcontracting/src/Codeunit/SubcontractingValidations.Codeunit.al
    title: src/Apps/IN/INGST/app/GSTSubcontracting/src/Codeunit/SubcontractingValidations.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations:
    - localization/in
  videos: []
  posts: []
  guidelines: []
object_type: codeunit
object_id: 18470
name: Subcontracting Validations
namespace: Microsoft.Finance.GST.Subcontracting
app: INGST
extends: null
first_version: "29"
last_version: "30"
present_in:
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
country: IN
counts:
  fields: 0
  procedures: 18
  events: 0
  subscribers: 9
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
---

# Codeunit 18470 "Subcontracting Validations" (IN)

> Codeunit 18470 "Subcontracting Validations" (IN) in the IN country layer (Microsoft.Finance.GST.Subcontracting). 9 public procedures, 9 event subscribers. Introduced in BC29, still in BC30.

IN country layer · Microsoft.Finance.GST.Subcontracting · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/IN/INGST/app/GSTSubcontracting/src/Codeunit/SubcontractingValidations.Codeunit.al) · facts from BC29

An object of the [IN localization](../../localizations/in.md), not part of W1.

## Properties

| Property | Value |
|---|---|
| TableNo | Purchase Line |
| Permissions | tabledata "Item Ledger Entry" = im |

## Event subscriptions

- OnAfterValidateQty2RejectRework subscribes to Table "Purchase Line" OnAfterValidateEvent (Qty. to Reject (Rework))
- OnAfterValidateEventQtyRejectedRework subscribes to Table "Purchase Line" OnAfterValidateEvent (Qty. Rejected (Rework))
- OnAfterValidateEventQty2RejectCE subscribes to Table "Purchase Line" OnAfterValidateEvent (Qty. to Reject (C.E.))
- OnAfterValidateEventQty2RejectVE subscribes to Table "Purchase Line" OnAfterValidateEvent (Qty. to Reject (V.E.))
- OnAfterValidateEventQtyRejectedCE subscribes to Table "Purchase Line" OnAfterValidateEvent (Qty. Rejected (C.E.))
- OnAfterValidateEventQtyRejectedVE subscribes to Table "Purchase Line" OnAfterValidateEvent (Qty. Rejected (V.E.))
- OnAfterValidateEventdeliverCompFor subscribes to Table "Purchase Line" OnAfterValidateEvent (Deliver Comp. For)
- OnAfterValidateEventdePostingDate subscribes to Table "Purchase Line" OnAfterValidateEvent (Posting Date)
- OnAfterValidateEventdeSubconStatus subscribes to Table "Purchase Line" OnAfterValidateEvent (Status)

## Procedures

- `UpdateSubConOrderLines(PurchaseLine: Record "Purchase Line")`
- `ValidateQuantity(PurchaseLine: Record "Purchase Line")`
- `UpdateIssueDetails(PurchaseLine: Record "Purchase Line")`
- `SetSubconAppliestoID(ID: Code[20]; var PurchLine: Record "Purchase Line"; Delivery: Boolean)`
- `MultipleDeliveryChallanList(PurchaseLine: Record "Purchase Line")`
- `ShowSubOrderDetailsForm(PurchLine: Record "Purchase Line")`
- `ShowSubOrderRcptForm(PurchLine: Record "Purchase Line")`
- `GetProdOrderCompUnitCost(ProdOrderNo: Code[20]; ProdOrderLineNo: Integer; ItemNo: Code[20]): Decimal`
- `GetTotalGSTAmount(RecID: RecordId): Decimal`

## Across versions

- Present in: BC29-30
- Changed (declaration) in: none

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## Ask your agent

Procedure bodies are not stored here (D10). For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: `bcatlas_resolve_node(object_type: "codeunit", object_name: "Subcontracting Validations")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.

A IN country object, not part of W1: the default corpus does not have it; `bcatlas_list_countries` shows which countries the atlas has.
