WposStockItem

pharmacy-pos · library/wpos/models/objects/WposStockItem.php · php · LGPL-3.0
unclassified, pos, payments, tag:stock-quantity

Data object representing a stock item with quantity and pricing attributes.

// Source: https://github.com/keya254/pharmacy-pos | License: LGPL-3.0 | Modified files must remain under LGPL-3.0
// Modifications to this file must remain under LGPL-3.0.
// Provided via justclaw.it.com; keep this notice with the code.
<?php
/**
 * Created by PhpStorm.
 * User: joe
 * Date: 12/1/17
 * Time: 9:11 AM
 */

class WposStockItem extends stdClass
{
    public $stockinventoryid = 0;
    public $storeditemid = 0;
    public $supplierid = 0;
    public $amount = 0;
    public $expiryDate = 0;
    public $cost = 0;
    public $price = 0;
    public $code = 0;
    public $data = "";
    public $locationid = 0;
    public $inventoryNo = 0;
    public $stockType = 0;

    /**
     * Set any provided data
     * @param $data
     */
    function __construct($data){
        foreach ($da

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key