How to enable TDS group Control

Hi,

How to get lookup on TDS group field. Here it's disable.

Any one please suggest me 

 

  • I think they are intentionally disabled. Have a look at \Forms\VendEditInvoice\Data Sources\VendInvoiceInfoLineTaxExtension_IN\Methods\active
    Why cannot you change them at purchase order line?
  • In reply to Kranthi:

    Hi kranthi,

    public int active()

    {

       int ret;

       ret = super();

       //Enabling the TDS/TCS fields and feature only if parameters are marked.

       if (ret && SysCountryRegionCode::isLegalEntityInCountryRegion([#isoIN]))

       {

           if (taxWithholdParameters.tdsActivate || taxWithholdParameters.tcsActivate)

           {

               element.setTaxWithholdEnabled_IN();

               WithholdingTax_Line_TDSGroup.Enable(true);

           }

           this.enableExciseFields_IN();

           //Enabling the India specific tax fields only for NON PO lines.

           vendInvoiceInfoLineTaxExtension_IN_ds.allowEdit(

               vendInvoiceInfoLine.isNonPO() ||

               VendInvoiceInfoTable.InvoiceType == PurchInvoiceType::VendorAdvance);

           //Disabling or hiding following fields for NO PO Lines.

           serviceTax_IsRecoverableServiceTax.visible(!vendInvoiceInfoLine.isNonPO());

       }

       return ret;

    }

    As per client Req they are changed in the invoice line only.

    Please send the correct code if any wrong on that 

  • In reply to AKumar:

    AKumar

    //Enabling the India specific tax fields only for NON PO lines.

           vendInvoiceInfoLineTaxExtension_IN_ds.allowEdit(

               vendInvoiceInfoLine.isNonPO() ||

               VendInvoiceInfoTable.InvoiceType == PurchInvoiceType::VendorAdvance);

    This is code that is responsible for that. You can only edit the data if any of the condition is satisfied.

    Try modifying it.

  • In reply to Kranthi:

    Hi kranthi,

    //Enabling the India specific tax fields only for NON PO lines.

    vendInvoiceInfoLineTaxExtension_IN_ds.allowEdit(

    vendInvoiceInfoLine.isNonPO() ||

    VendInvoiceInfoTable.InvoiceType == PurchInvoiceType::VendorAdvance);

    i commenting the above line of code still not getting the lookup

  • In reply to AKumar:

    Commenting the below code should enable the TDS group. Do you have any other changes in the form? Also check you don't have any value in TCS group.

    endInvoiceInfoLineTaxExtension_IN_ds.allowEdit(

    vendInvoiceInfoLine.isNonPO() ||

    VendInvoiceInfoTable.InvoiceType == PurchInvoiceType::VendorAdvance);
Related
Recommended