Skip to content

Commit

Permalink
Refs #24418, Modify style of stamp in annual receipt.
Browse files Browse the repository at this point in the history
  • Loading branch information
junsuwhy committed Dec 28, 2018
1 parent d94d52a commit 3c1c958
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Contact/Form/Task/AnnualReceipt.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,10 @@ public function makeReceipt($contactIds, $option) {
if ($count) {
$html = '<div class="page-break" style="page-break-after: always;"></div>';
}
$html .= CRM_Contribute_BAO_Contribution::getAnnualReceipt($contact_id, $option, $template);
$config = &CRM_Core_Config::singleton();
$template->assign('imageBigStampUrl', $config->imageUploadDir . $config->imageBigStampName);
$template->assign('imageSmallStampUrl', $config->imageUploadDir . $config->imageSmallStampName);
$html .= CRM_Contribute_BAO_Contribution::getAnnualReceipt($contact_id, $option, $template);
self::pushFile($html);

// reset template values before processing next transactions
Expand Down
6 changes: 6 additions & 0 deletions templates/CRM/common/AnnualReceipt.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ table td { padding: 2px 4px; }
.single-page-header { height: 200px; position: relative; }
.single-page-header .info {position: absolute; top: 45px; left: 50px; max-width:250px; }
.single-page-header .info .address { margin-bottom: 10px;}
.stamp-wrapper{position: relative;}
.stamp-img{position: absolute;}
.big-stamp{bottom: 0;max-height: 103px;left: 1px;}
.small-stamp{top: 0;max-height: 43px;left: 70px;z-index: -1;}
{/literal}
</style>
</head>
Expand Down

0 comments on commit 3c1c958

Please sign in to comment.