How we can Identify whether the document (i.e Invoice) is printed or Not?

Discussion in 'Requests' started by Arun Prasath, Jun 20, 2012.

    
  1. Arun Prasath

    Arun Prasath Member


    Dear sir,

    Pls let me know in which method Name we can identify whether the Invoice is printed or Not?


    Rgds,
    Arun
     


  2. admin

    admin Administrator Staff Member


    No we do not have any. But you can customize this.
     


  3. narasima

    narasima New Member


    how we can customise
     


  4. Vikram

    Vikram Member


    Hi,

    1.Create an udf at voucher level
    2.use the new system event available afer release 3.0 at report levele defintion i.e : ON : AFTER PRINT

    ex :
    [Report : Report name to be printed]

    On : After Print : NOT $$InPreviewMode : CALL : Update Sales Printed Flag
     


  5. Raju Bhanushali

    Raju Bhanushali New Member


    If the invoice is already printed. I want to allow user to preview the invoice but restrict actual print. Please guide.
     


  6. Arun Prasath

    Arun Prasath Member




    Yes,

    I have done this

    Thnaks Mr. Vikaram
     


  7. Raju Bhanushali

    Raju Bhanushali New Member


    What actiion should be taken in the function Update Sales Printed Flag if test for printed flag is positive.
    I think this is not going to solve the issue.
    Can you paste the code you have tested.
    Thanks
    Regards
    Raju Bhanushali
     


  8. Raju Bhanushali

    Raju Bhanushali New Member


    If any one has successfully done this, please post the code.
     


  9. Arun Prasath

    Arun Prasath Member


    Dear Raju,

    1. Add a logical udf at the voucher level
    2. After printing, update the udf value. [To achive this, use the event After Print. Refer to the TDL Referent manual]
    3. Based on the udf value you can judge whether voucher is printed or not.


    Rgds,

    Arun
     


  10. Raju Bhanushali

    Raju Bhanushali New Member


    That is fine. If the voucher is already printed. Hence the logical udf at voucher level will be true. Now I can disable the print altogether by making the print button inactive if the logical udf is true. But my question here is I want to allow user to preview but I want to restrict the print from the preview. Either by pressing Alt+P or clicking on the Print link on the preview form.
    Thanks
    Regards
    Raju Bhanushali
     


Share This Page