|
@@ -77,14 +77,14 @@ abstract class BaseKataoCartProduct extends BaseObject implements Persistent {
|
|
|
|
|
|
/**
|
|
/**
|
|
* The value for the quantity field.
|
|
* The value for the quantity field.
|
|
- * @var int
|
|
|
|
|
|
+ * @var double
|
|
*/
|
|
*/
|
|
protected $quantity = 1;
|
|
protected $quantity = 1;
|
|
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
* The value for the quantity_adjusted field.
|
|
* The value for the quantity_adjusted field.
|
|
- * @var int
|
|
|
|
|
|
+ * @var double
|
|
*/
|
|
*/
|
|
protected $quantity_adjusted = 0;
|
|
protected $quantity_adjusted = 0;
|
|
|
|
|
|
@@ -98,7 +98,7 @@ abstract class BaseKataoCartProduct extends BaseObject implements Persistent {
|
|
|
|
|
|
/**
|
|
/**
|
|
* The value for the quantity_delivered field.
|
|
* The value for the quantity_delivered field.
|
|
- * @var int
|
|
|
|
|
|
+ * @var double
|
|
*/
|
|
*/
|
|
protected $quantity_delivered = 0;
|
|
protected $quantity_delivered = 0;
|
|
|
|
|
|
@@ -255,7 +255,7 @@ abstract class BaseKataoCartProduct extends BaseObject implements Persistent {
|
|
/**
|
|
/**
|
|
* Get the [quantity] column value.
|
|
* Get the [quantity] column value.
|
|
*
|
|
*
|
|
- * @return int
|
|
|
|
|
|
+ * @return double
|
|
*/
|
|
*/
|
|
public function getQuantity()
|
|
public function getQuantity()
|
|
{
|
|
{
|
|
@@ -266,7 +266,7 @@ abstract class BaseKataoCartProduct extends BaseObject implements Persistent {
|
|
/**
|
|
/**
|
|
* Get the [quantity_adjusted] column value.
|
|
* Get the [quantity_adjusted] column value.
|
|
*
|
|
*
|
|
- * @return int
|
|
|
|
|
|
+ * @return double
|
|
*/
|
|
*/
|
|
public function getQuantityAdjusted()
|
|
public function getQuantityAdjusted()
|
|
{
|
|
{
|
|
@@ -288,7 +288,7 @@ abstract class BaseKataoCartProduct extends BaseObject implements Persistent {
|
|
/**
|
|
/**
|
|
* Get the [quantity_delivered] column value.
|
|
* Get the [quantity_delivered] column value.
|
|
*
|
|
*
|
|
- * @return int
|
|
|
|
|
|
+ * @return double
|
|
*/
|
|
*/
|
|
public function getQuantityDelivered()
|
|
public function getQuantityDelivered()
|
|
{
|
|
{
|
|
@@ -538,18 +538,12 @@ abstract class BaseKataoCartProduct extends BaseObject implements Persistent {
|
|
/**
|
|
/**
|
|
* Set the value of [quantity] column.
|
|
* Set the value of [quantity] column.
|
|
*
|
|
*
|
|
- * @param int $v new value
|
|
|
|
|
|
+ * @param double $v new value
|
|
* @return void
|
|
* @return void
|
|
*/
|
|
*/
|
|
public function setQuantity($v)
|
|
public function setQuantity($v)
|
|
{
|
|
{
|
|
|
|
|
|
- // Since the native PHP type for this column is integer,
|
|
|
|
- // we will cast the input value to an int (if it is not).
|
|
|
|
- if ($v !== null && !is_int($v) && is_numeric($v)) {
|
|
|
|
- $v = (int) $v;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
if ($this->quantity !== $v || $v === 1) {
|
|
if ($this->quantity !== $v || $v === 1) {
|
|
$this->quantity = $v;
|
|
$this->quantity = $v;
|
|
$this->modifiedColumns[] = KataoCartProductPeer::QUANTITY;
|
|
$this->modifiedColumns[] = KataoCartProductPeer::QUANTITY;
|
|
@@ -560,18 +554,12 @@ abstract class BaseKataoCartProduct extends BaseObject implements Persistent {
|
|
/**
|
|
/**
|
|
* Set the value of [quantity_adjusted] column.
|
|
* Set the value of [quantity_adjusted] column.
|
|
*
|
|
*
|
|
- * @param int $v new value
|
|
|
|
|
|
+ * @param double $v new value
|
|
* @return void
|
|
* @return void
|
|
*/
|
|
*/
|
|
public function setQuantityAdjusted($v)
|
|
public function setQuantityAdjusted($v)
|
|
{
|
|
{
|
|
|
|
|
|
- // Since the native PHP type for this column is integer,
|
|
|
|
- // we will cast the input value to an int (if it is not).
|
|
|
|
- if ($v !== null && !is_int($v) && is_numeric($v)) {
|
|
|
|
- $v = (int) $v;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
if ($this->quantity_adjusted !== $v || $v === 0) {
|
|
if ($this->quantity_adjusted !== $v || $v === 0) {
|
|
$this->quantity_adjusted = $v;
|
|
$this->quantity_adjusted = $v;
|
|
$this->modifiedColumns[] = KataoCartProductPeer::QUANTITY_ADJUSTED;
|
|
$this->modifiedColumns[] = KataoCartProductPeer::QUANTITY_ADJUSTED;
|
|
@@ -604,18 +592,12 @@ abstract class BaseKataoCartProduct extends BaseObject implements Persistent {
|
|
/**
|
|
/**
|
|
* Set the value of [quantity_delivered] column.
|
|
* Set the value of [quantity_delivered] column.
|
|
*
|
|
*
|
|
- * @param int $v new value
|
|
|
|
|
|
+ * @param double $v new value
|
|
* @return void
|
|
* @return void
|
|
*/
|
|
*/
|
|
public function setQuantityDelivered($v)
|
|
public function setQuantityDelivered($v)
|
|
{
|
|
{
|
|
|
|
|
|
- // Since the native PHP type for this column is integer,
|
|
|
|
- // we will cast the input value to an int (if it is not).
|
|
|
|
- if ($v !== null && !is_int($v) && is_numeric($v)) {
|
|
|
|
- $v = (int) $v;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
if ($this->quantity_delivered !== $v || $v === 0) {
|
|
if ($this->quantity_delivered !== $v || $v === 0) {
|
|
$this->quantity_delivered = $v;
|
|
$this->quantity_delivered = $v;
|
|
$this->modifiedColumns[] = KataoCartProductPeer::QUANTITY_DELIVERED;
|
|
$this->modifiedColumns[] = KataoCartProductPeer::QUANTITY_DELIVERED;
|
|
@@ -730,13 +712,13 @@ abstract class BaseKataoCartProduct extends BaseObject implements Persistent {
|
|
|
|
|
|
$this->product_tva_rate = $rs->getFloat($startcol + 7);
|
|
$this->product_tva_rate = $rs->getFloat($startcol + 7);
|
|
|
|
|
|
- $this->quantity = $rs->getInt($startcol + 8);
|
|
|
|
|
|
+ $this->quantity = $rs->getFloat($startcol + 8);
|
|
|
|
|
|
- $this->quantity_adjusted = $rs->getInt($startcol + 9);
|
|
|
|
|
|
+ $this->quantity_adjusted = $rs->getFloat($startcol + 9);
|
|
|
|
|
|
$this->has_been_adjusted = $rs->getInt($startcol + 10);
|
|
$this->has_been_adjusted = $rs->getInt($startcol + 10);
|
|
|
|
|
|
- $this->quantity_delivered = $rs->getInt($startcol + 11);
|
|
|
|
|
|
+ $this->quantity_delivered = $rs->getFloat($startcol + 11);
|
|
|
|
|
|
$this->katao_order_product_id = $rs->getInt($startcol + 12);
|
|
$this->katao_order_product_id = $rs->getInt($startcol + 12);
|
|
|
|
|