add editable account on reception/customer-cart, add towel handling
This commit is contained in:
@@ -48,7 +48,7 @@ class TransferSearch extends Transfer
|
||||
public function rules()
|
||||
{
|
||||
return [
|
||||
[['id_account', 'id_user', 'type', 'status', 'payment_method'], 'integer'],
|
||||
[['id_account', 'id_user', 'type', 'status', 'payment_method','paid_by'], 'integer'],
|
||||
[['customer_name','output','transfer_name', 'card_number' ], 'safe'],
|
||||
// [[ 'searchObjectName' ], 'string'],
|
||||
// [[ 'start', ], 'date' , 'timestampAttribute' => 'timestampStart' ,'timestampAttributeFormat' => 'yyyy-MM-dd' ],
|
||||
@@ -189,7 +189,12 @@ class TransferSearch extends Transfer
|
||||
$query->andFilterWhere([
|
||||
'or',
|
||||
['transfer.id_user' => $this->id_user],
|
||||
['transfer.paid_by' => $this->id_user],
|
||||
]);
|
||||
}
|
||||
if (isset($this->paid_by)) {
|
||||
$query->andFilterWhere([
|
||||
'or',
|
||||
['transfer.paid_by' => $this->paid_by],
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user