דלג לתוכן הראשי
היכנס דרך Microsoft
היכנס או צור חשבון.
שלום,
בחר חשבון אחר.
יש לך חשבונות מרובים
בחר את החשבון שברצונך להיכנס באמצעותו.

כאשר תשתמש שפה גרמנית (שוויץ) כדי להפעיל את הדוח מ 11584 כדי 11587 בגירסת Microsoft Dynamics NAV 2009, לא כולל"שוויצרית חשבוניות או תזכירים אשראי"מוצג תמיד כאפס. בעיה זו מתרחשת בהמוצר הבאים:

  • גירסת Microsoft Dynamics NAV 2009 R2 שוויצרית

  • גירסת Microsoft Dynamics NAV 2009 SP1 שוויצרית

פתרון

מידע על תיקונים חמים

תיקון חם נתמך זמין כעת מ- Microsoft. עם זאת, הוא מיועד רק לתיקון הבעיה המתוארת במאמר זה. יש להחיל אותו רק במערכות שהתעוררה בהן בעיה ספציפית זו. תיקון חם זה עשוי לעבור בדיקות נוספות. לכן, אם המערכת שברשותך לא נפגעה באופן חמור מבעיה זו, מומלץ להמתין ל- Microsoft Dynamics NAV 2009 service pack הבאה או גירסת Microsoft Dynamics NAV הבא המכיל תיקון חם זה.

הערה במקרים מיוחדים, שהצגת עבור שיחות עשויים לבטל אם מומחה תמיכה טכנית עבור Microsoft Dynamics ומוצרים קשורים יקבע שעדכון ספציפי יפתור את הבעיה. דמי התמיכה המקובלים יחולו על נוספים שאלות וסוגיות תמיכה אשר אינן מצריכות העדכון הספציפי האמור.

מידע על ההתקנה

מיקרוסופט מציעה דוגמאות תכנות לצורך ההדגמה בלבד, ללא אחריות, בין מפורשת ובין משתמעת. זה כולל, אך אינו מוגבל ל, אחריות מכללא לגבי סחירות או התאמה למטרה מסוימת. מאמר זה מבוסס על ההנחה שאתה מכיר את שפת התכנות המודגמת ובקי בהפעלת הכלים המשמשים ליצירת פרוצדורות ולניפוי שגיאות. מהנדסי התמיכה של Microsoft יכולים לסייע בהסברת הפונקציונליות של פרוצדורה מסוימת. עם זאת, הם לא ישנו את הדוגמאות כדי לספק פונקציונליות נוספת או כדי לבנות פרוצדורות שיענו על צרכיך הספציפיים.

הערה לפני התקנת תיקון חם זה, ודא כי כל המשתמשים לקוח Microsoft Dynamics NAV אינם מחוברים למערכת. זה כולל שירותי Microsoft Dynamics NAV יישום שרת (NAS). אתה אמור להיות לקוח בלבד המשתמש המחובר כאשר ליישם תיקון חם זה.

כדי ליישם תיקון חם זה, דרוש לך רשיון מפתחים.

אנו ממליצים חשבון המשתמש בחלון כניסות Windows או בחלון מסד הנתונים כניסות יוקצו את מזהה תפקיד "סופר". אם חשבון המשתמש אין אפשרות להקצות מזהה תפקיד של "עילי", עליך לוודא כי חשבון משתמש בעל ההרשאות הבאות:

  • שנה את ההרשאה עבור האובייקט שינוי.

  • הרשאת Execute עבור האובייקט 5210 מזהה אובייקט מערכת ועבור 9015 מזהה אובייקט מערכת

    אובייקט.

הערה אין לך הרשאות למאגרי נתונים אלא אם כן יש לך לבצע תיקון נתונים.

שינויי קוד

הערה תמיד מחשב תיקונים קוד בסביבה מבוקרת לפני שתחיל את התיקונים שלך במחשבי ההפקה. לפני החלת השינוי, נא יבא כל העדכונים SEPA.

