Bug 22566: Add 'branch' key to GetPreparedLetter
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 18 Jun 2019 13:29:02 +0000 (14:29 +0100)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 25 Jun 2019 16:01:29 +0000 (17:01 +0100)
The branch key was missing from the subsitution call to
GetPreparedLetter.

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

misc/cronjobs/stockrotation.pl

index 87d6a9e..c40fc62 100755 (executable)
@@ -362,7 +362,7 @@ sub _report_per_branch {
             letter_code            => "SR_SLIP",
             branchcode             => $branch->{code},
             message_transport_type => 'email',
-            substitute             => $branch
+            substitute             => { branch => $branch }
         )
       )
     {