send package to friend

This commit is contained in:
Ibnu Maksum
2023-09-13 15:38:56 +07:00
parent 28fcabd1fd
commit f292da9d8d
8 changed files with 199 additions and 33 deletions

View File

@ -19,12 +19,7 @@ class Balance
{
global $config;
if (Balance::min($id_customer, $amount)) {
if (Balance::plusByPhone($phoneTarget, $amount)) {
return true;
} else {
Balance::plus($id_customer, $amount);
return false;
}
return Balance::plusByPhone($phoneTarget, $amount);
} else {
return false;
}