Add inventory changes ( tax, net purchase price
This commit is contained in:
@@ -40,6 +40,7 @@ use yii\web\NotAcceptableHttpException;
|
||||
* @property integer $id_customer
|
||||
* @property int|string paid_by
|
||||
* @property int payment_method
|
||||
* @property \common\models\Ticket ticket
|
||||
*/
|
||||
class Transfer extends \common\models\BaseFitnessActiveRecord {
|
||||
const TYPE_PRODUCT = 10;
|
||||
@@ -597,7 +598,6 @@ class Transfer extends \common\models\BaseFitnessActiveRecord {
|
||||
public function beforeDelete() {
|
||||
parent::beforeDelete ();
|
||||
if ($this->type == Transfer::TYPE_TICKET) {
|
||||
/** @noinspection PhpUndefinedFieldInspection */
|
||||
$ticket = $this->ticket;
|
||||
if ($ticket != null) {
|
||||
$ticket->delete ();
|
||||
|
||||
Reference in New Issue
Block a user