mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 16:04:32 -04:00
Fixes for product transformer
This commit is contained in:
parent
777d0a54d0
commit
ec7f0117fc
@ -92,7 +92,7 @@ class ProductTransformer extends EntityTransformer
|
|||||||
'is_deleted' => (bool) $product->is_deleted,
|
'is_deleted' => (bool) $product->is_deleted,
|
||||||
'in_stock_quantity' => (int) $product->in_stock_quantity ?: 0,
|
'in_stock_quantity' => (int) $product->in_stock_quantity ?: 0,
|
||||||
'stock_notification' => (bool) $product->stock_notification,
|
'stock_notification' => (bool) $product->stock_notification,
|
||||||
'stock_notification_threshold' => (bool) $product->stock_notification_threshold,
|
'stock_notification_threshold' => (int) $product->stock_notification_threshold,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user