]> git.koha-community.org Git - koha.git/commit
Bug 24591: Add developer script to preview a letter
authorJulian Maurice <julian.maurice@biblibre.com>
Wed, 5 Feb 2020 11:20:37 +0000 (12:20 +0100)
committerLucas Gass <lucas@bywatersolutions.com>
Fri, 14 Aug 2020 22:43:22 +0000 (22:43 +0000)
commite14245ad7c1235bd832cdf655e8d9ad5cb18c524
tree96faf850cf396eb1a846d0463a2fc6be78084082
parent2478ba03f064b70e03da9c6ca3667c8b5fd37403
Bug 24591: Add developer script to preview a letter

The script is very simple, it just calls GetPreparedLetter with
arguments given on command line and print the resulting letter content

Usage example:

misc/devel/get-prepared-letter.pl --module circulation \
    --letter_code ODUE --tables '{"borrowers":1,"branches":"CPL"}' \
    --repeat '{"item":[{"biblio":1,"items":1}]}' \
    --loops '{"overdues":[1]}'

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Works for the example and other cases.
Correct option is 'letter-code', with dash, not underscore.
An usage message would be nice.
No errors

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
JD amended patch: tidy the new file and rename it matching the other
scripts' names in this directory

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit f74ab4e9de75b53dc7040814b1f25ae282a81106)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
misc/devel/get_prepared_letter.pl [new file with mode: 0755]