应用对象
Dynamics NAV 2009

甚至当您没有权限在西班牙语版本的 Microsoft Dynamics 导航 2009年使用 Cartera,可以从客户或供应商的分类帐条目应用付款和帐单。问题是,"如果没有 Cartera 权限"应用这些文档 (付款和物料清单) 时清单保持 Cartera 应收帐款或应付文档中的"打开"。这会导致数据库不一致。在下列产品中发生此问题︰

  • 西班牙语版本的 Microsoft Dynamics 导航 2009 R2

  • 西班牙语版本的 Microsoft Dynamics 导航 2009 SP1

解决方案

修补程序信息

受支持的修补程序现已从 Microsoft 推出。然而,它仅用于纠正本文中描述的问题。它仅应用于正经历此特定问题的系统。此修补程序可能会接受进一步的测试。因此,如果这个问题没有对您造成严重的影响,我们建议您等待下一个 Microsoft Dynamics 导航 2009 服务包 或包含此修复程序的下一步的 Microsoft Dynamics 导航版本。注意: 在特殊情况下,可免收的支持电话,可免收如果技术支持专业人员对 Microsoft Dynamics 和相关的产品的费用确定某个特定的更新能够解决您的问题。照常收取支持费用将应用于其他支持问题和对于特定更新无法解决的问题。

安装信息

Microsoft 提供的编程示例仅用于说明,没有任何明示或暗示的担保。这包括但不限于适销性或特定用途适用性的暗示担保。本文假定您熟悉所演示的编程语言和用于创建和调试过程的工具。Microsoft 的支持工程师可以帮助解释某个特定过程的功能。但是,他们不会修改这些示例以提供额外的功能或构建过程以满足您的特定要求。注意:安装此修复程序之前,请验证所有 Microsoft Dynamics 导航客户端用户都注销系统。这包括 Microsoft Dynamics 导航应用程序服务器 (NAS) 服务。要实现此修补程序时,在登录的唯一客户端用户。若要实现此修补程序,必须使用开发人员许可证。我们建议在 Windows 登录窗口或数据库登录窗口中的用户帐户将分配该"超级"角色 id。如果不能将用户帐户分配成"超级"角色 ID,则必须验证用户帐户具有下列权限:

  • 您将更改该对象的修改权限。

  • 为系统对象 ID™ 5210对象和系统对象 ID 9015执行权限对象。

注意:您不需要具有对数据存储区的权限,除非您需要执行数据修复。

代码更改

