Sconto sull'addebito articolo che sono assegnati alle spedizioni di vendita non vengono distribuite in base all'opzione selezionata per le voci di valore in Microsoft Dynamics NAV 2009. Seguire i passaggi nella sezione modifiche al codice per risolvere questo problema. Questo problema si verifica nei seguenti prodotti:
-
Microsoft Dynamics NAV 2009 R2
-
Microsoft Dynamics NAV 2009 Service Pack 1 (SP1)
Risoluzione
Informazioni sull'hotfix
Un hotfix supportato è ora disponibile da Microsoft. Tuttavia, è destinato esclusivamente alla risoluzione del problema descritto in questo articolo. Applicarlo solo ai sistemi in cui si verificano questo problema specifico. Questo hotfix potrebbe essere sottoposto ad ulteriori test. Pertanto, se il problema non causa gravi difficoltà, consiglia di attendere il prossimo service pack di Microsoft Dynamics NAV 2009 o versione successiva di Microsoft Dynamics NAV contenente tale hotfix.
Nota: In casi particolari, le spese normalmente addebitate per le chiamate potrebbero essere annullate qualora un aggiornamento del supporto tecnico di Microsoft Dynamics e prodotti correlati di supporto determina che uno specifico aggiornamento risolverà il problema. I costi di supporto normale verranno applicati per eventuali ulteriori domande e problemi che non dovessero rientrare nello specifico aggiornamento in questione.Informazioni sull'installazione
Microsoft fornisce esempi di programmazione a scopo puramente illustrativo, senza alcuna garanzia espressa o implicita. Ciò include, ma non limitato a, le garanzie implicite di commerciabilità o idoneità per uno scopo particolare. In questo articolo si presuppone che si abbia familiarità con il linguaggio di programmazione in questione e gli strumenti utilizzati per creare ed eseguire la procedura di debug. Tecnici del supporto Microsoft consentono di spiegare la funzionalità di una particolare procedura. Tuttavia, essi non modificherà questi esempi per fornire funzionalità aggiuntive o creare procedure atte a soddisfare specifiche esigenze.
Nota: Prima di installare questo hotfix, verificare che tutti gli utenti di client di Microsoft Dynamics NAV sono disconnessi dal sistema. Sono inclusi i servizi di Microsoft Dynamics NAV Application Server (NAS). Dovrebbe essere il solo l'utente client connesso quando si implementa questo hotfix. Per implementare questo hotfix, è necessario disporre di una licenza di sviluppatore. È consigliabile che l'account utente nella finestra Login Windows o Login Database assegnare l'ID di ruolo "SUPER". Se l'account utente non può essere assegnato l'ID ruolo "SUPER", è necessario verificare che l'account utente disponga delle autorizzazioni seguenti:-
Autorizzazione alla modifica dell'oggetto che si desidera modificare.
-
L'autorizzazione di esecuzione per l'oggetto System Object ID 5210 e per il sistema oggetto ID 9015
oggetto.
Nota: Non è necessario disporre dei diritti per gli archivi dati a meno che non è necessario eseguire il ripristino di dati.
Modifiche al codice
Nota: Sempre il codice di test consente di correggere in un ambiente controllato prima di applicare le correzioni per i computer di produzione.
Per risolvere questo problema, attenersi alla seguente procedura:-
Modificare il codice nella codeunit Vendite-Registra (80) nella finestra delle proprietà come segue:
Codice esistente 1...PostJobContractLine(JobTaskSalesLine,TempJnlLineDim2);
END; SalesLine.Type::"Charge (Item)": IF Invoice OR ItemChargeAssgntOnly THEN BEGIN // Delete the following line. ItemJnlRollRndg := FALSE; // End of the deleted line. ClearItemChargeAssgntFilter; TempItemChargeAssgntSales.SETCURRENTKEY("Applies-to Doc. Type"); TempItemChargeAssgntSales.SETRANGE("Document Line No.",SalesLine."Line No."); IF TempItemChargeAssgntSales.FINDSET THEN ...Codice sostitutivo 1
...PostJobContractLine(JobTaskSalesLine,TempJnlLineDim2);
END; SalesLine.Type::"Charge (Item)": IF Invoice OR ItemChargeAssgntOnly THEN BEGIN // Add the following line. ItemJnlRollRndg := TRUE; // End of the added line. ClearItemChargeAssgntFilter; TempItemChargeAssgntSales.SETCURRENTKEY("Applies-to Doc. Type"); TempItemChargeAssgntSales.SETRANGE("Document Line No.",SalesLine."Line No."); IF TempItemChargeAssgntSales.FINDSET THEN ...Codice esistente 2
...GenJnlLineDocNo := TempItemChargeAssgntSales."Applies-to Doc. No.";
CASE TempItemChargeAssgntSales."Applies-to Doc. Type" OF TempItemChargeAssgntSales."Applies-to Doc. Type"::Shipment: BEGIN // Delete the following line. PostItemChargePerShpt(SalesLine); TempItemChargeAssgntSales.MARK(TRUE); END; TempItemChargeAssgntSales."Applies-to Doc. Type"::"Return Receipt": BEGIN ...Codice di sostituzione 2
...GenJnlLineDocNo := TempItemChargeAssgntSales."Applies-to Doc. No.";
CASE TempItemChargeAssgntSales."Applies-to Doc. Type" OF TempItemChargeAssgntSales."Applies-to Doc. Type"::Shipment: BEGIN // Add the following lines. PostItemChargePerShpt(SalesLine,SalesLine."Inv. Discount Amount", SalesLine.Quantity,SalesLine."Line Discount Amount",SalesLine."Line Amount"); // End of the added lines. TempItemChargeAssgntSales.MARK(TRUE); END; TempItemChargeAssgntSales."Applies-to Doc. Type"::"Return Receipt": BEGIN ...3 il codice esistente
...TempItemChargeAssgntSales.MARK(TRUE);
END; TempItemChargeAssgntSales."Applies-to Doc. Type"::"Return Receipt": BEGIN // Delete the following line. PostItemChargePerRetRcpt(SalesLine); TempItemChargeAssgntSales.MARK(TRUE); END; TempItemChargeAssgntSales."Applies-to Doc. Type"::Order, TempItemChargeAssgntSales."Applies-to Doc. Type"::Invoice: ...Codice di sostituzione 3
...TempItemChargeAssgntSales.MARK(TRUE);
END; TempItemChargeAssgntSales."Applies-to Doc. Type"::"Return Receipt": BEGIN // Add the following lines. PostItemChargePerRetRcpt(SalesLine,SalesLine."Inv. Discount Amount", SalesLine.Quantity,SalesLine."Line Discount Amount",SalesLine."Line Amount"); // End of the added lines. TempItemChargeAssgntSales.MARK(TRUE); END; TempItemChargeAssgntSales."Applies-to Doc. Type"::Order, TempItemChargeAssgntSales."Applies-to Doc. Type"::Invoice: ... -
Modificare il codice nella funzione PostItemChargePerShpt della codeunit Vendite-Registra (80) come segue:
Codice esistente 1...END;
END; END; // Delete the following line. LOCAL PROCEDURE PostItemChargePerShpt@5807(SalesLine@1000 : Record 37); VAR SalesShptLine@1003 : Record 111; TempItemLedgEntry@1010 : TEMPORARY Record 32; ItemTrackingMgt@1009 : Codeunit 6500; ...Codice sostitutivo 1
...END;
END; END; // Add the following line. LOCAL PROCEDURE PostItemChargePerShpt@5807(SalesLine@1000 : Record 37;VAR TotalInvDiscAmtRemaining@1012 : Decimal;VAR TotalQtyRemaining@1013 : Decimal;VAR TotalLineDiscAmtRemaining@1014 : Decimal;VAR TotalLineAmtRemaining@1015 : Decimal); VAR SalesShptLine@1003 : Record 111; TempItemLedgEntry@1010 : TEMPORARY Record 32; ItemTrackingMgt@1009 : Codeunit 6500; ...Codice esistente 2
...AmountToAssign := ROUND(NonDistrAmountToAssign * Factor,GLSetup."Amount Rounding Precision");
IF Factor < 1 THEN BEGIN PostItemCharge(SalesLine, TempItemLedgEntry."Entry No.",ABS(TempItemLedgEntry.Quantity), // Delete the following line. AmountToAssign,QtyToAssign); NonDistrQuantity := NonDistrQuantity - ABS(TempItemLedgEntry.Quantity); NonDistrQtyToAssign := NonDistrQtyToAssign - QtyToAssign; NonDistrAmountToAssign := NonDistrAmountToAssign - AmountToAssign; END ELSE // the last time ...Codice di sostituzione 2
...AmountToAssign := ROUND(NonDistrAmountToAssign * Factor,GLSetup."Amount Rounding Precision");
IF Factor < 1 THEN BEGIN PostItemCharge(SalesLine, TempItemLedgEntry."Entry No.",ABS(TempItemLedgEntry.Quantity), // Add the following lines. AmountToAssign,QtyToAssign,TotalInvDiscAmtRemaining, TotalQtyRemaining,TotalLineDiscAmtRemaining,TotalLineAmtRemaining); // End of the added lines. NonDistrQuantity := NonDistrQuantity - ABS(TempItemLedgEntry.Quantity); NonDistrQtyToAssign := NonDistrQtyToAssign - QtyToAssign; NonDistrAmountToAssign := NonDistrAmountToAssign - AmountToAssign; END ELSE // the last time ...3 il codice esistente
...NonDistrAmountToAssign := NonDistrAmountToAssign - AmountToAssign;
END ELSE // the last time PostItemCharge(SalesLine, TempItemLedgEntry."Entry No.",ABS(TempItemLedgEntry.Quantity), // Delete the following line. NonDistrAmountToAssign,NonDistrQtyToAssign); UNTIL TempItemLedgEntry.NEXT = 0; END ELSE PostItemCharge(SalesLine, SalesShptLine."Item Shpt. Entry No.",SalesShptLine."Quantity (Base)", ...Codice di sostituzione 3
...NonDistrAmountToAssign := NonDistrAmountToAssign - AmountToAssign;
END ELSE // the last time PostItemCharge(SalesLine, TempItemLedgEntry."Entry No.",ABS(TempItemLedgEntry.Quantity), // Add the following lines. NonDistrAmountToAssign,NonDistrQtyToAssign,TotalInvDiscAmtRemaining, TotalQtyRemaining,TotalLineDiscAmtRemaining,TotalLineAmtRemaining); // End of the added lines. UNTIL TempItemLedgEntry.NEXT = 0; END ELSE PostItemCharge(SalesLine, SalesShptLine."Item Shpt. Entry No.",SalesShptLine."Quantity (Base)", ...4 il codice esistente
...END ELSE
PostItemCharge(SalesLine, SalesShptLine."Item Shpt. Entry No.",SalesShptLine."Quantity (Base)", TempItemChargeAssgntSales."Amount to Assign", // Delete the following lines. TempItemChargeAssgntSales."Qty. to Assign"); END; LOCAL PROCEDURE PostItemChargePerRetRcpt@5810(SalesLine@1000 : Record 37); // End of the deleted lines. VAR ReturnRcptLine@1002 : Record 6661; TempItemLedgEntry@1010 : TEMPORARY Record 32; ItemTrackingMgt@1009 : Codeunit 6500; ...Codice di sostituzione 4
...END ELSE
PostItemCharge(SalesLine, SalesShptLine."Item Shpt. Entry No.",SalesShptLine."Quantity (Base)", TempItemChargeAssgntSales."Amount to Assign", // Add the following lines. TempItemChargeAssgntSales."Qty. to Assign",TotalInvDiscAmtRemaining, TotalQtyRemaining,TotalLineDiscAmtRemaining,TotalLineAmtRemaining); END; LOCAL PROCEDURE PostItemChargePerRetRcpt@5810(SalesLine@1000 : Record 37;VAR TotalInvDiscAmtRemaining@1012 : Decimal;VAR TotalQtyRemaining@1013 : Decimal;VAR TotalLineDiscAmtRemaining@1014 : Decimal;VAR TotalLineAmtRemaining@1015 : Decimal); // End of the added lines. VAR ReturnRcptLine@1002 : Record 6661; TempItemLedgEntry@1010 : TEMPORARY Record 32; ItemTrackingMgt@1009 : Codeunit 6500; ... -
Modificare il codice nella funzione PostItemChargePerRetRcpt della codeunit Vendite-Registra (80) come segue:
Codice esistente 1...AmountToAssign := ROUND(NonDistrAmountToAssign * Factor,GLSetup."Amount Rounding Precision");
IF Factor < 1 THEN BEGIN PostItemCharge(SalesLine, TempItemLedgEntry."Entry No.",ABS(TempItemLedgEntry.Quantity), // Delete the following line. AmountToAssign,QtyToAssign); NonDistrQuantity := NonDistrQuantity - ABS(TempItemLedgEntry.Quantity); NonDistrQtyToAssign := NonDistrQtyToAssign - QtyToAssign; NonDistrAmountToAssign := NonDistrAmountToAssign - AmountToAssign; END ELSE // the last time ...Codice sostitutivo 1
...AmountToAssign := ROUND(NonDistrAmountToAssign * Factor,GLSetup."Amount Rounding Precision");
IF Factor < 1 THEN BEGIN PostItemCharge(SalesLine, TempItemLedgEntry."Entry No.",ABS(TempItemLedgEntry.Quantity), // Add the following lines. AmountToAssign,QtyToAssign,TotalInvDiscAmtRemaining, TotalQtyRemaining,TotalLineDiscAmtRemaining,TotalLineAmtRemaining); // End of the added lines. NonDistrQuantity := NonDistrQuantity - ABS(TempItemLedgEntry.Quantity); NonDistrQtyToAssign := NonDistrQtyToAssign - QtyToAssign; NonDistrAmountToAssign := NonDistrAmountToAssign - AmountToAssign; END ELSE // the last time ...Codice esistente 2
...NonDistrAmountToAssign := NonDistrAmountToAssign - AmountToAssign;
END ELSE // the last time PostItemCharge(SalesLine, TempItemLedgEntry."Entry No.",ABS(TempItemLedgEntry.Quantity), // Delete the following line. NonDistrAmountToAssign,NonDistrQtyToAssign); UNTIL TempItemLedgEntry.NEXT = 0; END ELSE PostItemCharge(SalesLine, ReturnRcptLine."Item Rcpt. Entry No.",ReturnRcptLine."Quantity (Base)", ...Codice di sostituzione 2
...NonDistrAmountToAssign := NonDistrAmountToAssign - AmountToAssign;
END ELSE // the last time PostItemCharge(SalesLine, TempItemLedgEntry."Entry No.",ABS(TempItemLedgEntry.Quantity), // Add the following lines. NonDistrAmountToAssign,NonDistrQtyToAssign,TotalInvDiscAmtRemaining, TotalQtyRemaining,TotalLineDiscAmtRemaining,TotalLineAmtRemaining); // End of the added lines. UNTIL TempItemLedgEntry.NEXT = 0; END ELSE PostItemCharge(SalesLine, ReturnRcptLine."Item Rcpt. Entry No.",ReturnRcptLine."Quantity (Base)", ...3 il codice esistente
...END ELSE
PostItemCharge(SalesLine, ReturnRcptLine."Item Rcpt. Entry No.",ReturnRcptLine."Quantity (Base)", TempItemChargeAssgntSales."Amount to Assign", // Delete the following line. TempItemChargeAssgntSales."Qty. to Assign") END; LOCAL PROCEDURE PostAssocItemJnlLine@3(QtyToBeShipped@1000 : Decimal;QtyToBeShippedBase@1001 : Decimal) : Integer; VAR ...Codice di sostituzione 3
...END ELSE
PostItemCharge(SalesLine, ReturnRcptLine."Item Rcpt. Entry No.",ReturnRcptLine."Quantity (Base)", TempItemChargeAssgntSales."Amount to Assign", // Add the following lines. TempItemChargeAssgntSales."Qty. to Assign",TotalInvDiscAmtRemaining, TotalQtyRemaining,TotalLineDiscAmtRemaining,TotalLineAmtRemaining) // End of the added lines. END; LOCAL PROCEDURE PostAssocItemJnlLine@3(QtyToBeShipped@1000 : Decimal;QtyToBeShippedBase@1001 : Decimal) : Integer; VAR ... -
Modificare il codice nella funzione PostItemCharge della codeunit Vendite-Registra (80) come segue:
Codice esistente 1...TempValueEntryRelation.DELETEALL;
END; END; // Delete the following line. PROCEDURE PostItemCharge@42(SalesLine@1005 : Record 37;ItemEntryNo@1004 : Integer;QuantityBase@1003 : Decimal;AmountToAssign@1002 : Decimal;QtyToAssign@1001 : Decimal); VAR DummyTrackingSpecification@1000 : Record 336; BEGIN WITH TempItemChargeAssgntSales DO BEGIN ...Codice sostitutivo 1
...TempValueEntryRelation.DELETEALL;
END; END; // Add the following line. PROCEDURE PostItemCharge@42(SalesLine@1005 : Record 37;ItemEntryNo@1004 : Integer;QuantityBase@1003 : Decimal;AmountToAssign@1002 : Decimal;QtyToAssign@1001 : Decimal;VAR TotalInvDiscAmtRemaining@1006 : Decimal;VAR TotalQtyRemaining@1007 : Decimal;VAR TotalLineDiscAmtRemaining@1008 : Decimal;VAR TotalLineAmtRemaining@1009 : Decimal); VAR DummyTrackingSpecification@1000 : Record 336; BEGIN WITH TempItemChargeAssgntSales DO BEGIN ...Codice esistente 2
...SalesLine.Amount :=
CurrExchRate.ExchangeAmtFCYToLCY( UseDate,SalesHeader."Currency Code",TotalChargeAmt,SalesHeader."Currency Factor"); SalesLine."Inv. Discount Amount" := ROUND( // Delete the following lines. SalesLine."Inv. Discount Amount" / SalesLine.Quantity * QtyToAssign, GLSetup."Amount Rounding Precision"); // End of the deleted lines. SalesLine.Amount := ROUND(SalesLine.Amount,GLSetup."Amount Rounding Precision") - TotalChargeAmtLCY; IF SalesHeader."Currency Code" <> '' THEN TotalChargeAmtLCY := TotalChargeAmtLCY + SalesLine.Amount; SalesLine."Unit Cost (LCY)" := ROUND( ...Codice di sostituzione 2
...SalesLine.Amount :=
CurrExchRate.ExchangeAmtFCYToLCY( UseDate,SalesHeader."Currency Code",TotalChargeAmt,SalesHeader."Currency Factor"); SalesLine."Inv. Discount Amount" := ROUND( // Add the following lines. TotalInvDiscAmtRemaining / TotalQtyRemaining * QtyToAssign, GLSetup."Amount Rounding Precision"); SalesLine."Line Discount Amount" := ROUND( TotalLineDiscAmtRemaining / TotalQtyRemaining * QtyToAssign, GLSetup."Amount Rounding Precision"); SalesLine."Line Amount" := ROUND( TotalLineAmtRemaining / TotalQtyRemaining * QtyToAssign, GLSetup."Amount Rounding Precision"); TotalInvDiscAmtRemaining := TotalInvDiscAmtRemaining - SalesLine."Inv. Discount Amount"; TotalLineDiscAmtRemaining := TotalLineDiscAmtRemaining - SalesLine."Line Discount Amount"; TotalLineAmtRemaining := TotalLineAmtRemaining - SalesLine."Line Amount"; TotalQtyRemaining := TotalQtyRemaining - QtyToAssign; // End of the added lines. SalesLine.Amount := ROUND(SalesLine.Amount,GLSetup."Amount Rounding Precision") - TotalChargeAmtLCY; IF SalesHeader."Currency Code" <> '' THEN TotalChargeAmtLCY := TotalChargeAmtLCY + SalesLine.Amount; SalesLine."Unit Cost (LCY)" := ROUND( ... -
Modificare il codice nella proprietà thePurch.-Post codeunit (90) come segue:
Codice esistente 1...3:
ERROR(Text015); PurchLine.Type::"Charge (Item)": IF Invoice OR ItemChargeAssgntOnly THEN BEGIN // Delete the following line. ItemJnlRollRndg := FALSE; ClearItemChargeAssgntFilter; TempItemChargeAssgntPurch.SETCURRENTKEY("Applies-to Doc. Type"); TempItemChargeAssgntPurch.SETRANGE("Document Line No.",PurchLine."Line No."); IF TempItemChargeAssgntPurch.FINDSET THEN ...Codice sostitutivo 1
...3:
ERROR(Text015); PurchLine.Type::"Charge (Item)": IF Invoice OR ItemChargeAssgntOnly THEN BEGIN // Add the following line. ItemJnlRollRndg := TRUE; ClearItemChargeAssgntFilter; TempItemChargeAssgntPurch.SETCURRENTKEY("Applies-to Doc. Type"); TempItemChargeAssgntPurch.SETRANGE("Document Line No.",PurchLine."Line No."); IF TempItemChargeAssgntPurch.FINDSET THEN ...Codice esistente 2
...GenJnlLineDocNo := TempItemChargeAssgntPurch."Applies-to Doc. No.";
CASE TempItemChargeAssgntPurch."Applies-to Doc. Type" OF TempItemChargeAssgntPurch."Applies-to Doc. Type"::Receipt: BEGIN // Delete the following line. PostItemChargePerRcpt(PurchLine); TempItemChargeAssgntPurch.MARK(TRUE); END; TempItemChargeAssgntPurch."Applies-to Doc. Type"::"Transfer Receipt": BEGIN ...Codice di sostituzione 2
...GenJnlLineDocNo := TempItemChargeAssgntPurch."Applies-to Doc. No.";
CASE TempItemChargeAssgntPurch."Applies-to Doc. Type" OF TempItemChargeAssgntPurch."Applies-to Doc. Type"::Receipt: BEGIN // Add the following lines. PostItemChargePerRcpt(PurchLine,PurchLine."Inv. Discount Amount", PurchLine.Quantity,PurchLine."Line Discount Amount",PurchLine."Line Amount"); // End of the added lines. TempItemChargeAssgntPurch.MARK(TRUE); END; TempItemChargeAssgntPurch."Applies-to Doc. Type"::"Transfer Receipt": BEGIN ...3 il codice esistente
...TempItemChargeAssgntPurch.MARK(TRUE);
END; TempItemChargeAssgntPurch."Applies-to Doc. Type"::"Transfer Receipt": BEGIN // Delete the following line. PostItemChargePerTransfer(PurchLine); TempItemChargeAssgntPurch.MARK(TRUE); END; TempItemChargeAssgntPurch."Applies-to Doc. Type"::"Return Shipment": BEGIN ...Codice di sostituzione 3
...TempItemChargeAssgntPurch.MARK(TRUE);
END; TempItemChargeAssgntPurch."Applies-to Doc. Type"::"Transfer Receipt": BEGIN // Add the following lines. PostItemChargePerTransfer(PurchLine,PurchLine."Inv. Discount Amount", PurchLine.Quantity,PurchLine."Line Discount Amount",PurchLine."Line Amount"); // End of the added lines. TempItemChargeAssgntPurch.MARK(TRUE); END; TempItemChargeAssgntPurch."Applies-to Doc. Type"::"Return Shipment": BEGIN ...4 il codice esistente
...TempItemChargeAssgntPurch.MARK(TRUE);
END; TempItemChargeAssgntPurch."Applies-to Doc. Type"::"Return Shipment": BEGIN // Delete the following line. PostItemChargePerRetShpt(PurchLine); TempItemChargeAssgntPurch.MARK(TRUE); END; TempItemChargeAssgntPurch."Applies-to Doc. Type"::"Sales Shipment": BEGIN ...Codice di sostituzione 4
...TempItemChargeAssgntPurch.MARK(TRUE);
END; TempItemChargeAssgntPurch."Applies-to Doc. Type"::"Return Shipment": BEGIN // Add the following lines. PostItemChargePerRetShpt(PurchLine,PurchLine."Inv. Discount Amount", PurchLine.Quantity,PurchLine."Line Discount Amount",PurchLine."Line Amount"); // End of the added lines. TempItemChargeAssgntPurch.MARK(TRUE); END; TempItemChargeAssgntPurch."Applies-to Doc. Type"::"Sales Shipment": BEGIN ...5 il codice esistente
...TempItemChargeAssgntPurch.MARK(TRUE);
END; TempItemChargeAssgntPurch."Applies-to Doc. Type"::"Sales Shipment": BEGIN // Delete the following line. PostItemChargePerSalesShpt(PurchLine); TempItemChargeAssgntPurch.MARK(TRUE); END; TempItemChargeAssgntPurch."Applies-to Doc. Type"::"Return Receipt": BEGIN ...Codice di sostituzione 5
...TempItemChargeAssgntPurch.MARK(TRUE);
END; TempItemChargeAssgntPurch."Applies-to Doc. Type"::"Sales Shipment": BEGIN // Add the following lines. PostItemChargePerSalesShpt(PurchLine,PurchLine."Inv. Discount Amount", PurchLine.Quantity,PurchLine."Line Discount Amount",PurchLine."Line Amount"); // End of the added lines. TempItemChargeAssgntPurch.MARK(TRUE); END; TempItemChargeAssgntPurch."Applies-to Doc. Type"::"Return Receipt": BEGIN ...6 il codice esistente
...TempItemChargeAssgntPurch.MARK(TRUE);
END; TempItemChargeAssgntPurch."Applies-to Doc. Type"::"Return Receipt": BEGIN // Delete the following line. PostItemChargePerRetRcpt(PurchLine); TempItemChargeAssgntPurch.MARK(TRUE); END; TempItemChargeAssgntPurch."Applies-to Doc. Type"::Order, TempItemChargeAssgntPurch."Applies-to Doc. Type"::Invoice: ...Codice di sostituzione 6
...TempItemChargeAssgntPurch.MARK(TRUE);
END; TempItemChargeAssgntPurch."Applies-to Doc. Type"::"Return Receipt": BEGIN // Add the following lines. PostItemChargePerRetRcpt(PurchLine,PurchLine."Inv. Discount Amount", PurchLine.Quantity,PurchLine."Line Discount Amount",PurchLine."Line Amount"); // End of the added lines. TempItemChargeAssgntPurch.MARK(TRUE); END; TempItemChargeAssgntPurch."Applies-to Doc. Type"::Order, TempItemChargeAssgntPurch."Applies-to Doc. Type"::Invoice: ... -
Modificare il codice nella funzione PostItemChargePerRcpt in thePurch.-Post codeunit (90) come segue:
Codice esistente 1...END;
END; END; // Delete the following line. LOCAL PROCEDURE PostItemChargePerRcpt@5807(PurchLine@1000 : Record 39); VAR PurchRcptLine@1002 : Record 121; TempItemLedgEntry@1003 : TEMPORARY Record 32; ItemTrackingMgt@1005 : Codeunit 6500; ...Codice sostitutivo 1
...END;
END; END; // Add the following line. LOCAL PROCEDURE PostItemChargePerRcpt@5807(PurchLine@1000 : Record 39;VAR TotalInvDiscAmtRemaining@1012 : Decimal;VAR TotalQtyRemaining@1013 : Decimal;VAR TotalLineDiscAmtRemaining@1014 : Decimal;VAR TotalLineAmtRemaining@1015 : Decimal); VAR PurchRcptLine@1002 : Record 121; TempItemLedgEntry@1003 : TEMPORARY Record 32; ItemTrackingMgt@1005 : Codeunit 6500; ...Codice esistente 2
...AmountToAssign := ROUND(NonDistrAmountToAssign * Factor,GLSetup."Amount Rounding Precision");
IF Factor < 1 THEN BEGIN PostItemCharge(PurchLine, TempItemLedgEntry."Entry No.",TempItemLedgEntry.Quantity, // Delete the following line. AmountToAssign * Sign,QtyToAssign,PurchRcptLine."Indirect Cost %"); NonDistrQuantity := NonDistrQuantity - TempItemLedgEntry.Quantity; NonDistrQtyToAssign := NonDistrQtyToAssign - QtyToAssign; NonDistrAmountToAssign := NonDistrAmountToAssign - AmountToAssign; END ELSE // the last time ...Codice di sostituzione 2
...AmountToAssign := ROUND(NonDistrAmountToAssign * Factor,GLSetup."Amount Rounding Precision");
IF Factor < 1 THEN BEGIN PostItemCharge(PurchLine, TempItemLedgEntry."Entry No.",TempItemLedgEntry.Quantity, // Add the following lines. AmountToAssign * Sign,QtyToAssign,PurchRcptLine."Indirect Cost %", TotalInvDiscAmtRemaining,TotalQtyRemaining,TotalLineDiscAmtRemaining,TotalLineAmtRemaining); // End of the added lines. NonDistrQuantity := NonDistrQuantity - TempItemLedgEntry.Quantity; NonDistrQtyToAssign := NonDistrQtyToAssign - QtyToAssign; NonDistrAmountToAssign := NonDistrAmountToAssign - AmountToAssign; END ELSE // the last time ...3 il codice esistente
...NonDistrAmountToAssign := NonDistrAmountToAssign - AmountToAssign;
END ELSE // the last time PostItemCharge(PurchLine, TempItemLedgEntry."Entry No.",TempItemLedgEntry.Quantity, // Delete the following line. NonDistrAmountToAssign * Sign,NonDistrQtyToAssign,PurchRcptLine."Indirect Cost %"); UNTIL TempItemLedgEntry.NEXT = 0; END ELSE ERROR(Text042) ELSE ...Codice di sostituzione 3
...NonDistrAmountToAssign := NonDistrAmountToAssign - AmountToAssign;
END ELSE // the last time PostItemCharge(PurchLine, TempItemLedgEntry."Entry No.",TempItemLedgEntry.Quantity, // Add the following lines. NonDistrAmountToAssign * Sign,NonDistrQtyToAssign,PurchRcptLine."Indirect Cost %", TotalInvDiscAmtRemaining,TotalQtyRemaining,TotalLineDiscAmtRemaining,TotalLineAmtRemaining); // End of the added lines. UNTIL TempItemLedgEntry.NEXT = 0; END ELSE ERROR(Text042) ELSE ...4 il codice esistente
...PostItemCharge(PurchLine,
PurchRcptLine."Item Rcpt. Entry No.",PurchRcptLine."Quantity (Base)", TempItemChargeAssgntPurch."Amount to Assign" * Sign, TempItemChargeAssgntPurch."Qty. to Assign", // Delete the following lines. PurchRcptLine."Indirect Cost %"); END; LOCAL PROCEDURE PostItemChargePerRetShpt@5811(PurchLine@1000 : Record 39); // End of the deleted lines. VAR ReturnShptLine@1002 : Record 6651; TempItemLedgEntry@1010 : TEMPORARY Record 32; ItemTrackingMgt@1009 : Codeunit 6500; ...Codice di sostituzione 4
...PostItemCharge(PurchLine,
PurchRcptLine."Item Rcpt. Entry No.",PurchRcptLine."Quantity (Base)", TempItemChargeAssgntPurch."Amount to Assign" * Sign, TempItemChargeAssgntPurch."Qty. to Assign", // Add the following lines. PurchRcptLine."Indirect Cost %",TotalInvDiscAmtRemaining, TotalQtyRemaining,TotalLineDiscAmtRemaining,TotalLineAmtRemaining); END; LOCAL PROCEDURE PostItemChargePerRetShpt@5811(PurchLine@1000 : Record 39;VAR TotalInvDiscAmtRemaining@1012 : Decimal;VAR TotalQtyRemaining@1013 : Decimal;VAR TotalLineDiscAmtRemaining@1014 : Decimal;VAR TotalLineAmtRemaining@1015 : Decimal); // End of the added lines. VAR ReturnShptLine@1002 : Record 6651; TempItemLedgEntry@1010 : TEMPORARY Record 32; ItemTrackingMgt@1009 : Codeunit 6500; ... -
Modificare il codice nella funzione PostItemChargePerRetShpt in thePurch.-Post codeunit (90) come segue:
Codice esistente 1...AmountToAssign := ROUND(NonDistrAmountToAssign * Factor,GLSetup."Amount Rounding Precision");
IF Factor < 1 THEN BEGIN PostItemCharge(PurchLine, TempItemLedgEntry."Entry No.",TempItemLedgEntry.Quantity, // Delete the following line. AmountToAssign * Sign,QtyToAssign,ReturnShptLine."Indirect Cost %"); NonDistrQuantity := NonDistrQuantity - TempItemLedgEntry.Quantity; NonDistrQtyToAssign := NonDistrQtyToAssign - QtyToAssign; NonDistrAmountToAssign := NonDistrAmountToAssign - AmountToAssign; END ELSE // the last time ...Codice sostitutivo 1
...AmountToAssign := ROUND(NonDistrAmountToAssign * Factor,GLSetup."Amount Rounding Precision");
IF Factor < 1 THEN BEGIN PostItemCharge(PurchLine, TempItemLedgEntry."Entry No.",TempItemLedgEntry.Quantity, // Add the following lines. AmountToAssign * Sign,QtyToAssign,ReturnShptLine."Indirect Cost %",TotalInvDiscAmtRemaining, TotalQtyRemaining,TotalLineDiscAmtRemaining,TotalLineAmtRemaining); // End of the added lines. NonDistrQuantity := NonDistrQuantity - TempItemLedgEntry.Quantity; NonDistrQtyToAssign := NonDistrQtyToAssign - QtyToAssign; NonDistrAmountToAssign := NonDistrAmountToAssign - AmountToAssign; END ELSE // the last time ...Codice esistente 2
...NonDistrAmountToAssign := NonDistrAmountToAssign - AmountToAssign;
END ELSE // the last time PostItemCharge(PurchLine, TempItemLedgEntry."Entry No.",TempItemLedgEntry.Quantity, // Delete the following line. NonDistrAmountToAssign * Sign,NonDistrQtyToAssign,ReturnShptLine."Indirect Cost %"); UNTIL TempItemLedgEntry.NEXT = 0; END ELSE ERROR(Text042) ELSE ...Codice di sostituzione 2
...NonDistrAmountToAssign := NonDistrAmountToAssign - AmountToAssign;
END ELSE // the last time PostItemCharge(PurchLine, TempItemLedgEntry."Entry No.",TempItemLedgEntry.Quantity, // Add the following lines. NonDistrAmountToAssign * Sign,NonDistrQtyToAssign,ReturnShptLine."Indirect Cost %",TotalInvDiscAmtRemaining, TotalQtyRemaining,TotalLineDiscAmtRemaining,TotalLineAmtRemaining); // End of the added lines. UNTIL TempItemLedgEntry.NEXT = 0; END ELSE ERROR(Text042) ELSE ...3 il codice esistente
...PostItemCharge(PurchLine,
ReturnShptLine."Item Shpt. Entry No.",-ReturnShptLine."Quantity (Base)", ABS(TempItemChargeAssgntPurch."Amount to Assign") * Sign, TempItemChargeAssgntPurch."Qty. to Assign", // Delete the following lines. ReturnShptLine."Indirect Cost %"); END; LOCAL PROCEDURE PostItemChargePerTransfer@23(PurchLine@1000 : Record 39); // End of the deleted lines. VAR TransRcptLine@1002 : Record 5747; ItemApplnEntry@1003 : Record 339; DummyTrackingSpecification@1001 : Record 336; ...Codice di sostituzione 3
...PostItemCharge(PurchLine,
ReturnShptLine."Item Shpt. Entry No.",-ReturnShptLine."Quantity (Base)", ABS(TempItemChargeAssgntPurch."Amount to Assign") * Sign, TempItemChargeAssgntPurch."Qty. to Assign", // Add the following lines. ReturnShptLine."Indirect Cost %",TotalInvDiscAmtRemaining, TotalQtyRemaining,TotalLineDiscAmtRemaining,TotalLineAmtRemaining); END; LOCAL PROCEDURE PostItemChargePerTransfer@23(PurchLine@1000 : Record 39;VAR TotalInvDiscAmtRemaining@1016 : Decimal;VAR TotalQtyRemaining@1017 : Decimal;VAR TotalLineDiscAmtRemaining@1018 : Decimal;VAR TotalLineAmtRemaining@1019 : Decimal); // End of the added lines. VAR TransRcptLine@1002 : Record 5747; ItemApplnEntry@1003 : Record 339; DummyTrackingSpecification@1001 : Record 336; ... -
Modificare il codice nella funzione PostItemChargePerTransfer in thePurch.-Post codeunit (90) come segue
Codice esistente...PurchLine."Bin Code" := '';
PurchLine."Line No." := "Document Line No."; IF TransRcptLine."Item Rcpt. Entry No." = 0 THEN // Delete the following line. PostItemChargePerITTransfer(PurchLine,TransRcptLine) ELSE BEGIN TotalAmountToPostFCY := "Amount to Assign"; IF PurchHeader."Currency Code" <> '' THEN TotalAmountToPostLCY := ...Codice di sostituzione
...PurchLine."Bin Code" := '';
PurchLine."Line No." := "Document Line No."; IF TransRcptLine."Item Rcpt. Entry No." = 0 THEN // Add the following lines. PostItemChargePerITTransfer(PurchLine,TransRcptLine,TotalInvDiscAmtRemaining, TotalQtyRemaining,TotalLineDiscAmtRemaining,TotalLineAmtRemaining) // End of the added lines. ELSE BEGIN TotalAmountToPostFCY := "Amount to Assign"; IF PurchHeader."Currency Code" <> '' THEN TotalAmountToPostLCY := ... -
Modificare il codice nella funzione PostItemChargePerITTransfer in thePurch.-Post codeunit (90) come segue:
Codice esistente 1...END;
END; END; // Delete the following line. LOCAL PROCEDURE PostItemChargePerITTransfer@43(PurchLine@1000 : Record 39;TransRcptLine@1017 : Record 5747); VAR TempItemLedgEntry@1016 : TEMPORARY Record 32; ItemTrackingMgt@1001 : Codeunit 6500; Factor@1023 : Decimal; ...Codice sostitutivo 1
...END;
END; END; // Add the following line. LOCAL PROCEDURE PostItemChargePerITTransfer@43(PurchLine@1000 : Record 39;TransRcptLine@1017 : Record 5747;VAR TotalInvDiscAmtRemaining@1026 : Decimal;VAR TotalQtyRemaining@1024 : Decimal;VAR TotalLineDiscAmtRemaining@1025 : Decimal;VAR TotalLineAmtRemaining@1030 : Decimal); VAR TempItemLedgEntry@1016 : TEMPORARY Record 32; ItemTrackingMgt@1001 : Codeunit 6500; Factor@1023 : Decimal; ...Codice esistente 2
...AmountToAssign := ROUND(NonDistrAmountToAssign * Factor,GLSetup."Amount Rounding Precision");
IF Factor < 1 THEN BEGIN PostItemCharge(PurchLine, TempItemLedgEntry."Entry No.",TempItemLedgEntry.Quantity, // Delete the following line. AmountToAssign,QtyToAssign,0); NonDistrQuantity := NonDistrQuantity - TempItemLedgEntry.Quantity; NonDistrQtyToAssign := NonDistrQtyToAssign - QtyToAssign; NonDistrAmountToAssign := NonDistrAmountToAssign - AmountToAssign; END ELSE // the last time ...Codice di sostituzione 2
...AmountToAssign := ROUND(NonDistrAmountToAssign * Factor,GLSetup."Amount Rounding Precision");
IF Factor < 1 THEN BEGIN PostItemCharge(PurchLine, TempItemLedgEntry."Entry No.",TempItemLedgEntry.Quantity, // Add the following lines. AmountToAssign,QtyToAssign,0,TotalInvDiscAmtRemaining, TotalQtyRemaining,TotalLineDiscAmtRemaining,TotalLineAmtRemaining); // End of the added lines. NonDistrQuantity := NonDistrQuantity - TempItemLedgEntry.Quantity; NonDistrQtyToAssign := NonDistrQtyToAssign - QtyToAssign; NonDistrAmountToAssign := NonDistrAmountToAssign - AmountToAssign; END ELSE // the last time ...3 il codice esistente
...NonDistrAmountToAssign := NonDistrAmountToAssign - AmountToAssign;
END ELSE // the last time PostItemCharge(PurchLine, TempItemLedgEntry."Entry No.",TempItemLedgEntry.Quantity, // Delete the following line. NonDistrAmountToAssign,NonDistrQtyToAssign,0); UNTIL TempItemLedgEntry.NEXT = 0; END ELSE ERROR(Text042); END; ...Codice di sostituzione 3
...NonDistrAmountToAssign := NonDistrAmountToAssign - AmountToAssign;
END ELSE // the last time PostItemCharge(PurchLine, TempItemLedgEntry."Entry No.",TempItemLedgEntry.Quantity, // Add the following lines. NonDistrAmountToAssign,NonDistrQtyToAssign,0,TotalInvDiscAmtRemaining, TotalQtyRemaining,TotalLineDiscAmtRemaining,TotalLineAmtRemaining); // End of the added lines. UNTIL TempItemLedgEntry.NEXT = 0; END ELSE ERROR(Text042); END; ... -
Modificare il codice nella funzione PostItemChargePerSalesShpt in thePurch.-Post codeunit (90) come segue:
Codice esistente 1...ERROR(Text042);
END; END; // Delete the following line. LOCAL PROCEDURE PostItemChargePerSalesShpt@41(PurchLine@1000 : Record 39); VAR SalesShptLine@1002 : Record 111; TempItemLedgEntry@1010 : TEMPORARY Record 32; ItemTrackingMgt@1009 : Codeunit 6500; ...Codice sostitutivo 1
...ERROR(Text042);
END; END; // Add the following line. LOCAL PROCEDURE PostItemChargePerSalesShpt@41(PurchLine@1000 : Record 39;VAR TotalInvDiscAmtRemaining@1012 : Decimal;VAR TotalQtyRemaining@1013 : Decimal;VAR TotalLineDiscAmtRemaining@1014 : Decimal;VAR TotalLineAmtRemaining@1015 : Decimal); VAR SalesShptLine@1002 : Record 111; TempItemLedgEntry@1010 : TEMPORARY Record 32; ItemTrackingMgt@1009 : Codeunit 6500; ...Codice esistente 2
...AmountToAssign := ROUND(NonDistrAmountToAssign * Factor,GLSetup."Amount Rounding Precision");
IF Factor < 1 THEN BEGIN PostItemCharge(PurchLine, TempItemLedgEntry."Entry No.",TempItemLedgEntry.Quantity, // Delete the following line. AmountToAssign * Sign,QtyToAssign,0); NonDistrQuantity := NonDistrQuantity - TempItemLedgEntry.Quantity; NonDistrQtyToAssign := NonDistrQtyToAssign - QtyToAssign; NonDistrAmountToAssign := NonDistrAmountToAssign - AmountToAssign; END ELSE // the last time ...Codice di sostituzione 2
...AmountToAssign := ROUND(NonDistrAmountToAssign * Factor,GLSetup."Amount Rounding Precision");
IF Factor < 1 THEN BEGIN PostItemCharge(PurchLine, TempItemLedgEntry."Entry No.",TempItemLedgEntry.Quantity, // Add the following lines. AmountToAssign * Sign,QtyToAssign,0,TotalInvDiscAmtRemaining, TotalQtyRemaining,TotalLineDiscAmtRemaining,TotalLineAmtRemaining); // End of the added lines. NonDistrQuantity := NonDistrQuantity - TempItemLedgEntry.Quantity; NonDistrQtyToAssign := NonDistrQtyToAssign - QtyToAssign; NonDistrAmountToAssign := NonDistrAmountToAssign - AmountToAssign; END ELSE // the last time ...3 il codice esistente
...NonDistrAmountToAssign := NonDistrAmountToAssign - AmountToAssign;
END ELSE // the last time PostItemCharge(PurchLine, TempItemLedgEntry."Entry No.",TempItemLedgEntry.Quantity, // Delete the following line. NonDistrAmountToAssign * Sign,NonDistrQtyToAssign,0); UNTIL TempItemLedgEntry.NEXT = 0; END ELSE ERROR(Text042) ELSE ...Codice di sostituzione 3
...NonDistrAmountToAssign := NonDistrAmountToAssign - AmountToAssign;
END ELSE // the last time PostItemCharge(PurchLine, TempItemLedgEntry."Entry No.",TempItemLedgEntry.Quantity, // Add the following lines. NonDistrAmountToAssign * Sign,NonDistrQtyToAssign,0,TotalInvDiscAmtRemaining, TotalQtyRemaining,TotalLineDiscAmtRemaining,TotalLineAmtRemaining); // End of the added lines. UNTIL TempItemLedgEntry.NEXT = 0; END ELSE ERROR(Text042) ELSE ...4 il codice esistente
...ELSE
PostItemCharge(PurchLine, SalesShptLine."Item Shpt. Entry No.",-SalesShptLine."Quantity (Base)", TempItemChargeAssgntPurch."Amount to Assign" * Sign, // Delete the following lines. TempItemChargeAssgntPurch."Qty. to Assign",0) END; PROCEDURE PostItemChargePerRetRcpt@37(PurchLine@1001 : Record 39); // End of the deleted lines. VAR ReturnRcptLine@1000 : Record 6661; TempItemLedgEntry@1011 : TEMPORARY Record 32; ItemTrackingMgt@1010 : Codeunit 6500; ...Codice di sostituzione 4
...ELSE
PostItemCharge(PurchLine, SalesShptLine."Item Shpt. Entry No.",-SalesShptLine."Quantity (Base)", TempItemChargeAssgntPurch."Amount to Assign" * Sign, // Add the following lines. TempItemChargeAssgntPurch."Qty. to Assign",0,TotalInvDiscAmtRemaining, TotalQtyRemaining,TotalLineDiscAmtRemaining,TotalLineAmtRemaining) END; PROCEDURE PostItemChargePerRetRcpt@37(PurchLine@1001 : Record 39;VAR TotalInvDiscAmtRemaining@1012 : Decimal;VAR TotalQtyRemaining@1013 : Decimal;VAR TotalLineDiscAmtRemaining@1014 : Decimal;VAR TotalLineAmtRemaining@1015 : Decimal); // End of the added lines. VAR ReturnRcptLine@1000 : Record 6661; TempItemLedgEntry@1011 : TEMPORARY Record 32; ItemTrackingMgt@1010 : Codeunit 6500; ... -
Modificare il codice nella funzione PostItemChargePerRetRcpt in thePurch.-Post codeunit (90) come segue:
Codice esistente 1...AmountToAssign := ROUND(NonDistrAmountToAssign * Factor,GLSetup."Amount Rounding Precision");
IF Factor < 1 THEN BEGIN PostItemCharge(PurchLine, TempItemLedgEntry."Entry No.",TempItemLedgEntry.Quantity, // Delete the following line. AmountToAssign * Sign,QtyToAssign,0); NonDistrQuantity := NonDistrQuantity - TempItemLedgEntry.Quantity; NonDistrQtyToAssign := NonDistrQtyToAssign - QtyToAssign; NonDistrAmountToAssign := NonDistrAmountToAssign - AmountToAssign; END ELSE // the last time ...Codice sostitutivo 1
...AmountToAssign := ROUND(NonDistrAmountToAssign * Factor,GLSetup."Amount Rounding Precision");
IF Factor < 1 THEN BEGIN PostItemCharge(PurchLine, TempItemLedgEntry."Entry No.",TempItemLedgEntry.Quantity, // Add the following lines. AmountToAssign * Sign,QtyToAssign,0,TotalInvDiscAmtRemaining, TotalQtyRemaining,TotalLineDiscAmtRemaining,TotalLineAmtRemaining); // End of the added lines. NonDistrQuantity := NonDistrQuantity - TempItemLedgEntry.Quantity; NonDistrQtyToAssign := NonDistrQtyToAssign - QtyToAssign; NonDistrAmountToAssign := NonDistrAmountToAssign - AmountToAssign; END ELSE // the last time ...Codice esistente 2
...NonDistrAmountToAssign := NonDistrAmountToAssign - AmountToAssign;
END ELSE // the last time PostItemCharge(PurchLine, TempItemLedgEntry."Entry No.",TempItemLedgEntry.Quantity, // Delete the following line. NonDistrAmountToAssign * Sign,NonDistrQtyToAssign,0); UNTIL TempItemLedgEntry.NEXT = 0; END ELSE ERROR(Text042) ELSE ...Codice di sostituzione 2
...NonDistrAmountToAssign := NonDistrAmountToAssign - AmountToAssign;
END ELSE // the last time PostItemCharge(PurchLine, TempItemLedgEntry."Entry No.",TempItemLedgEntry.Quantity, // Add the following lines. NonDistrAmountToAssign * Sign,NonDistrQtyToAssign,0,TotalInvDiscAmtRemaining, TotalQtyRemaining,TotalLineDiscAmtRemaining,TotalLineAmtRemaining); // End of the added lines. UNTIL TempItemLedgEntry.NEXT = 0; END ELSE ERROR(Text042) ELSE ...3 il codice esistente
...ELSE
PostItemCharge(PurchLine, ReturnRcptLine."Item Rcpt. Entry No.",ReturnRcptLine."Quantity (Base)", TempItemChargeAssgntPurch."Amount to Assign" * Sign, // Delete the following line. TempItemChargeAssgntPurch."Qty. to Assign",0) END; LOCAL PROCEDURE PostAssocItemJnlLine@3(QtyToBeShipped@1000 : Decimal;QtyToBeShippedBase@1001 : Decimal) : Integer; VAR ...Codice di sostituzione 3
...ELSE
PostItemCharge(PurchLine, ReturnRcptLine."Item Rcpt. Entry No.",ReturnRcptLine."Quantity (Base)", TempItemChargeAssgntPurch."Amount to Assign" * Sign, // Add the following lines. TempItemChargeAssgntPurch."Qty. to Assign",0,TotalInvDiscAmtRemaining, TotalQtyRemaining,TotalLineDiscAmtRemaining,TotalLineAmtRemaining) // End of the added lines. END; LOCAL PROCEDURE PostAssocItemJnlLine@3(QtyToBeShipped@1000 : Decimal;QtyToBeShippedBase@1001 : Decimal) : Integer; VAR ... -
Modificare il codice nella funzione PostItemCharge in thePurch.-Post codeunit (90) come segue:
Codice esistente 1...TempValueEntryRelation.DELETEALL;
END; END; // Delete the following line. LOCAL PROCEDURE PostItemCharge@42(PurchLine@1000 : Record 39;ItemEntryNo@1004 : Integer;QuantityBase@1005 : Decimal;AmountToAssign@1006 : Decimal;QtyToAssign@1007 : Decimal;IndirectCostPct@1008 : Decimal); VAR DummyTrackingSpecification@1001 : Record 336; BEGIN WITH TempItemChargeAssgntPurch DO BEGIN ...Codice sostitutivo 1
...TempValueEntryRelation.DELETEALL;
END; END; // Add the following line. LOCAL PROCEDURE PostItemCharge@42(PurchLine@1000 : Record 39;ItemEntryNo@1004 : Integer;QuantityBase@1005 : Decimal;AmountToAssign@1006 : Decimal;QtyToAssign@1007 : Decimal;IndirectCostPct@1008 : Decimal;VAR TotalInvDiscAmtRemaining@1009 : Decimal;VAR TotalQtyRemaining@1010 : Decimal;VAR TotalLineDiscAmtRemaining@1011 : Decimal;VAR TotalLineAmtRemaining@1012 : Decimal); VAR DummyTrackingSpecification@1001 : Record 336; BEGIN WITH TempItemChargeAssgntPurch DO BEGIN ...Codice esistente 2
...ROUND(
PurchLine.Amount / QuantityBase,GLSetup."Unit-Amount Rounding Precision"); PurchLine."Inv. Discount Amount" := ROUND( // Delete the following lines. PurchLine."Inv. Discount Amount" / PurchLine.Quantity * QtyToAssign, GLSetup."Amount Rounding Precision"); PurchLine."Line Discount Amount" := ROUND( PurchLine."Line Discount Amount" / PurchLine.Quantity * QtyToAssign, GLSetup."Amount Rounding Precision"); // End of the deleted lines. PostItemJnlLine( PurchLine, 0,0, QuantityBase,QuantityBase, ...Codice di sostituzione 2
...ROUND(
PurchLine.Amount / QuantityBase,GLSetup."Unit-Amount Rounding Precision"); PurchLine."Inv. Discount Amount" := ROUND( // Add the following lines. TotalInvDiscAmtRemaining / TotalQtyRemaining * QtyToAssign, GLSetup."Amount Rounding Precision"); PurchLine."Line Discount Amount" := ROUND( TotalLineDiscAmtRemaining / TotalQtyRemaining * QtyToAssign, GLSetup."Amount Rounding Precision"); PurchLine."Line Amount" := ROUND( TotalLineAmtRemaining / TotalQtyRemaining * QtyToAssign, GLSetup."Amount Rounding Precision"); TotalInvDiscAmtRemaining := TotalInvDiscAmtRemaining - PurchLine."Inv. Discount Amount"; TotalLineDiscAmtRemaining := TotalLineDiscAmtRemaining - PurchLine."Line Discount Amount"; TotalLineAmtRemaining := TotalLineAmtRemaining - PurchLine."Line Amount"; TotalQtyRemaining := TotalQtyRemaining - QtyToAssign; // End of the added lines. PostItemJnlLine( PurchLine, 0,0, QuantityBase,QuantityBase, ...
Prerequisiti
Deve avere uno dei seguenti prodotti per applicare questo hotfix:
-
Microsoft Dynamics NAV 2009 R2
-
Microsoft Dynamics NAV 2009 SP1
Informazioni sulla rimozione
Non è possibile rimuovere questo hotfix.
Stato
Microsoft ha confermato che questo è un problema dei prodotti Microsoft elencati nella sezione "Si applica a".
Nota: Si tratta di un articolo a "Pubblicazione Veloce" creato direttamente all'interno dell'organizzazione di supporto Microsoft. Le informazioni contenute nel presente documento sono fornite così come sono in risposta a problemi urgenti. Per la velocità in rendendo disponibili, i materiali possono includere errori tipografici e possono essere modificati in qualsiasi momento senza preavviso. Per altre considerazioni, vedere Condizioni di utilizzo.