add product sell discount js changes
This commit is contained in:
@@ -148,8 +148,10 @@ class Transfer extends \common\models\BaseFitnessActiveRecord
|
||||
$result = "";
|
||||
if ( $this->type == Transfer::TYPE_TICKET ){
|
||||
$result = $this->ticketName;
|
||||
}else{
|
||||
}else if ( $this->type == Transfer::TYPE_PRODUCT ){
|
||||
$result = $this->productName;
|
||||
}else if ( $this->type == Transfer::TYPE_MONEY_MOVEMENT_OUT ){
|
||||
$result = "Pénz kivétel - " . $this->moneyMovement->name;
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
@@ -201,10 +203,6 @@ class Transfer extends \common\models\BaseFitnessActiveRecord
|
||||
}else if ( $this->type == Transfer::TYPE_MONEY_MOVEMENT_OUT ){
|
||||
$result = Yii::t('common/transfer','Money movement');
|
||||
}
|
||||
|
||||
// $result .= " xx";
|
||||
// $result .= $this->type;
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
@@ -281,7 +279,7 @@ class Transfer extends \common\models\BaseFitnessActiveRecord
|
||||
$transfer->type = Transfer::TYPE_MONEY_MOVEMENT_OUT;
|
||||
$transfer->status = Transfer::STATUS_PAID;
|
||||
$transfer->direction = Transfer::DIRECTION_OUT;
|
||||
$transfer->count = 0;
|
||||
$transfer->count = null;
|
||||
|
||||
$transfer->id_object = $moneyMovement->id_money_movement;
|
||||
$transfer->money = $moneyMovement->money;
|
||||
|
||||
Reference in New Issue
Block a user