add editable account on reception/customer-cart, add towel handling

This commit is contained in:
2016-10-21 20:39:02 +02:00
parent 8585286150
commit 90c598f8c6
26 changed files with 649 additions and 37 deletions

View File

@@ -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],
]);
}