Koha/misc/devel
Julian Maurice f74ab4e9de 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>
2020-08-07 16:54:40 +02:00
..
add_missing_filters.pl Bug 21576: Add a developer script to fix missing TT filters 2018-10-26 17:09:51 +00:00
coverage.pl
create_superlibrarian.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
get_prepared_letter.pl Bug 24591: Add developer script to preview a letter 2020-08-07 16:54:40 +02:00
install_plugins.pl Bug 20415: Remove UseKohaPlugins system preference 2020-03-26 11:42:02 +00:00
update_dbix_class_files.pl Bug 25511: Add POD for --force 2020-07-20 17:45:31 +02:00