כדי לפתור בעיה זו, בצע את הפעולות הבאות:

  1. שנה את קוד בסעיפים נתוני פריט מספר 1 במות SR. חשבוניות רשימה דוח סטיות (11584):
    קוד קיים

    ...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;
    ...

    קוד החלפה

    ...   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. לשנות את הקוד בפונקציה CalcExrate במות SR. חשבוניות רשימה דוח סטיות (11584):
    קוד קיים 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>
    ...

    קוד החלפה 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>
    ...

    קוד קיים 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

    ...

    קוד החלפה 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

    ...

    קוד קיים 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

    ...

    קוד החלפה 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

    ...

    קוד קיים 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>
    ...

    קוד החלפה 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. שנה את קוד בסעיפים נתוני פריט מספר 1 במות SR. רשימת FCY דוח חשבוניות (11585):
    קוד קיים

    ...  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;
    ...

    קוד החלפה

    ... 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. לשנות את הקוד בפונקציה CalcExrate במות SR. רשימת FCY דוח חשבוניות (11585):
    קוד קיים 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>
    ...

    קוד החלפה 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>
    ...


    קוד קיים 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


    ...

    קוד החלפה 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


    ...

    קוד קיים 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


    ...

    קוד החלפה 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


    ...

    קוד קיים 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_">
    ...

    קוד החלפה 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_">
    ...

    קוד קיים 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>
    ...

    קוד החלפה 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>
    ...

    קוד קיים 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>
    ...

    קוד החלפה 6

    ...</Fields>
    <Query>
    <CommandText />
    <DataSourceName>DummyDataSource</DataSourceName>
    </Query>
    </DataSet>
    </DataSets>
    <DataSources>
    <DataSource Name="DummyDataSource">
    <ConnectionProperties>
    ...
  5. שנה את קוד בסעיפים נתוני פריט מספר 1 במות SR. רשימת חשבוניות רישום דוח (11586):
    קוד קיים

    ...  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;
    ...

    קוד החלפה

    ...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. לשנות את הקוד בפונקציה CalcExrate במות SR. רשימת חשבוניות רישום דוח (11586):
    קוד קיים 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>
    ...

    קוד החלפה 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>
    ...

    קוד קיים 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


    ...

    קוד החלפה 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


    ...

    קוד קיים 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


    ...

    קוד החלפה 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


    ...

    קוד קיים 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>
    ...

    קוד החלפה 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. שנה את קוד בסעיפים נתוני פריט מספר 1 במות SR. חשבוניות תשלום דוח רשימת (11587):
    קוד קיים

    ... 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;
    ...

    קוד החלפה

    ... 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. לשנות את הקוד בפונקציה CalcExrate במות SR. חשבוניות תשלום דוח רשימת (11587):
    קוד קיים 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>
    ...

    קוד החלפה 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>
    ...

    קוד קיים 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


    ...

    קוד החלפה 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


    ...

    קוד קיים 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


    ...

    קוד החלפה 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


    ...

    קוד קיים 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>
    ...

    קוד החלפה 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>
    ...






דרישות מוקדמות

עליך להגדיר אחד מהמוצרים הבאים מותקנים כדי להחיל תיקון חם זה:

  • גירסת Microsoft Dynamics NAV 2009 R2 שוויצרית

  • גירסת Microsoft Dynamics NAV 2009 SP1 שוויצרית

מידע בדבר הסרת ההתקנה

אין אפשרות להסיר את התיקון החם.

מצב

Microsoft אישרה כי מדובר בבעיה במוצרי Microsoft הרשומים במקטע 'חל על'.

הערה זהו מאמר "פרסום מהיר" שנוצר ישירות בתוך ארגון התמיכה של Microsoft. המידע הכלול במסמך זה מסופק כמו שהוא כתגובה לבעיות המתעוררות. כתוצאה מהמהירות בביצוע כדי להפוך אותו לזמין, החומרים עשויים לכלול שגיאות טיפוגרפיות וייתכן שיבוצעו בהם שינויים בכל עת ללא הודעה מוקדמת. ראה תנאי השימוששיקולים נוספים.

זקוק לעזרה נוספת?

מעוניין באפשרויות נוספות?

גלה את יתרונות המנוי, עיין בקורסי הדרכה, למד כיצד לאבטח את המכשיר שלך ועוד.

קהילות עוזרות לך לשאול שאלות ולהשיב עליהן, לתת משוב ולשמוע ממומחים בעלי ידע עשיר.

האם מידע זה היה שימושי?

עד כמה אתם מרוצים מאיכות השפה?
מה השפיע על החוויה שלך?
בלחיצה על 'שלח', אתה מאפשר למשוב שלך לשפר מוצרים ושירותים של Microsoft. מנהל ה-IT שלך יוכל לאסוף נתונים אלה. הצהרת הפרטיות.

תודה על המשוב!

×