適用先
Dynamics NAV 2009

この資料は、(言語のロケールで)、インドは、Microsoft Dynamics NAV に適用されます。

現象

インドの Microsoft Dynamics NAV 2009 サービス パック 1 (SP1) のバージョンでは、表示されている「税の割合] 値が正しくないと転記済の販売請求書の明細行、販売注文明細行にします。税の詳細設定で税下最小値と一致するように「税 %」の値を必要とします。購買ドキュメントにも同じ問題が発生します。

解決策

修正プログラムの情報

サポートされている修正プログラムはマイクロソフトから現在入手可能です。ただし、この資料に記載されている問題を解決するためのものはのみ。この特定の問題が発生したシステムにのみ適用してください。この修正プログラムは、今後さらにテストを行うことがあります。この問題で深刻な影響を受けていない場合は、次の Microsoft Dynamics NAV 2009 サービス パックまたは修正プログラムを含む次の Microsoft Dynamics NAV バージョン待つことを勧めします。注: かかる料金が免除されるテクニカル サポート担当者 Microsoft Dynamics および関連製品のことは、通常は特別な場合は、特定の更新プログラムは、問題を解決するにを決定します。追加の質問および問題の特定のアップデートの対象にはなりませんが、通常のサポート料金が適用されます。

インストール情報

マイクロソフトでは解説することのみを目的としてプログラミング例を提供しています。暗示あるいは明示していることに対しての保証はしておりません。ここで言う保証とは、特定の目的に対する商品性や適合性の暗示的保証を含んでいますが、それに限定されるわけではありません。この資料では、例示されているプログラミング言語およびプロシージャの作成やデバッグに使用するツールにお客様が精通していることを前提としています。マイクロソフトのサポート エンジニアは、特定のプロシージャの機能を説明することができますが、機能の追加またはお客様固有の要件を満たすようにプロシージャを作成するこれらの例は変更されません。注: この修正プログラムをインストールする前に、Microsoft Navision のすべてのクライアント ユーザーがシステムの電源を記録することを確認します。これには、Microsoft Navision アプリケーション サービス (NAS) クライアントのユーザーが含まれます。この修正プログラムを実装すると、ログオンしている唯一のクライアント ユーザーが必要です。この修正プログラムを実装するには、開発者用のライセンスが必要です。ユーザー アカウントまたはデータベース ログイン ウィンドウに Windows のログイン ウィンドウにある「スーパー」ロール id を割り当てられていることをお勧めします。ユーザー アカウントには、「スーパー」ロール ID を割り当てることができません、する場合は、ユーザー アカウントが次のアクセス許可を持っているを確認する必要があります。

  • 変更するオブジェクトの変更のアクセス許可。

  • システム オブジェクトの ID 5210オブジェクトおよびシステム オブジェクトの ID 9015オブジェクトの実行が許可されます。

注: データの修復を実行する必要があるない限り、データ ストアへの権限を持っている必要はありません。

コードの変更

