Here is a simple module for Prestashop 1.6, which implements restriction on product quantity.

The standard Prestashop’s approach is to enforce minimal quantity, but to allow order anything above it. This module changes that behaviour in a way that customer can only purchase the quantity that is a multiplier of min quantity.

For example, if min. quantity is set to 3 – only following amounts are allowed:
3, 6, 9, 12, …

Download here: product_min_quantity

Just finished a project to integrate Privatbank‘s Ingenico POS terminals with 1C:Enterprise – purchases, refunds etc. with automated Bonus+ handling.

The result is a stable self-contained Debian linux image which can be installed into VM or physical server, and serve as universal interface with simple API to process card payments.

Read the rest of this entry »

Canon PIXMA IP1500 photo

If you are a happy owner of Canon PIXMA IP1500 – you probably know that it’s a good and very reliable color printer.

Windows users are happy with fully-functional driver, that’s even included in the latest versions of the OS – so you just plug printer and that’s all, everything works.

But if you are a Linux user – things are not so bright… there is a driver from Canon, but it works only in ancient Linux versions – and no updates are provided.
The good thing that there are source code of the driver – it’s not fully opensource, but the part is, and closed-source libraries are provided.

So I decided to port it to up to date Linux versions in my spare time.
For now I can print, can run servicing functions, but there is a big field to make improvements.

What’s done as for now:

  • Rebased Canon’s USB backend on top of latest CUPS backend
  • Updated build system to work with new autotools
  • Fixed page size handling with some software
  • Fixed compilation with newer libraries – libpng, libxml, libcups etc
  • Fixed CUPS queue handling with default job privacy settings found in new CUPS versions
  • Ported GUI program to GTK2

Todo is:

  • Package for Debian
  • Improve status monitoring
  • Add more options to PPD – such as borderless printing
  • … more to come

All modifications are on my github: https://github.com/Magister/bjcups-2.50

1C:Enterprise does not natively support accessing to Firebird database with External data source function, thus using “Other” category for this task.
But there is one problem – when using dynamic lists, 1C:Enterprise uses constructions like:

SELECT TOP 10 … FROM …

Firebird has another syntax:

SELECT FIRST 10 … FROM …

And as a result such queries does not work.

Attached ODBC driver is patched to replace “SELECT TOP” to “SELECT FIRST” to make 1C:Enterprise work correctly.
There are some other issues left through.

Download from here

Se Image Tool version 2.60 beta 7
Changes:
– fixed length calculation for ZLIB images

WARNING! This is BETA quality software, so some functions may work not as expected.
You have been warned!

Download from here

Se Image Tool version 2.60 beta 6
Changes:
– fixed length calculation for PNG images
– fixed patch generation for images on image tables after 1-st

WARNING! This is BETA quality software, so some functions may work not as expected.
You have been warned!

Download from here

Se Image Tool version 2.60 beta 5
Changes:
– drag&drop support for opening firmware
– recently opened files list
full support of db3210 (including animations!)
– support for third image table on db3150 and older
– added alternate image table search method (off by default)
– ability to send error report
– updated image names list (added more than 1400 names)
– small fixes and improvements

WARNING! This is BETA quality software, so some functions may work not as expected.
You have been warned!

Download from here

Одразу знайшлася помилка у StealthMS-lite – якщо один раз зайти у налаштування відправлення, то знову зайти можна було лиш після перезапуску програми.
Посилання ті самі:
MIDP1:
jad – тут (1730), jar –  тут (1683)
MIDP2:
jad – тут (1818), jar –  тут (1688)
MIDP2+JSR75:
jad – тут (1919), jar –  тут (1784)

Трошки оновив StealthMS-lite.
Зі змін – деякі виправлення, в тому числі додано підтримку вводу номерів у вигляді 0… (без вісімки).
Посилання:
MIDP1:
jad – тут (1730), jar –  тут (1683)
MIDP2:
jad – тут (1818), jar –  тут (1688)
MIDP2+JSR75:
jad – тут (1919), jar –  тут (1784)