commonorder.class.php 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. <?php
  2. /* Copyright (C) 2012 Regis Houssin <regis.houssin@capnetworks.com>
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation; either version 3 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. */
  17. /**
  18. * \file htdocs/core/class/commonorder.class.php
  19. * \ingroup core
  20. * \brief File of the superclass of orders classes (customer and supplier)
  21. */
  22. require_once DOL_DOCUMENT_ROOT .'/core/class/commonobject.class.php';
  23. require_once DOL_DOCUMENT_ROOT .'/core/class/commonobjectline.class.php';
  24. /**
  25. * Superclass for orders classes
  26. */
  27. abstract class CommonOrder extends CommonObject
  28. {
  29. }
  30. /**
  31. * Superclass for orders classes
  32. */
  33. abstract class CommonOrderLine extends CommonObjectLine
  34. {
  35. /**
  36. * Product ref
  37. * @var string
  38. * @deprecated Use product_ref
  39. * @see product_ref
  40. */
  41. public $ref;
  42. /**
  43. * Product ref
  44. * @var string
  45. */
  46. public $product_ref;
  47. /**
  48. * Product label
  49. * @var string
  50. * @deprecated Use product_label
  51. * @see product_label
  52. */
  53. public $libelle;
  54. /**
  55. * Product label
  56. * @var string
  57. */
  58. public $product_label;
  59. /**
  60. * Product description
  61. * @var string
  62. */
  63. public $product_desc;
  64. /**
  65. * Quantity
  66. * @var float
  67. */
  68. public $qty;
  69. /**
  70. * Unit price
  71. * @deprecated
  72. * @see subprice
  73. */
  74. var $price;
  75. /**
  76. * Unit price before taxes
  77. * @var float
  78. */
  79. public $subprice;
  80. /**
  81. * Type of the product. 0 for product 1 for service
  82. * @var int
  83. */
  84. public $product_type = 0;
  85. /**
  86. * Description of the line
  87. * @var string
  88. */
  89. public $desc;
  90. /**
  91. * Id of corresponding product
  92. * @var int
  93. */
  94. public $fk_product;
  95. /**
  96. * Percent line discount
  97. * @var float
  98. */
  99. public $remise_percent;
  100. /**
  101. * VAT %
  102. * @var float
  103. */
  104. public $tva_tx;
  105. /**
  106. * Local tax 1 %
  107. * @var float
  108. */
  109. public $localtax1_tx;
  110. /**
  111. * Local tax 2 %
  112. * @var float
  113. */
  114. public $localtax2_tx;
  115. public $localtax1_type;
  116. public $localtax2_type;
  117. /**
  118. * Liste d'options cumulables:
  119. * Bit 0: 0 si TVA normal - 1 si TVA NPR
  120. * Bit 1: 0 si ligne normal - 1 si bit discount (link to line into llx_remise_except)
  121. * @var int
  122. */
  123. public $info_bits = 0;
  124. public $special_code = 0;
  125. }