Logga in med Microsoft
Logga in eller skapa ett konto.
Hej,
Välj ett annat konto.
Du har flera konton
Välj det konto som du vill logga in med.

När du använder tyska (Schweiz) språk för att starta rapporten från 11584 till 11587 i den schweiziska versionen av Microsoft Dynamics NAV 2009, totalt nr" Fakturor eller kreditnotor"visas alltid som noll. Det här problemet uppstår i följande produkt:

  • Den schweiziska versionen av Microsoft Dynamics NAV 2009 R2

  • Den schweiziska versionen av Microsoft Dynamics NAV 2009 SP1

Lösning

Information om snabbkorrigeringen

En snabbkorrigering är nu tillgänglig från Microsoft. Den är endast avsedd att åtgärda det problem som beskrivs i denna artikel. Använd den bara på datorer där detta problem uppstår. Snabbkorrigeringen kan komma att testas igen. Om inte störs alltför mycket av detta problem rekommenderar vi att du väntar på Nästa service pack-versionen för Microsoft Dynamics NAV 2009 eller nästa Microsoft Dynamics NAV-version som innehåller den här snabbkorrigeringen.

Obs! I särskilda fall, de avgifter som är normalt för support vara avgiftsfri om en supporttekniker för Microsoft Dynamics och relaterade produkter som bestämmer att en särskild uppdatering kan lösa ditt problem. De vanliga supportkostnaderna gäller för övriga supportfrågor och problem som inte berör den särskilda uppdateringen.

Installationsinformation

Microsoft tillhandahåller programmeringsexempel endast utan garanti varken uttryckliga eller underförstådda. Detta inkluderar men är inte begränsat till, underförstådda garantier om säljbarhet eller lämplighet för ett särskilt ändamål. Den här artikeln förutsätter att du är bekant med det programmeringsspråk som demonstreras och de verktyg som används för att skapa och felsöka procedurer. Microsofts supporttekniker kan hjälpa till att förklara funktionen hos en viss procedur. De kommer inte ändra dessa exempel för att ge ytterligare funktioner eller skapa procedurer som motsvarar dina speciella behov.

Obs! Innan du installerar den här snabbkorrigeringen måste du kontrollera att alla användare i Microsoft Dynamics NAV-klienten har loggat ut. Detta omfattar tjänster för Microsoft Dynamics NAV Application Server (NAS). Du ska endast klientanvändare som är inloggad när du implementerar den här snabbkorrigeringen.

Om du vill genomföra den här snabbkorrigeringen måste du ha en utvecklarlicens.

Vi rekommenderar att tilldelas användarkontot i fönstret Windows-inloggningar eller i fönstret databasinloggningar "SUPER" roll-ID. Om användarkontot inte kan tilldelas "SUPER" roll-ID måste du kontrollera att användarkontot har följande behörigheter:

  • Ändra behörighet för objektet ändras.

  • Körbehörighet för systemet objektet ID 5210 objekt och System objektet ID 9015

    objektet.

Obs! Du har inte behörighet för datalager inte data reparation.

Kod ändras

Observera alltid testa koden korrigeringar i en kontrollerad miljö innan du installerar korrigeringar i dina produktionsdatorer. Importera alla SEPA-uppdateringar innan du tillämpar ändringen.

