Purchase Quote - Copy document

rico1931rico1931 Member Posts: 295
edited 2013-03-05 in NAV Three Tier
Hi Everyone,

There is a field in Purchase Quote called "Expected Receipt Date" One of our users just noticed that when they Copy another Purchase Quote, it does not bring over the Expected Receipt Date.

Does any one know how I can begin to debug and possibly fix? On the purchase line it's field 10 . I just can't figure out why it brings every other field over except that one...

thanks
-rico
-rico1931

Answers

  • mohana_cse06mohana_cse06 Member Posts: 5,504
    I tried it in NAV2009R2 - Standard Database and it is copying Expected Receipt Date from previous Purchase Quote..
  • pawanppawanp Member Posts: 90
    rico1931 wrote:
    Hi Everyone,

    There is a field in Purchase Quote called "Expected Receipt Date" One of our users just noticed that when they Copy another Purchase Quote, it does not bring over the Expected Receipt Date.

    Does any one know how I can begin to debug and possibly fix? On the purchase line it's field 10 . I just can't figure out why it brings every other field over except that one...

    thanks
    -rico

    Click Include Header in copy document screen
  • rico1931rico1931 Member Posts: 295
    Thanks for the response. We have R2 and when I tried it again it didn't work. It's on the Line not on the header. I've tried to see if on the page there is something different and nothing is different.

    This field is NOT a standard field option to be visible when I try it in Classic Client. Could that be the reason why? Would it need to be coded in? Also mohana_cse06 did you have any modification done to copy the Expected receipt date?
    -rico1931
  • mohana_cse06mohana_cse06 Member Posts: 5,504
    I didnt do any modification.

    Can you explain a bit more with which options are you trying and what value do you have in already existing PurchLine."Expected Receipt Date" and what value is created in newPurchLine."Expected Receipt Date"?
  • rico1931rico1931 Member Posts: 295
    Sure thing... So I have a Purchase quote open and ready. All the lines are filled out.



    I open a new purchase quote and copy document and only want the lines since I'm changing the vendor info I'm sending it to.



    Once the copy is complete the only field not filled in is the expected receipt date field..

    -rico1931
  • pawanppawanp Member Posts: 90
    Excepted receipt date will get copied to the lines only if it is present in the header and Include Header is checked. Excepted receipt date will not get transferred from purchase lines(I have no :idea: why ). Have a look at the code in Codeunit 6620 Copy Document Mgmt function CopyPurchLine(....). Include a additional validate call in this function to copy Expected receipt date from the lines. See screenshot
    IF FromPurchLine."Document Type" = FromPurchLine."Document Type"::Quote then
    ToPurchLine.VALIDATE("Expected Receipt Date",FromPurchLine."Expected Receipt Date");
    
  • rico1931rico1931 Member Posts: 295
    pawanp wrote:
    Excepted receipt date will get copied to the lines only if it is present in the header and Include Header is checked. Excepted receipt date will not get transferred from purchase lines(I have no :idea: why ). Have a look at the code in Codeunit 6620 Copy Document Mgmt function CopyPurchLine(....). Include a additional validate call in this function to copy Expected receipt date from the lines. See screenshot
    IF FromPurchLine."Document Type" = FromPurchLine."Document Type"::Quote then
    ToPurchLine.VALIDATE("Expected Receipt Date",FromPurchLine."Expected Receipt Date");
    


    Perfect! It worked! Thank you so much! \:D/
    -rico1931
Sign In or Register to comment.