Browse Source

Création de la classe Document parente de Invoice, Quotation et DeliveryNote

#161
refactoring
Guillaume Bourgeois 4 years ago
parent
commit
b31c536a4d
4 changed files with 15 additions and 3 deletions
  1. +1
    -1
      common/models/DeliveryNote.php
  2. +12
    -0
      common/models/Document.php
  3. +1
    -1
      common/models/Invoice.php
  4. +1
    -1
      common/models/Quotation.php

+ 1
- 1
common/models/DeliveryNote.php View File

@@ -19,7 +19,7 @@ use Yii;
* @property string $city
* @property string $postcode
*/
class DeliveryNote extends ActiveRecordCommon
class DeliveryNote extends Document
{
/**
* @inheritdoc

+ 12
- 0
common/models/Document.php View File

@@ -0,0 +1,12 @@
<?php

/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/

class Document extends ActiveRecordCommon
{
}

+ 1
- 1
common/models/Invoice.php View File

@@ -18,7 +18,7 @@ use Yii;
* @property string $city
* @property string $postcode
*/
class Invoice extends ActiveRecordCommon
class Invoice extends Document
{
/**
* @inheritdoc

+ 1
- 1
common/models/Quotation.php View File

@@ -17,7 +17,7 @@ use Yii;
* @property string $city
* @property string $postcode
*/
class Quotation extends ActiveRecordCommon
class Quotation extends Document
{
/**
* @inheritdoc

Loading…
Cancel
Save