Beruflich Dokumente
Kultur Dokumente
txt
;; author : shweta computers
;;objective:-
;;to display narration line and provide f12 configuration key functionality
;;in my daybook
;;======================================================================
[report: mydbktdl]
family: $$translate:"daybook"
;; the attribute family specifies that this report (i.e. mydbktdl)
;; belongs to a family (report) named daybook.
;; daybook is a pre-defined report and here we are specifying that
;; mydbktdl report belongs to the same daybook family.
;; this will affect access to mydbktdl report.
;; now, when we change the access to daybook report using option
;; "gateway of tally -> alt+f3 -> security features".
;; it will automatically affect the report mydbktdl
form : my form
[form: my form]
button: printbutton
;;printbutton is a pre-defined button. we just add is here.
button: explodeflag
;;explodeflag is a pre-defined button in default tally.
;;try using key instead of button, alt+f1 still works,
;;but the "alt+f1" button is not displayed
[part: my db title]
;;optional parts
option: my db prnttitle : $$inprintmode
option: my db scrtitle : not $$inprintmode
[!part: my db prnttitle]
[!part: my db scrtitle]
line: my db title
[line: my db title]
field : name field
local : field : name field : set as : $$localestring:"daybook"
[part: my db body]
line: my line
scroll: vertical
;;shows border
common border: yes
[line: my line]
left fields: myfld1,myfld2
right fields: myfld3,myfld4
[field: myfld1]
;;type attribute specifies the data-type of the field
type : date
set as : $date
[field: myfld2]
use : name field
set as : $$collectionfield:$ledgername:1:allledgerentries
[field: myfld3]
use : short name field
set as : $vouchertypename
[field: myfld4]
use : amount field
set as : $amount
;;important:-
;;this part is displayed when explodeflag variable is set to yes
;;i.e. when user presses alt+f1 key
[part: myexplodepart]
line : myexplodline
line : myexplodenarrline
;; specify the fields that you wish to display when the part is exploded
[line: myexplodline]
;;amount field
[field: fldexplodeamount]
use : amount field
set as : $amount
style : small italic
width : @@shortwidth
;; notes:-
;; 1) this program is an extension of program tdl42.txt
;;
;; 2) we have added functionality to display the narration line
;;
;; 3) we have added functionality for f12 configuration key