forked from kevinowino869/mitrobill
show Additional Billing in the customer
This commit is contained in:
@ -56,6 +56,22 @@ class User
|
||||
return [$bills, $addcost];
|
||||
}
|
||||
|
||||
public static function getBillNames($id = 0)
|
||||
{
|
||||
if (!$id) {
|
||||
$id = User::getID();
|
||||
if (!$id) {
|
||||
return [];
|
||||
}
|
||||
}
|
||||
$bills = [];
|
||||
$attrs = User::getAttributes('Bill', $id);
|
||||
foreach ($attrs as $k => $v) {
|
||||
$bills[] = str_replace(' Bill', '', $k);
|
||||
}
|
||||
return $bills;
|
||||
}
|
||||
|
||||
public static function billsPaid($bills, $id = 0)
|
||||
{
|
||||
if (!$id) {
|
||||
|
Reference in New Issue
Block a user