Transaction list

This commit is contained in:
Ibnu Maksum
2023-10-20 14:31:56 +07:00
parent d037b2bef4
commit 51ab4a35c5
6 changed files with 127 additions and 28 deletions

View File

@ -355,13 +355,16 @@ switch ($action) {
$ui->assign('planid', $planid);
$voucher = [];
$n = 1;
foreach ($v as $vs) {
$temp = $template;
$temp = str_replace('[[qrcode]]', '<img src="qrcode/?data=' . $vs['code'] . '">', $temp);
$temp = str_replace('[[price]]', Lang::moneyFormat($vs['price']), $temp);
$temp = str_replace('[[voucher_code]]', $vs['code'], $temp);
$temp = str_replace('[[plan]]', $vs['name_plan'], $temp);
$temp = str_replace('[[counter]]', $n, $temp);
$voucher[] = $temp;
$n++;
}
$ui->assign('voucher',$voucher);