Lös problemet så här:

  1. Ändra koden i Data objekt nummer 1 avsnitt i SR kundreskontratransaktion. Fakturalista Std-rapport (11584):
    Befintlig kod

    ...ForeColor=65535;
    SourceExpr="Sales (LCY)";
    DataSetFieldName=Cust__Ledger_Entry__Sales__LCY__ }
    { 1150005;TextBox ;17250;0 ;150 ;423 ;Visible=No;
    ForeColor=65535;

    // Delete the following lines.
    SourceExpr="Document Type";
    DataSetFieldName=Cust__Ledger_Entry__Document_Type_ }
    // End of the deleted lines.

    }
    }
    { PROPERTIES
    {
    SectionType=Body;
    ...

    Ersättningskod

    ...   ForeColor=65535;
    SourceExpr="Sales (LCY)";
    DataSetFieldName=Cust__Ledger_Entry__Sales__LCY__ }
    { 1150005;TextBox ;17250;0 ;150 ;423 ;Visible=No;
    ForeColor=65535;

    // Add the following lines.
    SourceExpr=[ ("Document Type" = "Document Type"::Invoice)];
    DataSetFieldName=Cust__Ledger_Entry__Document_Type_ }
    { 1150010;TextBox ;17100;0 ;150 ;423 ;Visible=No;
    SourceExpr=("Document Type" = "Document Type"::"Credit Memo");
    DataSetFieldName=Cust__Ledger_Entry__Document_Type_1 }
    // End of the added lines.

    }
    }
    { PROPERTIES
    {
    SectionType=Body;
    ...



  2. Ändra koden i funktionen CalcExrate i SR kundreskontratransaktion. Fakturalista Std-rapport (11584):
    Befintlig kod 1

    ...<PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    </Style>
    <Value>=iif(True,
    CStr(Code.CalcNoOfInvoices(Fields!Cust__Ledger_Entry__Document_Type_.Value))+Chr(177)

    // Delete the following line.
    +CStr(Code.CalcNoOfCredMemos(Fields!Cust__Ledger_Entry__Document_Type_.Value))+Chr(177)
    // End of the deleted line.

    +CStr(Code.CalcProfit(Fields!Cust__Ledger_Entry__Profit__LCY__.Value))+chr(177)
    +CStr(Code.CalcFooterProfitPct(Fields!Cust__Ledger_Entry__Profit__LCY__.Value,Fields!Cust__Ledger_Entry__Sales__LCY__.Value))+chr(177)
    +CStr(Code.CalcAmountLCY(Fields!Cust__Ledger_Entry__Amount__LCY__.Value)),"")</Value>
    </Textbox>
    </ReportItems>
    ...

    Ersättningskod 1

    ...<PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    </Style>
    <Value>=iif(True,
    CStr(Code.CalcNoOfInvoices(Fields!Cust__Ledger_Entry__Document_Type_.Value))+Chr(177)

    // Add the following line.
    +CStr(Code.CalcNoOfCredMemos(Fields!Cust__Ledger_Entry__Document_Type_1.Value))+Chr(177)
    // End of the added line.

    +CStr(Code.CalcProfit(Fields!Cust__Ledger_Entry__Profit__LCY__.Value))+chr(177)
    +CStr(Code.CalcFooterProfitPct(Fields!Cust__Ledger_Entry__Profit__LCY__.Value,Fields!Cust__Ledger_Entry__Sales__LCY__.Value))+chr(177)
    +CStr(Code.CalcAmountLCY(Fields!Cust__Ledger_Entry__Amount__LCY__.Value)),"")</Value>
    </Textbox>
    </ReportItems>
    ...

    Befintlig kod 2

    ...TotalProfitLCY = 0
    TotalProfitPct = 0
    TotalAmountLCY = 0
    End Function


    // Delete the following lines.
    Function CalcNoOfInvoices(DocumentType as string)
    if DocumentType = "Invoice"
    // End of the deleted lines.
    NoOfInvoices += 1
    end if
    return NoOfInvoices
    End Function

    ...

    Ersättningskod 2

    ...TotalProfitLCY = 0
    TotalProfitPct = 0
    TotalAmountLCY = 0
    End Function


    // Add the following lines.
    Function CalcNoOfInvoices(DocumentType as Boolean)
    if DocumentType
    // End of the added lines.

    NoOfInvoices += 1
    end if
    return NoOfInvoices
    End Function

    ...

    Befintlig kod 3

    ...NoOfInvoices += 1
    end if
    return NoOfInvoices
    End Function


    // Delete the following lines.
    Function CalcNoOfCredMemos(DocumentType as string)
    if DocumentType = "Credit Memo"
    // End of the deleted lines.

    NoOfCredMemos += 1
    end if
    return NoOfCredMemos
    End Function

    ...

    Ersättningskod 3

    ...NoOfInvoices += 1
    end if
    return NoOfInvoices
    End Function


    // Add the following lines.
    Function CalcNoOfCredMemos(DocumentType as Boolean)
    if DocumentType
    // End of the added lines.

    NoOfCredMemos += 1
    end if
    return NoOfCredMemos
    End Function

    ...

    Befintlig kod 4

    ...<DataField>Cust__Ledger_Entry__Sales__LCY__Format</DataField>
    </Field>
    <Field Name="Cust__Ledger_Entry__Document_Type_">
    <DataField>Cust__Ledger_Entry__Document_Type_</DataField>
    </Field>
    <Field Name="Cust__Ledger_Entry__Amount__LCY__">
    <DataField>Cust__Ledger_Entry__Amount__LCY__</DataField>
    </Field>
    <Field Name="Cust__Ledger_Entry__Amount__LCY__Format">
    <DataField>Cust__Ledger_Entry__Amount__LCY__Format</DataField>
    ...

    Ersättningskod 4

    ...<DataField>Cust__Ledger_Entry__Sales__LCY__Format</DataField>
    </Field>
    <Field Name="Cust__Ledger_Entry__Document_Type_">
    <DataField>Cust__Ledger_Entry__Document_Type_</DataField>
    </Field>

    // Add the following lines.
    <Field Name="Cust__Ledger_Entry__Document_Type_1">
    <DataField>Cust__Ledger_Entry__Document_Type_1</DataField>
    </Field>
    // End of the added lines.

    <Field Name="Cust__Ledger_Entry__Amount__LCY__">
    <DataField>Cust__Ledger_Entry__Amount__LCY__</DataField>
    </Field>
    <Field Name="Cust__Ledger_Entry__Amount__LCY__Format">
    <DataField>Cust__Ledger_Entry__Amount__LCY__Format</DataField>
    ...
  3. Ändra koden i Data objekt nummer 1 avsnitt i SR kundreskontratransaktion. Fakturor FVA rapport (11585):
    Befintlig kod

    ...  ForeColor=65535;
    SourceExpr="Sales (LCY)";
    DataSetFieldName=Cust__Ledger_Entry__Sales__LCY__ }
    { 1150005;TextBox ;17250;0 ;150 ;423 ;Visible=No;
    ForeColor=65535;

    // Delete the following lines.
    SourceExpr="Document Type";
    DataSetFieldName=Cust__Ledger_Entry__Document_Type_ }
    // End of the deleted lines.

    }
    }
    { PROPERTIES
    {
    SectionType=Body;
    ...

    Ersättningskod

    ... ForeColor=65535;
    SourceExpr="Sales (LCY)";
    DataSetFieldName=Cust__Ledger_Entry__Sales__LCY__ }
    { 1150005;TextBox ;17250;0 ;150 ;423 ;Visible=No;
    ForeColor=65535;

    // Add the following lines.
    SourceExpr=("Document Type" = "Document Type"::Invoice);
    DataSetFieldName=Cust__Ledger_Entry__Document_Type_ }
    { 1150011;TextBox ;17100;0 ;150 ;423 ;Visible=No;
    ForeColor=65535;
    SourceExpr=("Document Type" = "Document Type"::"Credit Memo");
    DataSetFieldName=Cust__Ledger_Entry__Document_Type_1 }
    // End of the added lines.

    }
    }
    { PROPERTIES
    {
    SectionType=Body;
    ...
  4. Ändra koden i funktionen CalcExrate i SR kundreskontratransaktion. Fakturor FVA rapport (11585):
    Befintlig kod 1

    ...<TextAlign>Right</TextAlign>
    <VerticalAlign>Middle</VerticalAlign>
    </Style>
    <Value>=iif(True
    ,CStr(Code.CalcNoOfInvoices(Fields!Cust__Ledger_Entry__Document_Type_.Value))+Chr(177)

    // Delete the following line.
    +CStr(Code.CalcNoOfCredMemos(Fields!Cust__Ledger_Entry__Document_Type_.Value))+chr(177)
    // End of the deleted line.

    +CStr(Code.CalcProfitPct(Fields!Cust__Ledger_Entry__Profit__LCY___Control33.Value,Fields!Cust__Ledger_Entry__Sales__LCY__.Value))+chr(177)
    +CStr(Code.CalcAmountLCY(Fields!Cust__Ledger_Entry__Amount__LCY___Control56.Value)),"")</Value>
    </Textbox>
    </ReportItems>
    </TableCell>
    ...

    Ersättningskod 1

    ...<TextAlign>Right</TextAlign>
    <VerticalAlign>Middle</VerticalAlign>
    </Style>
    <Value>=iif(True
    ,CStr(Code.CalcNoOfInvoices(Fields!Cust__Ledger_Entry__Document_Type_.Value))+Chr(177)

    // Add the following line.
    +CStr(Code.CalcNoOfCredMemos(Fields!Cust__Ledger_Entry__Document_Type_1.Value))+chr(177)
    // End of the added line.

    +CStr(Code.CalcProfitPct(Fields!Cust__Ledger_Entry__Profit__LCY___Control33.Value,Fields!Cust__Ledger_Entry__Sales__LCY__.Value))+chr(177)
    +CStr(Code.CalcAmountLCY(Fields!Cust__Ledger_Entry__Amount__LCY___Control56.Value)),"")</Value>
    </Textbox>
    </ReportItems>
    </TableCell>
    ...


    Befintlig kod 2

     TotalProfitLCY = 0      TotalProfitPct  = 0
    TotalAmountLCY = 0
    End Function


    // Delete the following lines.
    Function CalcNoOfInvoices(DocumentType as string)
    if DocumentType = "Invoice"
    // End of the deleted lines.

    NoOfInvoices += 1
    end if
    return NoOfInvoices
    End Function


    ...

    Ersättningskod 2

    ...TotalProfitLCY = 0
    TotalProfitPct = 0
    TotalAmountLCY = 0
    End Function


    // Add the following lines.
    Function CalcNoOfInvoices(DocumentType as Boolean)
    if DocumentType
    // End of the added lines.

    NoOfInvoices += 1
    end if
    return NoOfInvoices
    End Function


    ...

    Befintlig kod 3

    ...NoOfInvoices += 1
    end if
    return NoOfInvoices
    End Function


    // Delete the following lines.
    Function CalcNoOfCredMemos(DocumentType as string)
    if DocumentType = "Credit Memo"
    // Add of the deleted lines.

    NoOfCredMemos += 1
    end if
    return NoOfCredMemos
    End Function


    ...

    Ersättningskod 3

    ...NoOfInvoices += 1
    end if
    return NoOfInvoices
    End Function


    // Add the following lines.
    Function CalcNoOfCredMemos(DocumentType as Boolean)
    if DocumentType
    // End of the added lines.

    NoOfCredMemos += 1
    end if
    return NoOfCredMemos
    End Function


    ...

    Befintlig kod 4

    ...TotalAmountLCY = TotalAmountLCY + AmountLCY 
    return TotalAmountLCY
    End Function</Code>
    <DataSets>
    <DataSet Name="DataSet_Result">
    <Fields>
    <Field Name="Customer_Invoices_ListCaption">
    <DataField>Customer_Invoices_ListCaption</DataField>
    </Field>
    <Field Name="FORMAT_TODAY_0_4_">
    ...

    Ersättningskod 4

    ...TotalAmountLCY = TotalAmountLCY + AmountLCY 
    return TotalAmountLCY
    End Function</Code>
    <DataSets>
    <DataSet Name="DataSet_Result">

    // Add the following lines.
    <DataSetInfo xmlns="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
    <DataSetName>DataSet</DataSetName>
    <TableName>Result</TableName>
    </DataSetInfo>
    // End of the added lines.

    <Fields>
    <Field Name="Customer_Invoices_ListCaption">
    <DataField>Customer_Invoices_ListCaption</DataField>
    </Field>
    <Field Name="FORMAT_TODAY_0_4_">
    ...

    Befintlig kod 5

    ...<DataField>Cust__Ledger_Entry__Sales__LCY__Format</DataField>
    </Field>
    <Field Name="Cust__Ledger_Entry__Document_Type_">
    <DataField>Cust__Ledger_Entry__Document_Type_</DataField>
    </Field>
    <Field Name="Cust__Ledger_Entry__Document_No___Control11">
    <DataField>Cust__Ledger_Entry__Document_No___Control11</DataField>
    </Field>
    <Field Name="COPYSTR_FORMAT__Document_Type___1_1__Control13">
    <DataField>COPYSTR_FORMAT__Document_Type___1_1__Control13</DataField>
    ...

    Ersättningskod 5

    ...<DataField>Cust__Ledger_Entry__Sales__LCY__Format</DataField>
    </Field>
    <Field Name="Cust__Ledger_Entry__Document_Type_">
    <DataField>Cust__Ledger_Entry__Document_Type_</DataField>
    </Field>

    // Add the following lines.
    <Field Name="Cust__Ledger_Entry__Document_Type_1">
    <DataField>Cust__Ledger_Entry__Document_Type_1</DataField>
    </Field>
    // End of the added linds.

    <Field Name="Cust__Ledger_Entry__Document_No___Control11">
    <DataField>Cust__Ledger_Entry__Document_No___Control11</DataField>
    </Field>
    <Field Name="COPYSTR_FORMAT__Document_Type___1_1__Control13">
    <DataField>COPYSTR_FORMAT__Document_Type___1_1__Control13</DataField>
    ...

    Befintlig kod 6

    ... </Fields>
    <Query>
    <CommandText />
    <DataSourceName>DummyDataSource</DataSourceName>
    </Query>

    // Delete the following lines.
    <rd:DataSetInfo>
    <rd:DataSetName>DataSet</rd:DataSetName>
    <rd:TableName>Result</rd:TableName>
    </rd:DataSetInfo>
    // End of the deleted lines.

    </DataSet>
    </DataSets>
    <DataSources>
    <DataSource Name="DummyDataSource">
    <ConnectionProperties>
    ...

    Ersättningskod 6

    ...</Fields>
    <Query>
    <CommandText />
    <DataSourceName>DummyDataSource</DataSourceName>
    </Query>
    </DataSet>
    </DataSets>
    <DataSources>
    <DataSource Name="DummyDataSource">
    <ConnectionProperties>
    ...
  5. Ändra koden i Data objekt nummer 1 avsnitt i SR kundreskontratransaktion. Fakturalista bokföringsrapport (11586):
    Befintlig kod

    ...  ForeColor=65535;
    SourceExpr="Sales (LCY)";
    DataSetFieldName=Cust__Ledger_Entry__Sales__LCY__ }
    { 1150005;TextBox ;17250;0 ;150 ;423 ;Visible=No;
    ForeColor=65535;

    // Delete the following lines.
    SourceExpr="Document Type";
    DataSetFieldName=Cust__Ledger_Entry__Document_Type_ }
    // End of the deleted lines.

    }
    }
    { PROPERTIES
    {
    SectionType=Body;
    ...

    Ersättningskod

    ...ForeColor=65535;
    SourceExpr="Sales (LCY)";
    DataSetFieldName=Cust__Ledger_Entry__Sales__LCY__ }
    { 1150005;TextBox ;17250;0 ;150 ;423 ;Visible=No;
    ForeColor=65535;

    // Add the following lines.
    SourceExpr=("Document Type" = "Document Type"::Invoice);
    DataSetFieldName=Cust__Ledger_Entry__Document_Type_ }
    { 1150012;TextBox ;17100;0 ;150 ;423 ;Visible=No;
    ForeColor=65535;
    SourceExpr=("Document Type" = "Document Type"::"Credit Memo");
    DataSetFieldName=Cust__Ledger_Entry__Document_Type_1 }
    // End of the added lines.

    }
    }
    { PROPERTIES
    {
    SectionType=Body;
    ...
  6. Ändra koden i funktionen CalcExrate i SR kundreskontratransaktion. Fakturalista bokföringsrapport (11586):
    Befintlig kod 1

    ...TextAlign>Right</TextAlign>
    <VerticalAlign>Middle</VerticalAlign>
    </Style>
    <Value>=iif(True
    ,CStr(Code.CalcNoOfInvoices(Fields!Cust__Ledger_Entry__Document_Type_.Value))+Chr(177)

    // Delete the following line.
    +CStr(Code.CalcNoOfCredMemos(Fields!Cust__Ledger_Entry__Document_Type_.Value))+chr(177)
    // End of the deleted lines.

    +CStr(Code.CalcProfitPct(Fields!Cust__Ledger_Entry__Profit__LCY___Control33.Value,Fields!Cust__Ledger_Entry__Sales__LCY__.Value))+chr(177)
    +CStr(Code.CalcAmountLCY(Fields!Cust__Ledger_Entry__Amount__LCY___Control41.Value)),"")</Value>
    </Textbox>
    </ReportItems>
    </TableCell>
    ...

    Ersättningskod 1

    ... <TextAlign>Right</TextAlign>
    <VerticalAlign>Middle</VerticalAlign>
    </Style>
    <Value>=iif(True
    ,CStr(Code.CalcNoOfInvoices(Fields!Cust__Ledger_Entry__Document_Type_.Value))+Chr(177)

    // Add of the following line.
    +CStr(Code.CalcNoOfCredMemos(Fields!Cust__Ledger_Entry__Document_Type_1.Value))+chr(177)
    // End of the added line.

    +CStr(Code.CalcProfitPct(Fields!Cust__Ledger_Entry__Profit__LCY___Control33.Value,Fields!Cust__Ledger_Entry__Sales__LCY__.Value))+chr(177)
    +CStr(Code.CalcAmountLCY(Fields!Cust__Ledger_Entry__Amount__LCY___Control41.Value)),"")</Value>
    </Textbox>
    </ReportItems>
    </TableCell>
    ...

    Befintlig kod 2

    ...TotalProfitLCY = 0
    TotalProfitPct = 0
    TotalAmountLCY = 0
    End Function


    // Delete the following lines.
    Function CalcNoOfInvoices(DocumentType as string)
    if DocumentType = "Invoice"
    // End of the deleted lines.

    NoOfInvoices += 1
    end if
    return NoOfInvoices
    End Function


    ...

    Ersättningskod 2

    ... TotalProfitLCY = 0
    TotalProfitPct = 0
    TotalAmountLCY = 0
    End Function


    // Add the following lines.
    + Function CalcNoOfInvoices(DocumentType as Boolean)
    + if DocumentType
    // End of the added lines.

    NoOfInvoices += 1
    end if
    return NoOfInvoices
    End Function


    ...

    Befintlig kod 3

    ...end if
    return NoOfInvoices
    End Function

    Function CalcNoOfCredMemos(DocumentType as string)

    // Delete the following line.
    if DocumentType = "Credit Memo"
    // End of the deleted line.

    NoOfCredMemos += 1
    end if
    return NoOfCredMemos
    End Function


    ...

    Ersättningskod 3

    ...end if
    return NoOfInvoices
    End Function

    Function CalcNoOfCredMemos(DocumentType as string)

    // Add the following line.
    if DocumentType
    // End of the added line.

    NoOfCredMemos += 1
    end if
    return NoOfCredMemos
    End Function


    ...

    Befintlig kod 4

    ...<DataField>Cust__Ledger_Entry__Sales__LCY__Format</DataField>
    </Field>
    <Field Name="Cust__Ledger_Entry__Document_Type_">
    <DataField>Cust__Ledger_Entry__Document_Type_</DataField>
    </Field>
    <Field Name="Cust__Ledger_Entry__Amount__LCY___Control41">
    <DataField>Cust__Ledger_Entry__Amount__LCY___Control41</DataField>
    </Field>
    <Field Name="Cust__Ledger_Entry__Amount__LCY___Control41Format">
    <DataField>Cust__Ledger_Entry__Amount__LCY___Control41Format</DataField>
    ...

    Ersättningskod 4

    ...<DataField>Cust__Ledger_Entry__Sales__LCY__Format</DataField>
    </Field>
    <Field Name="Cust__Ledger_Entry__Document_Type_">
    <DataField>Cust__Ledger_Entry__Document_Type_</DataField>
    </Field>

    // Add the following lines.
    <Field Name="Cust__Ledger_Entry__Document_Type_1">
    <DataField>Cust__Ledger_Entry__Document_Type_1</DataField>
    </Field>
    // End of the added lines.

    <Field Name="Cust__Ledger_Entry__Amount__LCY___Control41">
    <DataField>Cust__Ledger_Entry__Amount__LCY___Control41</DataField>
    </Field>
    <Field Name="Cust__Ledger_Entry__Amount__LCY___Control41Format">
    <DataField>Cust__Ledger_Entry__Amount__LCY___Control41Format</DataField>
    ...


  7. Ändra koden i Data objekt nummer 1 avsnitt i SR kundreskontratransaktion. Fakturor betalningsrapport (11587):
    Befintlig kod

    ... ForeColor=65535;
    SourceExpr="Sales (LCY)";
    DataSetFieldName=Cust__Ledger_Entry__Sales__LCY__ }
    { 1150005;TextBox ;17250;0 ;150 ;423 ;Visible=No;
    ForeColor=65535;

    // Delete the following lines.
    SourceExpr="Document Type";
    DataSetFieldName=Cust__Ledger_Entry__Document_Type_ }
    // End of the deleted lines.

    }
    }
    { PROPERTIES
    {
    SectionType=Body;
    ...

    Ersättningskod

    ... ForeColor=65535;
    SourceExpr="Sales (LCY)";
    DataSetFieldName=Cust__Ledger_Entry__Sales__LCY__ }
    { 1150005;TextBox ;17250;0 ;150 ;423 ;Visible=No;
    ForeColor=65535;

    // Add the following lines.
    SourceExpr=("Document Type" = "Document Type"::Invoice);
    DataSetFieldName=Cust__Ledger_Entry__Document_Type_ }
    { 1150013;TextBox ;17100;0 ;150 ;423 ;Visible=No;
    ForeColor=65535;
    SourceExpr=("Document Type" = "Document Type"::"Credit Memo");
    DataSetFieldName=Cust__Ledger_Entry__Document_Type_1 }
    // End of the added lines.

    }
    }
    { PROPERTIES
    {
    SectionType=Body;
    ...
  8. Ändra koden i funktionen CalcExrate i SR kundreskontratransaktion. Fakturor betalningsrapport (11587):
    Befintlig kod 1

    ...<TextAlign>Right</TextAlign>
    <VerticalAlign>Middle</VerticalAlign>
    </Style>
    <Value>=iif(True
    ,CStr(Code.CalcNoOfInvoices(Fields!Cust__Ledger_Entry__Document_Type_.Value))+Chr(177)

    //Delete the following line.
    +CStr(Code.CalcNoOfCredMemos(Fields!Cust__Ledger_Entry__Document_Type_.Value))+chr(177)
    // End of the deleted line.

    +CStr(Code.CalcProfitPct(Fields!Cust__Ledger_Entry__Profit__LCY___Control33.Value,Fields!Cust__Ledger_Entry__Sales__LCY__.Value))+chr(177)
    +CStr(Code.CalcAmountLCY(Fields!Cust__Ledger_Entry__Amount__LCY___Control100.Value)),"")</Value>
    </Textbox>
    </ReportItems>
    </TableCell>
    ...

    Ersättningskod 1

    ...<TextAlign>Right</TextAlign>
    <VerticalAlign>Middle</VerticalAlign>
    </Style>
    <Value>=iif(True
    ,CStr(Code.CalcNoOfInvoices(Fields!Cust__Ledger_Entry__Document_Type_.Value))+Chr(177)

    // Add the following line.
    + +CStr(Code.CalcNoOfCredMemos(Fields!Cust__Ledger_Entry__Document_Type_1.Value))+chr(177)
    // End of the added line.

    +CStr(Code.CalcProfitPct(Fields!Cust__Ledger_Entry__Profit__LCY___Control33.Value,Fields!Cust__Ledger_Entry__Sales__LCY__.Value))+chr(177)
    +CStr(Code.CalcAmountLCY(Fields!Cust__Ledger_Entry__Amount__LCY___Control100.Value)),"")</Value>
    </Textbox>
    </ReportItems>
    </TableCell>
    ...

    Befintlig kod 2

    ...TotalProfitLCY = 0
    TotalProfitPct = 0
    TotalAmountLCY = 0
    End Function


    // Delete the following lines.
    Function CalcNoOfInvoices(DocumentType as string)
    if DocumentType = "Invoice"
    // End of the deleted lines.

    NoOfInvoices += 1
    end if
    return NoOfInvoices
    End Function


    ...

    Ersättningskod 2

    ...TotalProfitLCY = 0
    TotalProfitPct = 0
    TotalAmountLCY = 0
    End Function


    // Add the following lines.
    Function CalcNoOfInvoices(DocumentType as Boolean)
    if DocumentType
    // End of the added lines.

    NoOfInvoices += 1
    end if
    return NoOfInvoices
    End Function


    ...

    Befintlig kod 3

    ...NoOfInvoices += 1
    end if
    return NoOfInvoices
    End Function


    // Delete the following lines.
    Function CalcNoOfCredMemos(DocumentType as string)
    if DocumentType = "Credit Memo"
    // End of the deleted lines.

    NoOfCredMemos += 1
    end if
    return NoOfCredMemos
    End Function


    ...

    Ersättningskod 3

    ... NoOfInvoices += 1
    end if
    return NoOfInvoices
    End Function


    // Add the following lines.
    Function CalcNoOfCredMemos(DocumentType as Boolean)
    if DocumentType
    // End of the added lines.

    NoOfCredMemos += 1
    end if
    return NoOfCredMemos
    End Function


    ...

    Befintlig kod 4

    ...<DataField>Cust__Ledger_Entry__Sales__LCY__Format</DataField>
    </Field>
    <Field Name="Cust__Ledger_Entry__Document_Type_">
    <DataField>Cust__Ledger_Entry__Document_Type_</DataField>
    </Field>
    <Field Name="Cust__Ledger_Entry__Amount__LCY___Control100">
    <DataField>Cust__Ledger_Entry__Amount__LCY___Control100</DataField>
    </Field>
    <Field Name="Cust__Ledger_Entry__Amount__LCY___Control100Format">
    <DataField>Cust__Ledger_Entry__Amount__LCY___Control100Format</DataField>
    ...

    Ersättningskod 4

    ... <DataField>Cust__Ledger_Entry__Sales__LCY__Format</DataField>
    </Field>
    <Field Name="Cust__Ledger_Entry__Document_Type_">
    <DataField>Cust__Ledger_Entry__Document_Type_</DataField>
    </Field>

    // Add the following lines.
    <Field Name="Cust__Ledger_Entry__Document_Type_1">
    <DataField>Cust__Ledger_Entry__Document_Type_1</DataField>
    </Field>
    // End of the added lines.

    <Field Name="Cust__Ledger_Entry__Amount__LCY___Control100">
    <DataField>Cust__Ledger_Entry__Amount__LCY___Control100</DataField>
    </Field>
    <Field Name="Cust__Ledger_Entry__Amount__LCY___Control100Format">
    <DataField>Cust__Ledger_Entry__Amount__LCY___Control100Format</DataField>
    ...






Förutsättningar

Du måste ha någon av följande produkter som har installerat den här snabbkorrigeringen:

  • Den schweiziska versionen av Microsoft Dynamics NAV 2009 R2

  • Den schweiziska versionen av Microsoft Dynamics NAV 2009 SP1

Information om borttagning

Du kan inte ta bort den här snabbkorrigeringen.

Status

Microsoft har bekräftat att detta är ett problem i Microsoft-produkterna som nämns i avsnittet "Gäller".

Obs! Detta är en "SNABBPUBLICERING"-artikel skapad direkt från Microsoft support-organisationen. Informationen häri tillhandahålls i befintligt skick som svar på nya problem. Till följd av hastigheten för att göra det tillgängligt kan materialet innehålla typografiska fel och kan ändras när som helst utan föregående meddelande. Se Villkoren för användningför andra överväganden.

Behöver du mer hjälp?

Vill du ha fler alternativ?

Utforska prenumerationsförmåner, bläddra bland utbildningskurser, lär dig hur du skyddar din enhet med mera.

Communities hjälper dig att ställa och svara på frågor, ge feedback och få råd från experter med rika kunskaper.

Hade du nytta av den här informationen?

Hur nöjd är du med språkkvaliteten?
Vad påverkade din upplevelse?
Genom att trycka på skicka, kommer din feedback att användas för att förbättra Microsofts produkter och tjänster. IT-administratören kan samla in denna data. Sekretesspolicy.

Tack för din feedback!

×