注始终测试代码修补程序在受控环境中之前将修补程序应用到生产计算机。在应用之前更改,请导入 SEPA 的所有更新。若要解决此问题,请执行以下步骤:

  1. 更改全局变量在代码 Gen.Jnl。-开机自检线路 Codeunit (12),如下所示︰现有代码

    ...Text1100010@1100016 : TextConst 'ENU=Remove it from its payment order and try again.;ESP=B¢rrelo de la orden de pago e int‚ntelo de nuevo.';        Text1100011@1100021 : TextConst 'ENU=Document Type is " " in Line %1. This posting will not realize the VAT, do you want to proceed?;ESP=El tipo de documento es " " en la l¡nea %1. Esta contabilizaci¢n no tendr  en cuenta el IVA, ¨desea continuar?';        Text1100012@1100022 : TextConst 'ENU=The posting process has been cancelled by the user.;ESP=El proceso de registro ha sido cancelado por el usuario.';        AppliedAmountLCY2@1100053 : Decimal;        AppliesToDocType@1100023 : Integer;      PROCEDURE GetGLReg@10(VAR NewGLReg@1000 : Record 45);      BEGIN        NewGLReg := GLReg;      END;... 

    替换代码

    ...Text1100010@1100016 : TextConst 'ENU=Remove it from its payment order and try again.;ESP=B¢rrelo de la orden de pago e int‚ntelo de nuevo.';        Text1100011@1100021 : TextConst 'ENU=Document Type is " " in Line %1. This posting will not realize the VAT, do you want to proceed?;ESP=El tipo de documento es " " en la l¡nea %1. Esta contabilizaci¢n no tendr  en cuenta el IVA, ¨desea continuar?';        Text1100012@1100022 : TextConst 'ENU=The posting process has been cancelled by the user.;ESP=El proceso de registro ha sido cancelado por el usuario.';        AppliedAmountLCY2@1100053 : Decimal;        AppliesToDocType@1100023 : Integer;// Add the following line.Text1100013@1100026 : TextConst 'ENU=You do not have permissions to apply or unapply documents in the Cartera Module.';// End of the added line.      PROCEDURE GetGLReg@10(VAR NewGLReg@1000 : Record 45);      BEGIN        NewGLReg := GLReg;      END;...
  2. 更改的代码ApplyCustLedgEntry函数中 Gen.Jnl。-开机自检线路 Codeunit (12),如下所示︰现有代码 1

    ...OldCustLedgEntry.SETRANGE("Bill No.",NewCVLedgEntryBuf."Applies-to Bill No.");          OldCustLedgEntry.SETRANGE("Customer No.",NewCVLedgEntryBuf."CV No.");          OldCustLedgEntry.SETRANGE(Open,TRUE);          OldCustLedgEntry.FINDFIRST;          OldCustLedgEntry.TESTFIELD(Positive,NOT NewCVLedgEntryBuf.Positive);          IF AppManagement.AccessToCartera THEN            DocPost.CheckAppliedReceivableDoc(              OldCustLedgEntry,GenJnlLine."System-Created Entry");...

    替换代码 1

    ...OldCustLedgEntry.SETRANGE("Bill No.",NewCVLedgEntryBuf."Applies-to Bill No.");          OldCustLedgEntry.SETRANGE("Customer No.",NewCVLedgEntryBuf."CV No.");          OldCustLedgEntry.SETRANGE(Open,TRUE);          OldCustLedgEntry.FINDFIRST;// Add the following line.CheckCarteraAccessPermissions(OldCustLedgEntry."Document Situation");// End of the added line.          OldCustLedgEntry.TESTFIELD(Positive,NOT NewCVLedgEntryBuf.Positive);          IF AppManagement.AccessToCartera THEN            DocPost.CheckAppliedReceivableDoc(              OldCustLedgEntry,GenJnlLine."System-Created Entry");...

    现有代码 2

    ...// Check Cust Ledger Entry and add to Temp.          IF SalesSetup."Appln. between Currencies" = SalesSetup."Appln. between Currencies"::None THEN            OldCustLedgEntry.SETRANGE("Currency Code",NewCVLedgEntryBuf."Currency Code");          IF OldCustLedgEntry.FINDSET(FALSE,FALSE) THEN// Delete the following lines.REPEATIF GenJnlApply.CheckAgainstApplnCurrency(NewCVLedgEntryBuf."Currency Code",OldCustLedgEntry."Currency Code",GenJnlLine."Account Type"::Customer,FALSE)THEN BEGINIF (OldCustLedgEntry."Posting Date" > ApplyingDate) AND (OldCustLedgEntry."Applies-to ID" <> '') THENApplyingDate := OldCustLedgEntry."Posting Date";TempOldCustLedgEntry := OldCustLedgEntry;TempOldCustLedgEntry.INSERT;END;UNTIL OldCustLedgEntry.NEXT=0;// End of the deleted lines.          TempOldCustLedgEntry.SETRANGE(Positive,NewCVLedgEntryBuf."Remaining Amount" > 0);          IF TempOldCustLedgEntry.FIND('-') THEN BEGIN...

    替换代码 2

    ...// Check Cust Ledger Entry and add to Temp.          IF SalesSetup."Appln. between Currencies" = SalesSetup."Appln. between Currencies"::None THEN            OldCustLedgEntry.SETRANGE("Currency Code",NewCVLedgEntryBuf."Currency Code");          IF OldCustLedgEntry.FINDSET(FALSE,FALSE) THEN// Add the following lines.REPEATCheckCarteraAccessPermissions(OldCustLedgEntry."Document Situation");IF GenJnlApply.CheckAgainstApplnCurrency(NewCVLedgEntryBuf."Currency Code",OldCustLedgEntry."Currency Code",GenJnlLine."Account Type"::Customer,FALSE)THEN BEGINIF (OldCustLedgEntry."Posting Date" > ApplyingDate) AND (OldCustLedgEntry."Applies-to ID" <> '') THENApplyingDate := OldCustLedgEntry."Posting Date";TempOldCustLedgEntry := OldCustLedgEntry;TempOldCustLedgEntry.INSERT;END;UNTIL OldCustLedgEntry.NEXT=0;// End of the added lines.          TempOldCustLedgEntry.SETRANGE(Positive,NewCVLedgEntryBuf."Remaining Amount" > 0);          IF TempOldCustLedgEntry.FIND('-') THEN BEGIN...
  3. 更改代码中的UnapplyCustLedgEntry函数中 Gen.Jnl。-开机自检线路 Codeunit (12),如下所示︰现有代码

    ...DtldCustLedgEntry2.SETRANGE("Customer No.",DtldCustLedgEntry."Customer No.");        DtldCustLedgEntry2.SETFILTER("Entry Type",'>%1',DtldCustLedgEntry."Entry Type"::"Initial Entry");        UnapplyVATEntries := FALSE;        DtldCustLedgEntry2.FINDSET;        REPEAT          DtldCustLedgEntry2.TESTFIELD(Unapplied,FALSE);          IF (DtldCustLedgEntry2."Entry Type" = DtldCustLedgEntry2."Entry Type"::"Payment Discount (VAT Adjustment)") OR             (DtldCustLedgEntry2."Entry Type" = DtldCustLedgEntry2."Entry Type"::"Payment Tolerance (VAT Adjustment)") OR             (DtldCustLedgEntry2."Entry Type" = DtldCustLedgEntry2."Entry Type"::"Payment Discount Tolerance (VAT Adjustment)")          THEN...

    替换代码

    ...DtldCustLedgEntry2.SETRANGE("Customer No.",DtldCustLedgEntry."Customer No.");        DtldCustLedgEntry2.SETFILTER("Entry Type",'>%1',DtldCustLedgEntry."Entry Type"::"Initial Entry");        UnapplyVATEntries := FALSE;        DtldCustLedgEntry2.FINDSET;        REPEAT// Add the following line.CheckCarteraAccessPermissions(DtldCustLedgEntry2."Document Situation");// End of the added line.          DtldCustLedgEntry2.TESTFIELD(Unapplied,FALSE);          IF (DtldCustLedgEntry2."Entry Type" = DtldCustLedgEntry2."Entry Type"::"Payment Discount (VAT Adjustment)") OR             (DtldCustLedgEntry2."Entry Type" = DtldCustLedgEntry2."Entry Type"::"Payment Tolerance (VAT Adjustment)") OR             (DtldCustLedgEntry2."Entry Type" = DtldCustLedgEntry2."Entry Type"::"Payment Discount Tolerance (VAT Adjustment)")          THEN...
  4. 更改代码中的ApplyVendLedgEntry函数中 Gen.Jnl。-开机自检线路 Codeunit (12),如下所示︰现有代码 1

    ...OldVendLedgEntry.SETRANGE("Document Type",GenJnlLine."Applies-to Doc. Type");          OldVendLedgEntry.SETRANGE("Bill No.",NewCVLedgEntryBuf."Applies-to Bill No.");          OldVendLedgEntry.SETRANGE("Vendor No.",NewCVLedgEntryBuf."CV No.");          OldVendLedgEntry.SETRANGE(Open,TRUE);          OldVendLedgEntry.FINDFIRST;          OldVendLedgEntry.TESTFIELD(Positive,NOT NewCVLedgEntryBuf.Positive);          IF AppManagement.AccessToCartera THEN            DocPost.CheckAppliedPayableDoc(            OldVendLedgEntry,GenJnlLine."System-Created Entry");...

    替换代码 1

    ...OldVendLedgEntry.SETRANGE("Document Type",GenJnlLine."Applies-to Doc. Type");          OldVendLedgEntry.SETRANGE("Bill No.",NewCVLedgEntryBuf."Applies-to Bill No.");          OldVendLedgEntry.SETRANGE("Vendor No.",NewCVLedgEntryBuf."CV No.");          OldVendLedgEntry.SETRANGE(Open,TRUE);          OldVendLedgEntry.FINDFIRST;// Add the following line.CheckCarteraAccessPermissions(OldVendLedgEntry."Document Situation");// End of the added line.          OldVendLedgEntry.TESTFIELD(Positive,NOT NewCVLedgEntryBuf.Positive);          IF AppManagement.AccessToCartera THEN            DocPost.CheckAppliedPayableDoc(            OldVendLedgEntry,GenJnlLine."System-Created Entry");...

    现有代码 2

    ...//Check and Move Ledger Entries to Temp          IF PurchSetup."Appln. between Currencies" = PurchSetup."Appln. between Currencies"::None THEN            OldVendLedgEntry.SETRANGE("Currency Code",NewCVLedgEntryBuf."Currency Code");          IF OldVendLedgEntry.FINDSET(FALSE,FALSE) THEN            REPEAT              IF GenJnlApply.CheckAgainstApplnCurrency(                   NewCVLedgEntryBuf."Currency Code",                   OldVendLedgEntry."Currency Code",                   GenJnlLine."Account Type"::Vendor,                   FALSE)...

    替换代码 2

    ...//Check and Move Ledger Entries to Temp          IF PurchSetup."Appln. between Currencies" = PurchSetup."Appln. between Currencies"::None THEN            OldVendLedgEntry.SETRANGE("Currency Code",NewCVLedgEntryBuf."Currency Code");          IF OldVendLedgEntry.FINDSET(FALSE,FALSE) THEN            REPEAT// Add the following line.CheckCarteraAccessPermissions(OldVendLedgEntry."Document Situation");// End of the added line.              IF GenJnlApply.CheckAgainstApplnCurrency(                   NewCVLedgEntryBuf."Currency Code",                   OldVendLedgEntry."Currency Code",                   GenJnlLine."Account Type"::Vendor,                   FALSE)...
  5. 更改代码中的UnapplyVendLedgEntry函数中 Gen.Jnl。-开机自检线路 Codeunit (12),如下所示︰现有代码

    ...DtldVendLedgEntry2.SETCURRENTKEY("Transaction No.","Vendor No.","Entry Type");        DtldVendLedgEntry2.SETRANGE("Transaction No.",DtldVendLedgEntry."Transaction No.");        DtldVendLedgEntry2.SETRANGE("Vendor No.",DtldVendLedgEntry."Vendor No.");        DtldVendLedgEntry2.SETFILTER("Entry Type",'>%1',DtldVendLedgEntry."Entry Type"::"Initial Entry");        DtldVendLedgEntry2.FINDSET;        UnapplyVATEntries := FALSE;        REPEAT          IF (DtldVendLedgEntry2."Entry Type" = DtldVendLedgEntry2."Entry Type"::"Payment Discount (VAT Adjustment)") OR             (DtldVendLedgEntry2."Entry Type" = DtldVendLedgEntry2."Entry Type"::"Payment Tolerance (VAT Adjustment)") OR             (DtldVendLedgEntry2."Entry Type" = DtldVendLedgEntry2."Entry Type"::"Payment Discount Tolerance (VAT Adjustment)")...

    替换代码

    ...DtldVendLedgEntry2.SETCURRENTKEY("Transaction No.","Vendor No.","Entry Type");        DtldVendLedgEntry2.SETRANGE("Transaction No.",DtldVendLedgEntry."Transaction No.");        DtldVendLedgEntry2.SETRANGE("Vendor No.",DtldVendLedgEntry."Vendor No.");        DtldVendLedgEntry2.SETFILTER("Entry Type",'>%1',DtldVendLedgEntry."Entry Type"::"Initial Entry");        DtldVendLedgEntry2.FINDSET;// Add the following line.CheckCarteraAccessPermissions(DtldVendLedgEntry2."Document Situation");// End of the added line.        UnapplyVATEntries := FALSE;        REPEAT          IF (DtldVendLedgEntry2."Entry Type" = DtldVendLedgEntry2."Entry Type"::"Payment Discount (VAT Adjustment)") OR             (DtldVendLedgEntry2."Entry Type" = DtldVendLedgEntry2."Entry Type"::"Payment Tolerance (VAT Adjustment)") OR             (DtldVendLedgEntry2."Entry Type" = DtldVendLedgEntry2."Entry Type"::"Payment Discount Tolerance (VAT Adjustment)")...
  6. 更改代码中的CheckCarteraAccessPermissions函数中 Gen.Jnl。-开机自检线路 Codeunit (12),如下所示︰现有代码

    ...CLEAR(GenJnlLine2);        EXIT(IsOK);      END;      BEGIN      END.    }  }...

    替换代码

    ...CLEAR(GenJnlLine2);        EXIT(IsOK);      END;// Add the following lines.LOCAL PROCEDURE CheckCarteraAccessPermissions@1100024(DocumentSituation@1170001 : ' ,Posted BG/PO,Closed BG/PO,BG/PO,Cartera,Closed Documents');BEGINIF (DocumentSituation <> DocumentSituation::" ") AND (NOT AppManagement.AccessToCartera) THENERROR(Text1100013);END;// End of the added lines.     BEGIN      END.    }  }...

系统必备组件

您必须具有要应用此修补程序的安装以下产品之一︰

  • 西班牙语版本的 Microsoft Dynamics 导航 2009 R2

  • 西班牙语版本的 Microsoft Dynamics 导航 2009 SP1

删除信息

您不能删除此修补程序。

状态

Microsoft 已经确认这是“适用于”一节中列出的 Microsoft 产品中的问题。

注意:这是直接从创建 Microsoft 支持部门内的"快速发布"的文章。此处包含的信息是作为为了响应新出现的问题而提供的。由于以使其可用的速度,而材料可能包含印刷错误,恕不另行通知,随时可能进行修订。其他考虑因素,请参阅使用条款

需要更多帮助?

需要更多选项?

了解订阅权益、浏览培训课程、了解如何保护设备等。