Skip to content
#

escpos

Here are 62 public repositories matching this topic...

mike42
mike42 commented Feb 15, 2020

As PHP improves optional typing, we've been making use of it in this project, since it avoids the need to validate things extensively across the entire API surface.

Strict typing is being introduced here as well, which prevents type coercion, which can act in surprising ways.

declare(strict_types=1);

The following classes do not have this feature enabled, since it turns out w

sde1000
sde1000 commented Jul 19, 2020

Add a report to show the value of stock as at a particular date/time.

At the moment I do this through runtill dbshell:

date = datetime.date(2014, 12, 1)
from sqlalchemy.sql import or_
# Number of units of this item of stock used
used = td.func.coalesce(
  (td.select([td.func.sum(StockOut.qty)]).\
    correlate(StockItem.__table__).\
    where(StockOut.time < date).\
    w

Improve this page

Add a description, image, and links to the escpos topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the escpos topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.