Add ContractForm, Add contract pdf, Add Display all Transfer option
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
namespace common\models;
|
||||
|
||||
use Yii;
|
||||
use common\components\Helper;
|
||||
|
||||
/**
|
||||
* This is the model class for table "shopping_cart".
|
||||
@@ -72,6 +73,8 @@ class ShoppingCart extends \yii\db\ActiveRecord
|
||||
|
||||
if ( isset($account)){
|
||||
$sql .= " , id_account = " . $account;
|
||||
} else if ( Helper::isUserCartVisibilityAll()){
|
||||
$sql .= " , id_account = " . Account::readDefault();
|
||||
}
|
||||
|
||||
$sql .= " WHERE t.status = " . Transfer::STATUS_NOT_PAID
|
||||
|
||||
Reference in New Issue
Block a user