Before Delete any voucher must be generate Xml

Discussion in 'Free Source Codes' started by Pradeep.maniray, Nov 19, 2013.

    
  1. Pradeep.maniray

    Pradeep.maniray New Member


    Dear all

    i want to generate xml before delete any voucher. when we are delete from Daybook then xml are not generater particular deleted voucher,it's export all the voucher.it means selecte lines filter are not work but when we delete the voucher in the alter mode or create mode the xml is generated.
     

    Attached Files:




  2. Hi Pradeep, I yet to analyse your query. But the idea is really nice.
     


  3. Pradeep.maniray

    Pradeep.maniray New Member


    Dear all

    i m solve this problem using this function.


    [Function: Smp Export Selected]

    VARIABLE: LedgerName : String
    VARIABLE: Count: Number
    VARIABLE: ProgressCount: Number
    Variable: VoucherID: String
    ;; Creating local formulae. These formulas are available only within the function
    LOCAL FORMULA: TextForMsg: $$String:##COUNT + " Files Exported"
    ;; Procedual Block
    10: SET : Count: 0
    20: SET: ProgressCount: 1
    30: SET: SVExportFormat: $$SysName:XML
    70: START PROGRESS: ($$NumItems:SelectedvoucherExport):"Exporting":"Selected Voucher Export"
    80: WALK COLLECTION : SelectedvoucherExport
    3d: Set: SVExportLocation: $$SysInfo:$$ApplicationPath
    002: Set: SVOpenFileAfterExport: No
    100 : Set: SVPrintFileName : $$String:$Vouchertypename+"_"+$$String:$vouchernumber
    110: SET: SVPrintFileName: $$MakeExportName:##SVPrintFileName:##SVExportFormat
    11a : Set: VoucherID : "ID:"+$$String:$Masterid
    120: Export : First TDL Report ;; : TRUE
    130: SHOW PROGRESS: ##ProgressCount
    140: INCREMENT: ProgressCount
    150: INCREMENT: Count
    160: END WALK
    170: END PROGRESS
    180: MSGBOX: "***EXPORTING***" : @TextForMsg: NO
    190: RETURN: True

    more detail pls go this blog
    http://pmani85.blogspot.in/
     


Share This Page