Merge pull request #377 from agstrxyz/patch-22

Update Package.php
This commit is contained in:
iBNu Maksum 2025-01-02 14:40:33 +07:00 committed by GitHub
commit bbdf561b3b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -283,7 +283,7 @@ class Package
$t = ORM::for_table('tbl_transactions')->create();
$t->invoice = $inv = "INV-" . Package::_raid();
$t->username = $c['username'];
$t->user_id = $c['id'];
$t->user_id = $id_customer;
$t->plan_name = $p['name_plan'];
if ($gateway == 'Voucher' && User::isUserVoucher($channel)) {
//its already paid
@ -399,7 +399,7 @@ class Package
$t = ORM::for_table('tbl_transactions')->create();
$t->invoice = $inv = "INV-" . Package::_raid();
$t->username = $c['username'];
$t->user_id = $c['id'];
$t->user_id = $id_customer;
$t->plan_name = $p['name_plan'];
if ($gateway == 'Voucher' && User::isUserVoucher($channel)) {
$t->price = 0;