[{"widget-type":"QtMaterialFlatButton", "Layout":"filterLayout", "widget-id":1, "text":"Print Details List", "action":"printList", "widget-align":"AlignRight", "query":"SELECT main.Voucher_Date,  main.Voucher_No , (select ledger_name from $master_db.ledger_master led where led.ledger_id = det.Ledger_ID ) 'Ledger', ( select ledger_name from ledger_master led where led.ledger_id = main.Ledger_ID ) 'Mode Of Pay', Dr_Amount  as Amount,  main.Narration  FROM $trans_db.Payment_Voucher_Main main JOIN $trans_db.Payment_Voucher_Details  det ON main.Voucher_No  = det.Voucher_No  AND main.Voucher_Prefix  = det.Voucher_Prefix  where  main.Voucher_Date >=str_to_date('$fromDateTime','%Y-%m-%d %H:%i:%s')  and  main.Voucher_Date <= str_to_date('$toDateTime','%Y-%m-%d %H:%i:%s')  order by 1"}]