注: 常にテスト コードを修正、管理された環境で適用する前に、運用コンピューターに修正プログラムします。 この問題を解決するには、次の手順を実行します。

  1. 販売明細行のテーブル (37) の金額を含む税のOnValidateトリガーのコードを次のように変更します。既存のコード

    ...                                                                      ELSE                                                                    "Amount To Customer" :=                                                                      ROUND("Line Amount" - "Inv. Discount Amount" + "Excise Amount" + "Charges To Customer" -                                                                        "Bal. TDS/TCS Including SHECESS"  + "Service Tax Amount" +"Service Tax eCess Amount" +                                                                         "Service Tax SHE Cess Amount",Currency."Amount Rounding Precision");                                                                END;// Delete the following lines.                                                                //IF "Tax Base Amount" <> 0 THEN                                                                 //  "Tax %" := ROUND(100 * ("Amount Including Tax" - "Tax Base Amount") / "Tax Base Amount",Currency."Amount Rounding Precision")                                                                 //ELSE                                                                 //  "Tax %" := 0; // End of the deleted lines.                                                                InitOutstandingAmount;                                                              END;    ...

    置換用コード

    ...                                                                     ELSE                                                                    "Amount To Customer" :=                                                                      ROUND("Line Amount" - "Inv. Discount Amount" + "Excise Amount" + "Charges To Customer" -                                                                        "Bal. TDS/TCS Including SHECESS"  + "Service Tax Amount" +"Service Tax eCess Amount" +                                                                         "Service Tax SHE Cess Amount",Currency."Amount Rounding Precision");                                                                END;// Add the following lines.                                                                 IF "Tax Base Amount" = 0 THEN                                                                   "Tax %" := 0; // End of the added lines.                                                                InitOutstandingAmount;                                                              END;  ...
  2. 販売明細行のテーブル (37) のUpdateTaxAmounts関数内のコードを次のように変更します。既存のコード 1

    ...     "Bal. TDS/TCS Including SHECESS" + "Service Tax Amount"  + "Service Tax eCess Amount" +      "Service Tax SHE Cess Amount",Currency."Amount Rounding Precision")END;IndianSalesTaxCalculate.SetCurrency("Currency Code" <>'');// Delete the following lines.//LineTaxAmount := IndianSalesTaxCalculate.CalculateTax( //  "Tax Area Code","Tax Group Code","Tax Liable",SalesHeader."Posting Date", //  "Tax Base Amount",Quantity,SalesHeader."Currency Factor","Form Code");// End of the deleted lines.TotalTaxAmount := 0;TotalStdDeductionAmt := 0;...

    置換用コード 1

    ...     "Bal. TDS/TCS Including SHECESS" + "Service Tax Amount"  + "Service Tax eCess Amount" +      "Service Tax SHE Cess Amount",Currency."Amount Rounding Precision")END;IndianSalesTaxCalculate.SetCurrency("Currency Code" <>'');// Add the following lines.LineTaxAmount := IndianSalesTaxCalculate.CalculateTax(   "Tax Area Code","Tax Group Code","Tax Liable",SalesHeader."Posting Date",  "Tax Base Amount",Quantity,SalesHeader."Currency Factor","Form Code","Tax %"); // End of the added lines.TotalTaxAmount := 0;TotalStdDeductionAmt := 0;...

    既存のコード 2

    ...      END ELSE      IndianSalesTaxCalculate.GetStandardDeductionAmt(Rec,StandardDeductionAmount,LineTaxAmount);  ENDEND;"Amount Including Tax" := ROUND("Tax Base Amount" + LineTaxAmount,Currency."Amount Rounding Precision");// Delete the following lines.//IF "Tax Base Amount" <> 0 THEN //  "Tax %" := //     ROUND(100 * ("Amount Including Tax" - "Tax Base Amount") / "Tax Base Amount",Currency."Amount Rounding Precision") //ELSE //  "Tax %" := 0; // End of the deleted lines.IF "Standard Deduction %" <>0 THEN  "Standard Deduction Amount" := ("Tax Base Amount" * "Standard Deduction %" / 100)   ...

    置換用コード 2

    ...    END ELSE      IndianSalesTaxCalculate.GetStandardDeductionAmt(Rec,StandardDeductionAmount,LineTaxAmount);  ENDEND;"Amount Including Tax" := ROUND("Tax Base Amount" + LineTaxAmount,Currency."Amount Rounding Precision");// Add the following lines.IF "Tax Base Amount" = 0 THEN   "Tax %" := 0; // End of the added lines.IF "Standard Deduction %" <>0 THEN  "Standard Deduction Amount" := ("Tax Base Amount" * "Standard Deduction %" / 100)   ...
  3. (39)購買注文明細行の表に金額を含む税のOnValidateトリガーのコードを次のように変更します。既存のコード

    ...       "Amount To Vendor" := ROUND("Line Amount" -"Inv. Discount Amount" + "Excise Amount" + "Tax Amount" -      "Bal. TDS Including SHE CESS"  + "Charges To Vendor" + "Service Tax Amount" +      "Service Tax eCess Amount" + "Service Tax SHE Cess Amount");END;// Delete the following lines.//IF "Tax Base Amount" <> 0 THEN //  "Tax %" := ROUND(100 * ("Amount Including Tax" - "Tax Base Amount") / "Tax Base Amount", //     Currency."Amount Rounding Precision") //ELSE // Delete//  "Tax %" := 0; // End of the deleted lines.InitOutstandingAmount;  ...

    置換用コード

    ...       "Amount To Vendor" := ROUND("Line Amount" -"Inv. Discount Amount" + "Excise Amount" + "Tax Amount" -      "Bal. TDS Including SHE CESS"  + "Charges To Vendor" + "Service Tax Amount" +      "Service Tax eCess Amount" + "Service Tax SHE Cess Amount");END;// Add the following lines.IF "Tax Base Amount" = 0 THEN // Add// End of the added lines.InitOutstandingAmount;  ...
  4. (39)購買注文明細行のテーブル内のUpdateTaxAmounts関数内のコードを次のように変更します。既存のコード 1

    ...     "Bal. TDS Including SHECESS" + "Service Tax Amount"  + "Service Tax eCess Amount" +      "Service Tax SHE Cess Amount",Currency."Amount Rounding Precision")END;IndianSalesTaxCalculate.SetCurrency("Currency Code" <>'');// Delete the following lines.//LineTaxAmount := ROUND(IndianSalesTaxCalculate.CalculateTax( //    "Tax Area Code","Tax Group Code","Tax Liable",PurchHeader."Posting Date", //    "Tax Base Amount",Quantity,PurchHeader."Currency Factor","Form Code"),Currency."Amount Rounding Precision"); // End of the deleted lines.AmountonInventory := 0;InputTaxCreditAmount := 0;...

    置換用コード 1

    ...     "Bal. TDS Including SHECESS" + "Service Tax Amount"  + "Service Tax eCess Amount" +      "Service Tax SHE Cess Amount",Currency."Amount Rounding Precision")END;IndianSalesTaxCalculate.SetCurrency("Currency Code" <>'');// Add the following lines.     LineTaxAmount := ROUND(IndianSalesTaxCalculate.CalculateTax(     "Tax Area Code","Tax Group Code","Tax Liable",PurchHeader."Posting Date",     "Tax Base Amount",Quantity,PurchHeader."Currency Factor","Form Code","Tax %"),Currency."Amount Rounding Precision");// End of the added lines.AmountonInventory := 0;InputTaxCreditAmount := 0;...

    既存のコード 2

    ...  "Tax Amount" := ROUND(TaxAmount,Currency."Amount Rounding Precision");"Amount Including Tax" := ("Tax Base Amount" + "Tax Amount");// Delete the following lines.//IF "Tax Base Amount" <> 0 THEN//  "Tax %" := ROUND(100 * ("Amount Including Tax" - "Tax Base Amount") / "Tax Base Amount", //    Currency."Amount Rounding Precision") //ELSE //  "Tax %" := 0; // End of the deleted lines.ServiceTaxSetup.RESET;...

    置換用コード 2

    ...   "Tax Amount" := ROUND(TaxAmount,Currency."Amount Rounding Precision");"Amount Including Tax" := ("Tax Base Amount" + "Tax Amount");// Add the following lines.IF "Tax Base Amount" = 0 THEN   "Tax %" := 0;// End of the added lines.ServiceTaxSetup.RESET;...
  5. UpdateTaxAmount VAT オープン仕訳帳テーブル (16569) には、関数内のコードを次のように変更します。既存のコード

    ...  IF "Transaction Type" = "Transaction Type"::Purchase THEN BEGIN// Delete the following lines.  //LineTaxAmount := IndianSalesTaxCalculate.CalculateTax(  //  "Tax Area Code","Tax Group Code",TRUE,"Posting Date",   //  "Tax Base Amount",Quantity,0,''); // End of the deleted lines.  IF LineTaxAmount <> 0 THEN    IndianSalesTaxCalculate.GetVATOpeningInputTaxCredit(Rec,"Amount Loaded on Item",      "Input Credit/Output Tax Amount",TRUE,TaxAmount);  "Tax Amount" := TaxAmount;  IF GLSetup."VAT Rounding Precision" <> 0 THEN    "Tax Amount" := ROUND("Tax Amount",GLSetup."VAT Rounding Precision",Direction);// Delete the following lines.  //IF "Tax Base Amount" <> 0 THEN   //  "Tax %" := 100 * (("Tax Base Amount" + "Tax Amount") - "Tax Base Amount") / "Tax Base Amount"   //ELSE   //  "Tax %" := 0; // End of the deleted lines.END ELSE IF "Transaction Type" = "Transaction Type"::Sale THEN BEGIN  IF ("Export or Deemed Export") THEN    EXIT;// Delete the following lines.  //LineTaxAmount := IndianSalesTaxCalculate.CalculateTax(   //   "Tax Area Code","Tax Group Code",TRUE,"Posting Date",   //   "Tax Base Amount",Quantity,0,''); // End of the deleted lines.  IF LineTaxAmount <> 0 THEN    IndianSalesTaxCalculate.GetVATOpeningSTD(Rec,StandardDeductionAmount,TaxAmount);  "Tax Amount" := TaxAmount - StandardDeductionAmount;// Delete the following lines.  //IF "Tax Base Amount" <> 0 THEN   //  "Tax %" := 100 * (("Tax Base Amount" + "Tax Amount") - "Tax Base Amount") / "Tax Base Amount"   //ELSE   //  "Tax %" := 0; // End of the deleted lines.  "Input Credit/Output Tax Amount" := "Tax Amount";  "Amount Loaded on Item" := 0;END;...

    置換用コード

    ...  IF "Transaction Type" = "Transaction Type"::Purchase THEN BEGIN// Add the following lines.  LineTaxAmount := IndianSalesTaxCalculate.CalculateTax(     "Tax Area Code","Tax Group Code",TRUE,"Posting Date",     "Tax Base Amount",Quantity,0,'',"Tax %"); // End of the added lines.  IF LineTaxAmount <> 0 THEN    IndianSalesTaxCalculate.GetVATOpeningInputTaxCredit(Rec,"Amount Loaded on Item",      "Input Credit/Output Tax Amount",TRUE,TaxAmount);  "Tax Amount" := TaxAmount;  IF GLSetup."VAT Rounding Precision" <> 0 THEN    "Tax Amount" := ROUND("Tax Amount",GLSetup."VAT Rounding Precision",Direction);// Add the following lines.  IF "Tax Base Amount" = 0 THEN     "Tax %" := 0; // End of the added lines.END ELSE IF "Transaction Type" = "Transaction Type"::Sale THEN BEGIN  IF ("Export or Deemed Export") THEN    EXIT; // Add the following lines.  LineTaxAmount := IndianSalesTaxCalculate.CalculateTax(      "Tax Area Code","Tax Group Code",TRUE,"Posting Date",      "Tax Base Amount",Quantity,0,'',"Tax %"); // End of the added lines.  IF LineTaxAmount <> 0 THEN    IndianSalesTaxCalculate.GetVATOpeningSTD(Rec,StandardDeductionAmount,TaxAmount);  "Tax Amount" := TaxAmount - StandardDeductionAmount; // Add the following lines.  IF "Tax Base Amount" = 0 THEN // Add    "Tax %" := 0; // Add// End of the added lines.  "Input Credit/Output Tax Amount" := "Tax Amount";  "Amount Loaded on Item" := 0;END;...
  6. インドの売上税計算codeunit (13704) 内のコードを次のように変更します。既存のコード

    ...        Taxamount := TaxBaseAmount * TaxDetail."Tax Below Maximum" / 100;      IF (TaxJurisdiction."Tax Type" = TaxJurisdiction."Tax Type"::VAT) OR         (TaxJurisdiction."Tax Type" = TaxJurisdiction."Tax Type"::CST)              ...

    置換用コード

    ...         Taxamount := TaxBaseAmount * TaxDetail."Tax Below Maximum" / 100;// Add the following line.      TaxPercent :=  TaxDetail."Tax Below Maximum";// End of the added line.      IF (TaxJurisdiction."Tax Type" = TaxJurisdiction."Tax Type"::VAT) OR         (TaxJurisdiction."Tax Type" = TaxJurisdiction."Tax Type"::CST)...7. Codeunit 13704 Indian Sales Tax Calculate Function CalculateTax Add the below Parameter VAR TaxPercent Type Decimal

必要条件

インドのバージョンの Microsoft Dynamics NAV 2009 サービス パック 1 (SP1) この修正プログラムを適用するためにインストールする必要があります。

アンインストール情報

この修正プログラムを削除することはできません。

状況

マイクロソフトは、この問題を「対象製品」セクションに記載されているマイクロソフト製品の問題として認識しています。

関連情報

VSTF DynamicsNAV SE: 252133

注: これは、マイクロソフト サポートの組織内から直接作成した「高速公開」の資料です。ここに含まれる情報は、新たに発生している問題に応じて現状のまま提供されています。速やかに利用できるようにした結果として、内容には誤植が含まれている可能性があり、事前告知なしで改訂する場合があります。その他の考慮事項については、使用条件を参照してください。

ヘルプを表示

その他のオプションが必要ですか?

サブスクリプションの特典の参照、トレーニング コースの閲覧、デバイスのセキュリティ保護方法などについて説明します。