├── system ├── .htaccess ├── fonts │ ├── texb.ttf │ └── index.html ├── index.html ├── core │ └── index.html ├── database │ ├── index.html │ └── drivers │ │ ├── index.html │ │ ├── pdo │ │ └── index.html │ │ ├── cubrid │ │ └── index.html │ │ ├── mssql │ │ └── index.html │ │ ├── mysql │ │ └── index.html │ │ ├── mysqli │ │ └── index.html │ │ ├── oci8 │ │ └── index.html │ │ ├── odbc │ │ └── index.html │ │ ├── postgre │ │ └── index.html │ │ ├── sqlite │ │ └── index.html │ │ └── sqlsrv │ │ └── index.html ├── helpers │ └── index.html ├── libraries │ ├── index.html │ └── Cache │ │ ├── index.html │ │ └── drivers │ │ └── index.html └── language │ ├── en │ ├── index.html │ ├── number_lang.php │ ├── migration_lang.php │ ├── unit_test_lang.php │ ├── profiler_lang.php │ └── ftp_lang.php │ ├── nl-BE │ ├── index.html │ ├── number_lang.php │ ├── unit_test_lang.php │ ├── migration_lang.php │ ├── profiler_lang.php │ ├── validation_lang.php │ └── ftp_lang.php │ ├── fr │ ├── index.html │ ├── number_lang.php │ ├── migration_lang.php │ └── unit_test_lang.php │ ├── tr │ └── form_validation_lang.php │ ├── es │ └── form_validation_lang.php │ ├── id │ └── form_validation_lang.php │ ├── ru │ └── form_validation_lang.php │ ├── th │ └── form_validation_lang.php │ └── zh │ └── form_validation_lang.php ├── application ├── .htaccess ├── helpers │ ├── sale_helper.php │ ├── dompdf │ │ ├── lib │ │ │ ├── php-font-lib │ │ │ │ ├── .htaccess │ │ │ │ ├── index.php │ │ │ │ ├── classes │ │ │ │ │ ├── font.cls.php │ │ │ │ │ ├── Font_OpenType.php │ │ │ │ │ ├── Font_OpenType_Table_Directory_Entry.php │ │ │ │ │ ├── Font_Glyph_Outline_Component.php │ │ │ │ │ ├── Font_Header.php │ │ │ │ │ ├── Font_TrueType_Header.php │ │ │ │ │ ├── Font_TrueType_Table_Directory_Entry.php │ │ │ │ │ ├── Font_WOFF_Table_Directory_Entry.php │ │ │ │ │ ├── Encoding_Map.php │ │ │ │ │ ├── Font_WOFF_Header.php │ │ │ │ │ ├── Font_Table_name_Record.php │ │ │ │ │ └── Font_Table_maxp.php │ │ │ │ ├── README.md │ │ │ │ └── composer.json │ │ │ ├── fonts │ │ │ │ ├── DejaVuSans.ttf │ │ │ │ ├── DejaVuSerif.ttf │ │ │ │ ├── DejaVuSans-Bold.ttf │ │ │ │ ├── DejaVuSansMono.ttf │ │ │ │ ├── DejaVuSerif-Bold.ttf │ │ │ │ ├── DejaVuSans-Oblique.ttf │ │ │ │ ├── DejaVuSerif-Italic.ttf │ │ │ │ ├── DejaVuSans-ExtraLight.ttf │ │ │ │ ├── DejaVuSansCondensed.ttf │ │ │ │ ├── DejaVuSansMono-Bold.ttf │ │ │ │ ├── DejaVuSerifCondensed.ttf │ │ │ │ ├── DejaVuSans-BoldOblique.ttf │ │ │ │ ├── DejaVuSansMono-Oblique.ttf │ │ │ │ ├── DejaVuSerif-BoldItalic.ttf │ │ │ │ ├── DejaVuSansCondensed-Bold.ttf │ │ │ │ ├── DejaVuSansMono-BoldOblique.ttf │ │ │ │ ├── DejaVuSerifCondensed-Bold.ttf │ │ │ │ ├── DejaVuSansCondensed-Oblique.ttf │ │ │ │ ├── DejaVuSerifCondensed-Italic.ttf │ │ │ │ ├── DejaVuSansCondensed-BoldOblique.ttf │ │ │ │ ├── DejaVuSerifCondensed-BoldItalic.ttf │ │ │ │ └── mustRead.html │ │ │ ├── res │ │ │ │ └── broken_image.png │ │ │ └── html5lib │ │ │ │ └── Parser.php │ │ ├── index.php │ │ ├── include │ │ │ ├── file.skel │ │ │ ├── null_positioner.cls.php │ │ │ ├── null_frame_reflower.cls.php │ │ │ ├── dompdf_exception.cls.php │ │ │ ├── dompdf_image_exception.cls.php │ │ │ ├── null_frame_decorator.cls.php │ │ │ ├── table_cell_positioner.cls.php │ │ │ ├── javascript_embedder.cls.php │ │ │ ├── table_row_positioner.cls.php │ │ │ ├── list_bullet_frame_reflower.cls.php │ │ │ ├── php_evaluator.cls.php │ │ │ ├── table_row_group_renderer.cls.php │ │ │ ├── positioner.cls.php │ │ │ └── table_row_frame_decorator.cls.php │ │ ├── composer.json │ │ └── dompdf_config.custom.inc.php │ ├── index.html │ ├── dompdf_helper.php │ └── currency_helper.php ├── cache │ ├── .htaccess │ └── index.html ├── language │ ├── .htaccess │ ├── zh │ │ ├── error_lang.php │ │ ├── index.html │ │ ├── login_lang.php │ │ ├── suppliers_lang.php │ │ ├── item_kits_lang.php │ │ ├── module_lang.php │ │ └── customers_lang.php │ ├── tr │ │ ├── error_lang.php │ │ ├── index.html │ │ ├── login_lang.php │ │ ├── suppliers_lang.php │ │ ├── item_kits_lang.php │ │ ├── customers_lang.php │ │ └── module_lang.php │ ├── nl-BE │ │ ├── error_lang.php │ │ ├── index.html │ │ ├── login_lang.php │ │ ├── item_kits_lang.php │ │ ├── module_lang.php │ │ ├── customers_lang.php │ │ └── suppliers_lang.php │ ├── en │ │ ├── error_lang.php │ │ ├── index.html │ │ ├── login_lang.php │ │ ├── item_kits_lang.php │ │ ├── suppliers_lang.php │ │ ├── module_lang.php │ │ └── customers_lang.php │ ├── es │ │ ├── error_lang.php │ │ ├── index.html │ │ ├── login_lang.php │ │ ├── customers_lang.php │ │ ├── suppliers_lang.php │ │ ├── module_lang.php │ │ └── item_kits_lang.php │ ├── th │ │ ├── error_lang.php │ │ ├── index.html │ │ ├── login_lang.php │ │ ├── suppliers_lang.php │ │ ├── item_kits_lang.php │ │ ├── module_lang.php │ │ └── customers_lang.php │ ├── fr │ │ ├── error_lang.php │ │ ├── index.html │ │ ├── login_lang.php │ │ ├── item_kits_lang.php │ │ ├── customers_lang.php │ │ ├── suppliers_lang.php │ │ └── module_lang.php │ ├── id │ │ ├── error_lang.php │ │ ├── index.html │ │ ├── login_lang.php │ │ ├── item_kits_lang.php │ │ ├── module_lang.php │ │ ├── suppliers_lang.php │ │ └── customers_lang.php │ ├── ru │ │ ├── error_lang.php │ │ ├── index.html │ │ ├── login_lang.php │ │ ├── suppliers_lang.php │ │ ├── customers_lang.php │ │ ├── item_kits_lang.php │ │ └── module_lang.php │ └── de-CH │ │ ├── error_lang.php │ │ ├── login_lang.php │ │ ├── suppliers_lang.php │ │ ├── customers_lang.php │ │ ├── item_kits_lang.php │ │ └── module_lang.php ├── views │ ├── partial │ │ ├── footer_excel.php │ │ ├── footer.php │ │ ├── header_excel.php │ │ └── stock_locations.php │ ├── no_access.php │ ├── index.html │ ├── home.php │ ├── reports │ │ ├── graphs │ │ │ ├── pie.php │ │ │ └── bar.php │ │ ├── graphical.php │ │ └── excel_export.php │ └── barcode_sheet.php ├── libraries │ ├── ofc-library │ │ ├── ofc_y_axis_right.php │ │ ├── ofc_y_axis_base.php │ │ ├── ofc_line_hollow.php │ │ ├── ofc_area_line.php │ │ ├── ofc_line_style.php │ │ ├── ofc_area_hollow.php │ │ ├── ofc_radar_axis_labels.php │ │ ├── ofc_radar_spoke_labels.php │ │ ├── ofc_x_legend.php │ │ ├── ofc_y_legend.php │ │ ├── ofc_y_axis.php │ │ ├── ofc_bar_3d.php │ │ ├── ofc_shape.php │ │ ├── ofc_line_dot.php │ │ ├── ofc_bar.php │ │ ├── ofc_y_axis_label.php │ │ ├── ofc_area_base.php │ │ ├── ofc_arrow.php │ │ ├── ofc_candle.php │ │ ├── ofc_bar_sketch.php │ │ ├── ofc_radar_axis.php │ │ ├── README.txt │ │ ├── ofc_x_axis_label.php │ │ ├── ofc_bar_filled.php │ │ ├── ofc_title.php │ │ ├── ofc_scatter.php │ │ ├── ofc_sugar.php │ │ ├── ofc_scatter_line.php │ │ ├── ofc_y_axis_labels.php │ │ ├── ofc_bar_stack.php │ │ ├── ofc_hbar.php │ │ ├── ofc_tooltip.php │ │ └── ofc_x_axis_labels.php │ ├── index.html │ ├── MY_Session.php │ └── Item_lib.php ├── index.html ├── core │ └── index.html ├── hooks │ └── index.html ├── logs │ └── index.html ├── config │ ├── index.html │ ├── profiler.php │ ├── hooks.php │ └── doctypes.php ├── errors │ ├── index.html │ └── error_php.php ├── models │ ├── index.html │ ├── inventory.php │ ├── reports │ │ ├── report.php │ │ └── inventory_low.php │ ├── item_kit_items.php │ └── item_taxes.php ├── controllers │ ├── index.html │ ├── barcode.php │ ├── interfaces │ │ ├── iperson_controller.php │ │ └── idata_controller.php │ ├── home.php │ ├── no_access.php │ └── login.php └── third_party │ └── index.html ├── license └── codeigniter_version.txt ├── test ├── login.js └── sanity_check.js ├── font ├── Arial.ttf ├── Arial.woff ├── SansationLight.ttf └── b-de-bonita-shadow.ttf ├── images ├── logo.gif ├── minus.png ├── plus.png ├── tabbg.gif ├── calendar.png ├── tables │ ├── asc.gif │ ├── bg.gif │ └── desc.gif ├── menubar │ ├── home.png │ ├── items.png │ ├── sales.png │ ├── config.png │ ├── reports.png │ ├── customers.png │ ├── employees.png │ ├── giftcards.png │ ├── item_kits.png │ ├── menubar_bg.gif │ ├── receivings.png │ ├── suppliers.png │ ├── thumb_clock.png │ └── thumb_colorscheme.png ├── spinner_small.gif ├── checkbox_arrow.gif ├── big_action_button.jpg ├── loading_animation.gif ├── small_action_button.jpg ├── psds │ ├── big_action_button.psd │ └── small_action_button.psd └── jquery-ui │ ├── ui-icons_222222_256x240.png │ ├── ui-icons_228ef1_256x240.png │ ├── ui-icons_ef8c08_256x240.png │ ├── ui-icons_ffd27a_256x240.png │ ├── ui-icons_ffffff_256x240.png │ ├── ui-bg_flat_10_000000_40x100.png │ ├── ui-bg_glass_100_f6f6f6_1x400.png │ ├── ui-bg_glass_100_fdf5ce_1x400.png │ ├── ui-bg_glass_65_ffffff_1x400.png │ ├── ui-bg_gloss-wave_35_f6a828_500x100.png │ ├── ui-bg_highlight-soft_75_ffe45c_1x100.png │ ├── ui-bg_diagonals-thick_18_b81900_40x40.png │ ├── ui-bg_diagonals-thick_20_666666_40x40.png │ └── ui-bg_highlight-soft_100_eeeeee_1x100.png ├── .gitattributes ├── open-flash-chart.swf ├── uploads ├── item_pics │ └── .gitignore └── .gitignore ├── UPGRADE.txt ├── import_customers.csv ├── .gitignore ├── database ├── resetdatabase.sh ├── database.sql ├── 2.3_migrate_locations.sql ├── 2.3.2_to_2.3.3.sql └── 2.2.1_to_2.2.2.sql ├── css ├── reports.css ├── ospos_print.css ├── autocomplete.css ├── receipt.css └── barcode_font.css ├── import_items.csv ├── Dockerfile ├── translations └── error_lang.csv ├── travis-ci-apache ├── start_container.sh ├── bower.json ├── package.json └── .travis.yml /system/.htaccess: -------------------------------------------------------------------------------- 1 | Deny from all -------------------------------------------------------------------------------- /application/.htaccess: -------------------------------------------------------------------------------- 1 | Deny from all -------------------------------------------------------------------------------- /application/helpers/sale_helper.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /license/codeigniter_version.txt: -------------------------------------------------------------------------------- 1 | 2.1.0 -------------------------------------------------------------------------------- /application/cache/.htaccess: -------------------------------------------------------------------------------- 1 | deny from all -------------------------------------------------------------------------------- /application/language/.htaccess: -------------------------------------------------------------------------------- 1 | Deny from all -------------------------------------------------------------------------------- /test/login.js: -------------------------------------------------------------------------------- 1 | exports.loginFirst = function() { 2 | 3 | } -------------------------------------------------------------------------------- /application/helpers/dompdf/lib/php-font-lib/.htaccess: -------------------------------------------------------------------------------- 1 | #deny from all -------------------------------------------------------------------------------- /application/helpers/dompdf/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /application/helpers/dompdf/lib/php-font-lib/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /font/Arial.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/objects/opensourcepos/master/font/Arial.ttf -------------------------------------------------------------------------------- /font/Arial.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/objects/opensourcepos/master/font/Arial.woff -------------------------------------------------------------------------------- /images/logo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/objects/opensourcepos/master/images/logo.gif -------------------------------------------------------------------------------- /images/minus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/objects/opensourcepos/master/images/minus.png -------------------------------------------------------------------------------- /images/plus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/objects/opensourcepos/master/images/plus.png -------------------------------------------------------------------------------- /images/tabbg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/objects/opensourcepos/master/images/tabbg.gif -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | dist/ merge=ours 2 | application/language/**/*.php merge=ours 3 | text=auto 4 | -------------------------------------------------------------------------------- /images/calendar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/objects/opensourcepos/master/images/calendar.png -------------------------------------------------------------------------------- /images/tables/asc.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/objects/opensourcepos/master/images/tables/asc.gif -------------------------------------------------------------------------------- /images/tables/bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/objects/opensourcepos/master/images/tables/bg.gif -------------------------------------------------------------------------------- /images/tables/desc.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/objects/opensourcepos/master/images/tables/desc.gif -------------------------------------------------------------------------------- /open-flash-chart.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/objects/opensourcepos/master/open-flash-chart.swf -------------------------------------------------------------------------------- /system/fonts/texb.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/objects/opensourcepos/master/system/fonts/texb.ttf -------------------------------------------------------------------------------- /font/SansationLight.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/objects/opensourcepos/master/font/SansationLight.ttf -------------------------------------------------------------------------------- /images/menubar/home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/objects/opensourcepos/master/images/menubar/home.png -------------------------------------------------------------------------------- /images/menubar/items.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/objects/opensourcepos/master/images/menubar/items.png -------------------------------------------------------------------------------- /images/menubar/sales.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/objects/opensourcepos/master/images/menubar/sales.png -------------------------------------------------------------------------------- /images/spinner_small.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/objects/opensourcepos/master/images/spinner_small.gif -------------------------------------------------------------------------------- /font/b-de-bonita-shadow.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/objects/opensourcepos/master/font/b-de-bonita-shadow.ttf -------------------------------------------------------------------------------- /images/checkbox_arrow.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/objects/opensourcepos/master/images/checkbox_arrow.gif -------------------------------------------------------------------------------- /images/menubar/config.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/objects/opensourcepos/master/images/menubar/config.png -------------------------------------------------------------------------------- /images/menubar/reports.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/objects/opensourcepos/master/images/menubar/reports.png -------------------------------------------------------------------------------- /application/views/partial/footer_excel.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /images/big_action_button.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/objects/opensourcepos/master/images/big_action_button.jpg -------------------------------------------------------------------------------- /images/loading_animation.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/objects/opensourcepos/master/images/loading_animation.gif -------------------------------------------------------------------------------- /images/menubar/customers.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/objects/opensourcepos/master/images/menubar/customers.png -------------------------------------------------------------------------------- /images/menubar/employees.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/objects/opensourcepos/master/images/menubar/employees.png -------------------------------------------------------------------------------- /images/menubar/giftcards.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/objects/opensourcepos/master/images/menubar/giftcards.png -------------------------------------------------------------------------------- /images/menubar/item_kits.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/objects/opensourcepos/master/images/menubar/item_kits.png -------------------------------------------------------------------------------- /images/menubar/menubar_bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/objects/opensourcepos/master/images/menubar/menubar_bg.gif -------------------------------------------------------------------------------- /images/menubar/receivings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/objects/opensourcepos/master/images/menubar/receivings.png -------------------------------------------------------------------------------- /images/menubar/suppliers.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/objects/opensourcepos/master/images/menubar/suppliers.png -------------------------------------------------------------------------------- /uploads/item_pics/.gitignore: -------------------------------------------------------------------------------- 1 | # Ignore everything in this directory 2 | * 3 | # Except this file 4 | !.gitignore 5 | -------------------------------------------------------------------------------- /images/menubar/thumb_clock.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/objects/opensourcepos/master/images/menubar/thumb_clock.png -------------------------------------------------------------------------------- /images/small_action_button.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/objects/opensourcepos/master/images/small_action_button.jpg -------------------------------------------------------------------------------- /uploads/.gitignore: -------------------------------------------------------------------------------- 1 | # Ignore everything in this directory 2 | * 3 | !item_pics 4 | # Except this file 5 | !.gitignore 6 | -------------------------------------------------------------------------------- /images/psds/big_action_button.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/objects/opensourcepos/master/images/psds/big_action_button.psd -------------------------------------------------------------------------------- /images/menubar/thumb_colorscheme.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/objects/opensourcepos/master/images/menubar/thumb_colorscheme.png -------------------------------------------------------------------------------- /images/psds/small_action_button.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/objects/opensourcepos/master/images/psds/small_action_button.psd -------------------------------------------------------------------------------- /application/language/zh/error_lang.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/helpers/dompdf/lib/fonts/DejaVuSans-ExtraLight.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/objects/opensourcepos/master/application/helpers/dompdf/lib/fonts/DejaVuSans-ExtraLight.ttf -------------------------------------------------------------------------------- /application/helpers/dompdf/lib/fonts/DejaVuSansCondensed.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/objects/opensourcepos/master/application/helpers/dompdf/lib/fonts/DejaVuSansCondensed.ttf -------------------------------------------------------------------------------- /application/helpers/dompdf/lib/fonts/DejaVuSansMono-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/objects/opensourcepos/master/application/helpers/dompdf/lib/fonts/DejaVuSansMono-Bold.ttf -------------------------------------------------------------------------------- /application/helpers/dompdf/lib/fonts/DejaVuSerifCondensed.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/objects/opensourcepos/master/application/helpers/dompdf/lib/fonts/DejaVuSerifCondensed.ttf -------------------------------------------------------------------------------- /application/helpers/dompdf/lib/php-font-lib/classes/font.cls.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/views/no_access.php: -------------------------------------------------------------------------------- 1 | lang->line('error_no_permission_module').' '.$module_name . (!empty($permission_id) ? ' (' . $permission_id . ')' : ''); 3 | ?> -------------------------------------------------------------------------------- /system/core/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/fonts/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/cache/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/core/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/helpers/dompdf/lib/fonts/DejaVuSans-BoldOblique.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/objects/opensourcepos/master/application/helpers/dompdf/lib/fonts/DejaVuSans-BoldOblique.ttf -------------------------------------------------------------------------------- /application/helpers/dompdf/lib/fonts/DejaVuSansMono-Oblique.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/objects/opensourcepos/master/application/helpers/dompdf/lib/fonts/DejaVuSansMono-Oblique.ttf -------------------------------------------------------------------------------- /application/helpers/dompdf/lib/fonts/DejaVuSerif-BoldItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/objects/opensourcepos/master/application/helpers/dompdf/lib/fonts/DejaVuSerif-BoldItalic.ttf -------------------------------------------------------------------------------- /application/hooks/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/language/nl-BE/error_lang.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/views/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/database/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/helpers/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/libraries/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/config/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/errors/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/helpers/dompdf/lib/fonts/DejaVuSansCondensed-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/objects/opensourcepos/master/application/helpers/dompdf/lib/fonts/DejaVuSansCondensed-Bold.ttf -------------------------------------------------------------------------------- /application/helpers/dompdf/lib/fonts/DejaVuSansMono-BoldOblique.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/objects/opensourcepos/master/application/helpers/dompdf/lib/fonts/DejaVuSansMono-BoldOblique.ttf -------------------------------------------------------------------------------- /application/helpers/dompdf/lib/fonts/DejaVuSerifCondensed-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/objects/opensourcepos/master/application/helpers/dompdf/lib/fonts/DejaVuSerifCondensed-Bold.ttf -------------------------------------------------------------------------------- /application/helpers/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/language/en/error_lang.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/models/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/language/en/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/language/nl-BE/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/libraries/Cache/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/controllers/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/helpers/dompdf/lib/fonts/DejaVuSansCondensed-Oblique.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/objects/opensourcepos/master/application/helpers/dompdf/lib/fonts/DejaVuSansCondensed-Oblique.ttf -------------------------------------------------------------------------------- /application/helpers/dompdf/lib/fonts/DejaVuSerifCondensed-Italic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/objects/opensourcepos/master/application/helpers/dompdf/lib/fonts/DejaVuSerifCondensed-Italic.ttf -------------------------------------------------------------------------------- /application/language/fr/error_lang.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Dilarang 4 | 5 | 6 | 7 |

Akses direktori dilarang.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/language/ru/error_lang.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/database/drivers/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/database/drivers/pdo/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/helpers/dompdf/lib/fonts/DejaVuSansCondensed-BoldOblique.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/objects/opensourcepos/master/application/helpers/dompdf/lib/fonts/DejaVuSansCondensed-BoldOblique.ttf -------------------------------------------------------------------------------- /application/helpers/dompdf/lib/fonts/DejaVuSerifCondensed-BoldItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/objects/opensourcepos/master/application/helpers/dompdf/lib/fonts/DejaVuSerifCondensed-BoldItalic.ttf -------------------------------------------------------------------------------- /application/language/nl-BE/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /system/database/drivers/cubrid/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/database/drivers/mssql/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/database/drivers/mysql/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/database/drivers/mysqli/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/database/drivers/oci8/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/database/drivers/odbc/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/database/drivers/postgre/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/database/drivers/sqlite/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/database/drivers/sqlsrv/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/language/fr/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Interdit 4 | 5 | 6 | 7 |

L'accès direct au dossier est interdit.

8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /system/libraries/Cache/drivers/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/libraries/ofc-library/ofc_line_hollow.php: -------------------------------------------------------------------------------- 1 | type = "line_hollow"; 8 | } 9 | } -------------------------------------------------------------------------------- /application/language/de-CH/error_lang.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /application/language/fr/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Interdit 4 | 5 | 6 | 7 |

Acces interdit à ce répertoire.

8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /application/language/ru/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /application/language/tr/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /application/language/zh/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /UPGRADE.txt: -------------------------------------------------------------------------------- 1 | How to Upgrade 2 | ------------------------- 3 | 1. Replace all code from your point of sale installation with the code downloaded 4 | 2. Run the necessary database upgrades from the database folder 5 | -------------------------------------------------------------------------------- /system/language/nl-BE/number_lang.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Prohibido 4 | 5 | 6 | 7 |

El acceso a los directorios está prohibido.

8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /application/libraries/ofc-library/ofc_area_line.php: -------------------------------------------------------------------------------- 1 | type = "area_line"; 8 | parent::area_base(); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /application/libraries/ofc-library/ofc_line_style.php: -------------------------------------------------------------------------------- 1 | style = "dash"; 8 | $this->on = $on; 9 | $this->off = $off; 10 | } 11 | } -------------------------------------------------------------------------------- /application/libraries/ofc-library/ofc_area_hollow.php: -------------------------------------------------------------------------------- 1 | type = "area_hollow"; 8 | parent::area_base(); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /import_customers.csv: -------------------------------------------------------------------------------- 1 | First Name,Last Name,Gender,E-Mail,Phone Number,Address 1,Address2,City,State,Zip,Country,Comments,Account Number,Taxable 2 | Bob,Smith,1,bsmith@nowhere.com,585-555-1111,123 Nowhere Street,Apt 4,Awesome,NY,11111,USA,Awesome guy,,y -------------------------------------------------------------------------------- /application/helpers/dompdf/include/file.skel: -------------------------------------------------------------------------------- 1 | 6 | * @author ... 7 | * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License 8 | */ 9 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | bower_components 3 | application/config/email.php 4 | application/config/database.php 5 | *.patch 6 | patches/ 7 | .idea/ 8 | git-svn-diff.py 9 | *.bash 10 | .swp 11 | .buildpath 12 | .project 13 | .settings/* 14 | *.swp 15 | *.rej 16 | *.orig 17 | *~ 18 | *.~ 19 | *.log 20 | -------------------------------------------------------------------------------- /application/controllers/barcode.php: -------------------------------------------------------------------------------- 1 | load->view('barcode'); 13 | } 14 | 15 | } 16 | ?> -------------------------------------------------------------------------------- /database/resetdatabase.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | read -s -p "Enter Password: " mypassword 3 | mysql -u root -p"$mypassword" -e "DROP DATABASE IF EXISTS ospos; CREATE DATABASE ospos;" 4 | [ ! -z $1 ] && script=migrate_phppos || script=database 5 | mysql -u root -p"$mypassword" -e "USE ospos; source $script.sql;" 6 | -------------------------------------------------------------------------------- /application/language/zh/login_lang.php: -------------------------------------------------------------------------------- 1 | labels = $labels; 9 | } 10 | 11 | function set_colour( $colour ) 12 | { 13 | $this->colour = $colour; 14 | } 15 | } -------------------------------------------------------------------------------- /system/language/fr/number_lang.php: -------------------------------------------------------------------------------- 1 | labels = $labels; 9 | } 10 | 11 | function set_colour( $colour ) 12 | { 13 | $this->colour = $colour; 14 | } 15 | } -------------------------------------------------------------------------------- /database/database.sql: -------------------------------------------------------------------------------- 1 | -- phpMyAdmin SQL Dump 2 | -- version 3.3.9 3 | -- http://www.phpmyadmin.net 4 | -- 5 | -- Host: localhost 6 | -- Generation Time: Apr 08, 2011 at 04:27 PM 7 | -- Server version: 5.1.54 8 | -- PHP Version: 5.3.3 9 | 10 | -- 11 | -- Database: `pos` 12 | -- 13 | 14 | SOURCE tables.sql; 15 | SOURCE constraints.sql; 16 | -------------------------------------------------------------------------------- /application/controllers/interfaces/iperson_controller.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /application/language/tr/login_lang.php: -------------------------------------------------------------------------------- 1 | 2 | 3 |

A PHP Error was encountered

4 | 5 |

Severity:

6 |

Message:

7 |

Filename:

8 |

Line Number:

9 | 10 | -------------------------------------------------------------------------------- /application/language/th/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | 11 | 12 | 13 | 403 Forbidden 14 | 15 | 16 | 17 |

Directory access is forbidden.

18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /application/libraries/ofc-library/ofc_x_legend.php: -------------------------------------------------------------------------------- 1 | text = $text; 8 | } 9 | 10 | function set_style( $css ) 11 | { 12 | $this->style = $css; 13 | //"{font-size: 20px; color:#0000ff; font-family: Verdana; text-align: center;}"; 14 | } 15 | } -------------------------------------------------------------------------------- /application/libraries/ofc-library/ofc_y_legend.php: -------------------------------------------------------------------------------- 1 | text = $text; 8 | } 9 | 10 | function set_style( $css ) 11 | { 12 | $this->style = $css; 13 | //"{font-size: 20px; color:#0000ff; font-family: Verdana; text-align: center;}"; 14 | } 15 | } -------------------------------------------------------------------------------- /application/controllers/home.php: -------------------------------------------------------------------------------- 1 | load->view("home"); 14 | } 15 | 16 | function logout() 17 | { 18 | $this->Employee->logout(); 19 | } 20 | } 21 | ?> -------------------------------------------------------------------------------- /application/language/nl-BE/login_lang.php: -------------------------------------------------------------------------------- 1 | $tmp = $colour; 15 | } 16 | 17 | } -------------------------------------------------------------------------------- /application/controllers/no_access.php: -------------------------------------------------------------------------------- 1 | Module->get_module_name($module_id); 12 | $data['permission_id']=$permission_id; 13 | $this->load->view('no_access',$data); 14 | } 15 | } 16 | ?> -------------------------------------------------------------------------------- /application/language/de-CH/login_lang.php: -------------------------------------------------------------------------------- 1 | top = $top; 10 | } 11 | 12 | function set_colour( $colour ) 13 | { 14 | $this->colour = $colour; 15 | } 16 | 17 | function set_tooltip( $tip ) 18 | { 19 | $this->tip = $tip; 20 | } 21 | } 22 | 23 | -------------------------------------------------------------------------------- /css/reports.css: -------------------------------------------------------------------------------- 1 | #report_list li ul li 2 | { 3 | margin-left: 35px; 4 | } 5 | #report_date_range_simple, #report_date_range_complex 6 | { 7 | margin-bottom: 10px; 8 | } 9 | .report 10 | { 11 | font-size: .85em; 12 | } 13 | #report_summary 14 | { 15 | margin: 0 auto; 16 | text-align: center; 17 | } 18 | 19 | #report_summary .summary_row 20 | { 21 | } 22 | 23 | #chart_wrapper 24 | { 25 | text-align: center; 26 | } -------------------------------------------------------------------------------- /database/2.3_migrate_locations.sql: -------------------------------------------------------------------------------- 1 | INSERT INTO ospos_stock_locations (location_name) (SELECT location FROM ospos_items WHERE NOT EXISTS (select location from ospos_stock_locations where location_name = location)); 2 | INSERT INTO ospos_item_quantities (item_id, location_id, quantity) (SELECT item_id, location_id, quantity FROM ospos_items, ospos_stock_locations where ospos_items.location = ospos_stock_locations.location_name); 3 | -------------------------------------------------------------------------------- /application/language/en/login_lang.php: -------------------------------------------------------------------------------- 1 | x = $x; 8 | $this->y = $y; 9 | } 10 | } 11 | 12 | class shape 13 | { 14 | function shape( $colour ) 15 | { 16 | $this->type = "shape"; 17 | $this->colour = $colour; 18 | $this->values = array(); 19 | } 20 | 21 | function append_value( $p ) 22 | { 23 | $this->values[] = $p; 24 | } 25 | } -------------------------------------------------------------------------------- /import_items.csv: -------------------------------------------------------------------------------- 1 | UPC/EAN/ISBN,Item Name,Category,Supplier ID,Cost Price,Unit Price,Tax 1 Name,Tax 1 Percent,Tax 2 Name ,Tax 2 Percent,Reorder Level,Description,Allow Alt Description,Item has Serial Number,custom1,custom2,custom3,custom4,custom5,custom6,custom7,custom8,custom9,custom10,location_id,quantity 2 | 33333333,Apple iMac,Computers,,800,1200,Tax 1,8,Tax 2,10,1,Best Computer ever,y,,"Oz, Frank",The Bunny and the Hill,"Monkeys,Giraffes,Gorillas",English,New,Apple,,1999,D3lk3jlkjs,Hardbound,1,100 3 | -------------------------------------------------------------------------------- /application/views/partial/footer.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /application/controllers/interfaces/idata_controller.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /application/helpers/dompdf/lib/php-font-lib/README.md: -------------------------------------------------------------------------------- 1 | This library can be used to: 2 | * Read TrueType, OpenType (with TrueType glyphs), WOFF font files 3 | * Extract basic info (name, style, etc) 4 | * Extract advanced info (horizontal metrics, glyph names, glyph shapes, etc) 5 | * Make an Adobe Font Metrics (AFM) file from a font 6 | 7 | You can find a demo GUI [here](http://pxd.me/php-font-lib/www/font_explorer.html). 8 | 9 | This project was initiated by the need to read font files in the [DOMPDF project](https://github.com/dompdf/dompdf). 10 | -------------------------------------------------------------------------------- /application/helpers/dompdf/lib/php-font-lib/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "phenx/php-font-lib", 3 | "type": "library", 4 | "description": "A library to read, parse, export and make subsets of different types of font files.", 5 | "homepage": "https://github.com/PhenX/php-font-lib", 6 | "license": "LGPL", 7 | "authors": [ 8 | { 9 | "name": "Fabien Ménager", 10 | "email": "fabien.menager@gmail.com" 11 | } 12 | ], 13 | "autoload": { 14 | "classmap": ["classes/"] 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /application/helpers/dompdf/include/null_positioner.cls.php: -------------------------------------------------------------------------------- 1 | 6 | * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License 7 | */ 8 | 9 | /** 10 | * Dummy positioner 11 | * 12 | * @access private 13 | * @package dompdf 14 | */ 15 | class Null_Positioner extends Positioner { 16 | 17 | function __construct(Frame_Decorator $frame) { 18 | parent::__construct($frame); 19 | } 20 | 21 | function position() { return; } 22 | 23 | } 24 | -------------------------------------------------------------------------------- /application/libraries/MY_Session.php: -------------------------------------------------------------------------------- 1 | CI->input->is_ajax_request()) ) { 15 | parent::sess_update(); 16 | } 17 | } 18 | } 19 | 20 | -------------------------------------------------------------------------------- /application/models/inventory.php: -------------------------------------------------------------------------------- 1 | db->insert('inventory',$inventory_data); 7 | } 8 | 9 | function get_inventory_data_for_item($item_id, $location_id=false) 10 | { 11 | $this->db->from('inventory'); 12 | $this->db->where('trans_items',$item_id); 13 | if($location_id != false) 14 | { 15 | $this->db->where('trans_location',$location_id); 16 | } 17 | $this->db->order_by("trans_date", "desc"); 18 | return $this->db->get(); 19 | } 20 | } 21 | 22 | ?> -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM jbfink/docker-lampstack 2 | MAINTAINER jekkos 3 | # Install dependencies 4 | RUN apt-get install -y --no-install-recommends software-properties-common 5 | RUN apt-get install -y python git 6 | RUN apt-get update 7 | # RUN add-apt-repository ppa:chris-lea/node.js 8 | 9 | # Get latest Ospos source from Git 10 | RUN git clone https://github.com/jekkos/opensourcepos.git /app 11 | # RUN cd app && npm install 12 | 13 | RUN ln -fs /app/* /var/www 14 | ADD ./start_container.sh /start_container.sh 15 | RUN chmod 755 /start_container.sh 16 | EXPOSE 80 3306 17 | CMD ["/bin/bash", "/start_container.sh"] 18 | -------------------------------------------------------------------------------- /application/helpers/dompdf/include/null_frame_reflower.cls.php: -------------------------------------------------------------------------------- 1 | 6 | * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License 7 | */ 8 | 9 | /** 10 | * Dummy reflower 11 | * 12 | * @access private 13 | * @package dompdf 14 | */ 15 | class Null_Frame_Reflower extends Frame_Reflower { 16 | 17 | function __construct(Frame $frame) { parent::__construct($frame); } 18 | 19 | function reflow(Block_Frame_Decorator $block = null) { return; } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /application/libraries/ofc-library/ofc_line_dot.php: -------------------------------------------------------------------------------- 1 | value = $value; 8 | $this->colour = $colour; 9 | } 10 | 11 | function set_colour( $colour ) 12 | { 13 | $this->colour = $colour; 14 | } 15 | 16 | function set_size( $size ) 17 | { 18 | $this->size = $size; 19 | } 20 | 21 | function set_tooltip( $tip ) 22 | { 23 | $this->tip = $tip; 24 | } 25 | } 26 | 27 | class line_dot extends line_base 28 | { 29 | function line_dot() 30 | { 31 | $this->type = "line_dot"; 32 | } 33 | } -------------------------------------------------------------------------------- /application/helpers/dompdf/lib/php-font-lib/classes/Font_OpenType.php: -------------------------------------------------------------------------------- 1 | 6 | * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License 7 | */ 8 | 9 | require_once dirname(__FILE__) . "/Font_TrueType.php"; 10 | require_once dirname(__FILE__) . "/Font_OpenType_Table_Directory_Entry.php"; 11 | 12 | /** 13 | * Open Type font, the same as a TrueType one. 14 | * 15 | * @package php-font-lib 16 | */ 17 | class Font_OpenType extends Font_TrueType { 18 | // 19 | } 20 | -------------------------------------------------------------------------------- /application/libraries/ofc-library/ofc_bar.php: -------------------------------------------------------------------------------- 1 | top = $top; 10 | 11 | if( isset( $bottom ) ) 12 | $this->bottom = $bottom; 13 | } 14 | 15 | function set_colour( $colour ) 16 | { 17 | $this->colour = $colour; 18 | } 19 | 20 | function set_tooltip( $tip ) 21 | { 22 | $this->tip = $tip; 23 | } 24 | } 25 | 26 | class bar extends bar_base 27 | { 28 | function bar() 29 | { 30 | $this->type = "bar"; 31 | parent::bar_base(); 32 | } 33 | } 34 | 35 | -------------------------------------------------------------------------------- /database/2.3.2_to_2.3.3.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE `ospos_suppliers` 2 | ADD COLUMN `agency_name` VARCHAR(255) NOT NULL; 3 | 4 | INSERT INTO `ospos_app_config` (`key`, `value`) VALUES 5 | ('dateformat', 'm/d/Y'), 6 | ('timeformat', 'H:i:s'), 7 | ('barcode_generate_if_empty', '0'); 8 | 9 | ALTER TABLE `ospos_sales_suspended` 10 | DROP KEY `invoice_number`; 11 | 12 | -- Clear out emptied comments (0 inserted in comment if empty #192) 13 | UPDATE `ospos_sales` SET comment = NULL WHERE comment = '0'; 14 | UPDATE `ospos_receivings` SET comment = NULL WHERE comment = '0'; 15 | UPDATE `ospos_sales_suspended` SET comment = NULL WHERE comment = '0'; -------------------------------------------------------------------------------- /application/config/profiler.php: -------------------------------------------------------------------------------- 1 | 3 | 4 | DocumentRoot %TRAVIS_BUILD_DIR% 5 | 6 | 7 | Options FollowSymLinks MultiViews ExecCGI 8 | AllowOverride All 9 | Order deny,allow 10 | Allow from all 11 | 12 | 13 | # Wire up Apache to use Travis CI's php-fpm. 14 | 15 | AddHandler php5-fcgi .php 16 | Action php5-fcgi /php5-fcgi 17 | Alias /php5-fcgi /usr/lib/cgi-bin/php5-fcgi 18 | FastCgiExternalServer /usr/lib/cgi-bin/php5-fcgi -host 127.0.0.1:9000 -pass-header Authorization 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /application/helpers/dompdf/lib/php-font-lib/classes/Font_OpenType_Table_Directory_Entry.php: -------------------------------------------------------------------------------- 1 | 6 | * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License 7 | */ 8 | 9 | require_once dirname(__FILE__) . "/Font_TrueType_Table_Directory_Entry.php"; 10 | 11 | /** 12 | * Open Type Table directory entry, the same as a TrueType one. 13 | * 14 | * @package php-font-lib 15 | */ 16 | class Font_OpenType_Table_Directory_Entry extends Font_TrueType_Table_Directory_Entry { 17 | 18 | } 19 | -------------------------------------------------------------------------------- /application/helpers/dompdf/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "dompdf/dompdf", 3 | "type": "library", 4 | "description": "DOMPDF is a CSS 2.1 compliant HTML to PDF converter", 5 | "homepage": "https://github.com/dompdf/dompdf", 6 | "license": "LGPL", 7 | "authors": [ 8 | { 9 | "name": "Fabien Ménager", 10 | "email": "fabien.menager@gmail.com" 11 | }, 12 | { 13 | "name": "Brian Sweeney", 14 | "email": "eclecticgeek@gmail.com" 15 | } 16 | ], 17 | "autoload": { 18 | "classmap": ["include/"] 19 | }, 20 | "require": { 21 | "phenx/php-font-lib": "0.2.*" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /application/helpers/dompdf/include/dompdf_exception.cls.php: -------------------------------------------------------------------------------- 1 | 6 | * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License 7 | */ 8 | 9 | /** 10 | * Standard exception thrown by DOMPDF classes 11 | * 12 | * @package dompdf 13 | */ 14 | class DOMPDF_Exception extends Exception { 15 | 16 | /** 17 | * Class constructor 18 | * 19 | * @param string $message Error message 20 | * @param int $code Error code 21 | */ 22 | function __construct($message = null, $code = 0) { 23 | parent::__construct($message, $code); 24 | } 25 | 26 | } 27 | -------------------------------------------------------------------------------- /application/helpers/dompdf/include/dompdf_image_exception.cls.php: -------------------------------------------------------------------------------- 1 | 6 | * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License 7 | */ 8 | 9 | /** 10 | * Image exception thrown by DOMPDF 11 | * 12 | * @package dompdf 13 | */ 14 | class DOMPDF_Image_Exception extends DOMPDF_Exception { 15 | 16 | /** 17 | * Class constructor 18 | * 19 | * @param string $message Error message 20 | * @param int $code Error code 21 | */ 22 | function __construct($message = null, $code = 0) { 23 | parent::__construct($message, $code); 24 | } 25 | 26 | } 27 | -------------------------------------------------------------------------------- /application/libraries/ofc-library/ofc_y_axis_label.php: -------------------------------------------------------------------------------- 1 | y = $y; 11 | $this->set_text( $text ); 12 | } 13 | 14 | function set_text( $text ) 15 | { 16 | $this->text = $text; 17 | } 18 | 19 | function set_colour( $colour ) 20 | { 21 | $this->colour = $colour; 22 | } 23 | 24 | function set_size( $size ) 25 | { 26 | $this->size = $size; 27 | } 28 | 29 | function set_rotate( $rotate ) 30 | { 31 | $this->rotate = $rotate; 32 | } 33 | 34 | function set_vertical() 35 | { 36 | $this->rotate = "vertical"; 37 | } 38 | } -------------------------------------------------------------------------------- /application/helpers/dompdf/include/null_frame_decorator.cls.php: -------------------------------------------------------------------------------- 1 | 6 | * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License 7 | */ 8 | 9 | /** 10 | * Dummy decorator 11 | * 12 | * @access private 13 | * @package dompdf 14 | */ 15 | class Null_Frame_Decorator extends Frame_Decorator { 16 | 17 | function __construct(Frame $frame, DOMPDF $dompdf) { 18 | parent::__construct($frame, $dompdf); 19 | $style = $this->_frame->get_style(); 20 | $style->width = 0; 21 | $style->height = 0; 22 | $style->margin = 0; 23 | $style->padding = 0; 24 | } 25 | 26 | } 27 | -------------------------------------------------------------------------------- /application/libraries/ofc-library/ofc_area_base.php: -------------------------------------------------------------------------------- 1 | type = "area"; 11 | } 12 | 13 | /** 14 | * the fill colour 15 | */ 16 | function set_fill_colour( $colour ) 17 | { 18 | $this->fill = $colour; 19 | } 20 | 21 | /** 22 | * sugar: see set_fill_colour 23 | */ 24 | function fill_colour( $colour ) 25 | { 26 | $this->set_fill_colour( $colour ); 27 | return $this; 28 | } 29 | 30 | function set_fill_alpha( $alpha ) 31 | { 32 | $tmp = "fill-alpha"; 33 | $this->$tmp = $alpha; 34 | } 35 | 36 | function set_loop() 37 | { 38 | $this->loop = true; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /start_container.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | if [ ! -f /mysql-configured ]; then 3 | /usr/bin/mysqld_safe & 4 | sleep 10s 5 | MYSQL_PASSWORD=`pwgen -c -n -1 12` 6 | echo mysql root password: $MYSQL_PASSWORD 7 | echo $MYSQL_PASSWORD > /mysql-root-pw.txt 8 | mysqladmin -u root password $MYSQL_PASSWORD 9 | cp /app/application/config/database.php.tmpl /app/application/config/database.php 10 | sed -i "s/\(password...=.\).*/\1'${MYSQL_PASSWORD}';/g" /app/application/config/database.php 11 | mysql -e "CREATE DATABASE IF NOT EXISTS ospos; use ospos; source /app/database/tables.sql; source /app/database/constraints.sql;" -uroot -p${MYSQL_PASSWORD} 12 | touch /mysql-configured 13 | killall mysqld 14 | sleep 10s 15 | fi 16 | supervisord -n 17 | -------------------------------------------------------------------------------- /application/helpers/dompdf_helper.php: -------------------------------------------------------------------------------- 1 | load_html($html); 14 | $dompdf->render(); 15 | ini_set("magic_quotes_runtime", $magic_quotes_enabled); 16 | 17 | if ($stream) { 18 | $dompdf->stream($filename.".pdf"); 19 | } else { 20 | return $dompdf->output(); 21 | } 22 | } 23 | ?> -------------------------------------------------------------------------------- /system/language/en/migration_lang.php: -------------------------------------------------------------------------------- 1 | load->view("partial/header"); ?> 2 |
3 |

lang->line('common_welcome_message'); ?>

4 |
5 | result() as $module) 7 | { 8 | ?> 9 |
10 | module_id");?>"> 11 | Menubar Image
12 | module_id");?>">lang->line("module_".$module->module_id) ?> 13 | - lang->line('module_'.$module->module_id.'_desc');?> 14 |
15 | 18 |
19 | load->view("partial/footer"); ?> -------------------------------------------------------------------------------- /system/language/nl-BE/migration_lang.php: -------------------------------------------------------------------------------- 1 | type = "arrow"; 16 | $this->start = array("x"=>$x, "y"=>$y); 17 | $this->end = array("x"=>$a, "y"=>$b); 18 | $this->colour($colour); 19 | $this->{"barb-length"} = $barb_length; 20 | } 21 | 22 | function colour( $colour ) 23 | { 24 | $this->colour = $colour; 25 | return $this; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /application/libraries/Item_lib.php: -------------------------------------------------------------------------------- 1 | CI =& get_instance(); 10 | } 11 | 12 | function get_item_location() 13 | { 14 | if(!$this->CI->session->userdata('item_location')) 15 | { 16 | $location_id = $this->CI->Stock_location->get_default_location_id(); 17 | $this->set_item_location($location_id); 18 | } 19 | return $this->CI->session->userdata('item_location'); 20 | } 21 | 22 | function set_item_location($location) 23 | { 24 | $this->CI->session->set_userdata('item_location',$location); 25 | } 26 | 27 | function clear_item_location() 28 | { 29 | $this->CI->session->unset_userdata('item_location'); 30 | } 31 | } 32 | 33 | ?> 34 | -------------------------------------------------------------------------------- /application/views/reports/graphs/pie.php: -------------------------------------------------------------------------------- 1 | output->set_header("Cache-Control: no-store, no-cache, must-revalidate"); 3 | $this->output->set_header("Pragma: public"); 4 | $title = new title($title); 5 | 6 | $pie = new pie(); 7 | $pie->set_alpha(0.6); 8 | $pie->set_start_angle( 35 ); 9 | $pie->add_animation( new pie_fade() ); 10 | $pie->set_tooltip( '#val# of #total#
#percent# of 100%' ); 11 | $pie->set_colours(get_random_colors(count($data))); 12 | 13 | $pie_values = array(); 14 | foreach($data as $label=>$value) 15 | { 16 | $pie_values[] = new pie_value((float)$value, (string)$label); 17 | } 18 | $pie->set_values($pie_values); 19 | $chart = new open_flash_chart(); 20 | $chart->set_title( $title ); 21 | $chart->set_bg_colour("#f3f3f3"); 22 | $chart->add_element( $pie ); 23 | $chart->x_axis = null; 24 | echo $chart->toPrettyString(); 25 | ?> -------------------------------------------------------------------------------- /application/libraries/ofc-library/ofc_candle.php: -------------------------------------------------------------------------------- 1 | high = $high; 13 | $this->top = $open; 14 | $this->bottom = $close; 15 | $this->low = $low; 16 | } 17 | 18 | function set_colour( $colour ) 19 | { 20 | $this->colour = $colour; 21 | } 22 | 23 | function set_tooltip( $tip ) 24 | { 25 | $this->tip = $tip; 26 | } 27 | } 28 | 29 | class candle extends bar_base 30 | { 31 | function candle($colour, $negative_colour=null) 32 | { 33 | $this->type = "candle"; 34 | parent::bar_base(); 35 | 36 | $this->set_colour( $colour ); 37 | if(!is_null($negative_colour)) 38 | $this->{'negative-colour'} = $negative_colour; 39 | } 40 | } 41 | 42 | -------------------------------------------------------------------------------- /application/helpers/dompdf/include/table_cell_positioner.cls.php: -------------------------------------------------------------------------------- 1 | 6 | * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License 7 | */ 8 | 9 | /** 10 | * Positions table cells 11 | * 12 | * @access private 13 | * @package dompdf 14 | */ 15 | class Table_Cell_Positioner extends Positioner { 16 | 17 | function __construct(Frame_Decorator $frame) { parent::__construct($frame); } 18 | 19 | //........................................................................ 20 | 21 | function position() { 22 | 23 | $table = Table_Frame_Decorator::find_parent_table($this->_frame); 24 | $cellmap = $table->get_cellmap(); 25 | $this->_frame->set_position($cellmap->get_frame_position($this->_frame)); 26 | 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /application/helpers/dompdf/lib/php-font-lib/classes/Font_Glyph_Outline_Component.php: -------------------------------------------------------------------------------- 1 | 6 | * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License 7 | * @version $Id: Font_Table_glyf.php 46 2012-04-02 20:22:38Z fabien.menager $ 8 | */ 9 | 10 | /** 11 | * Glyph outline component 12 | * 13 | * @package php-font-lib 14 | */ 15 | class Font_Glyph_Outline_Component { 16 | public $flags; 17 | public $glyphIndex; 18 | public $a, $b, $c, $d, $e, $f; 19 | public $point_compound; 20 | public $point_component; 21 | public $instructions; 22 | 23 | function getMatrix(){ 24 | return array( 25 | $this->a, $this->b, 26 | $this->c, $this->d, 27 | $this->e, $this->f, 28 | ); 29 | } 30 | } -------------------------------------------------------------------------------- /application/config/hooks.php: -------------------------------------------------------------------------------- 1 | '', 14 | 'function' => 'load_config', 15 | 'filename' => 'load_config.php', 16 | 'filepath' => 'hooks' 17 | ); 18 | /* End of file hooks.php */ 19 | /* Location: ./application/config/hooks.php */ -------------------------------------------------------------------------------- /application/libraries/ofc-library/ofc_bar_sketch.php: -------------------------------------------------------------------------------- 1 | type = "bar_sketch"; 16 | parent::bar_base(); 17 | 18 | $this->set_colour( $colour ); 19 | $this->set_outline_colour( $outline_colour ); 20 | $this->offset = $fun_factor; 21 | } 22 | 23 | function set_outline_colour( $outline_colour ) 24 | { 25 | $tmp = 'outline-colour'; 26 | $this->$tmp = $outline_colour; 27 | } 28 | } 29 | 30 | -------------------------------------------------------------------------------- /application/libraries/ofc-library/ofc_radar_axis.php: -------------------------------------------------------------------------------- 1 | set_max( $max ); 8 | } 9 | 10 | function set_max( $max ) 11 | { 12 | $this->max = $max; 13 | } 14 | 15 | function set_steps( $steps ) 16 | { 17 | $this->steps = $steps; 18 | } 19 | 20 | function set_stroke( $s ) 21 | { 22 | $this->stroke = $s; 23 | } 24 | 25 | function set_colour( $colour ) 26 | { 27 | $this->colour = $colour; 28 | } 29 | 30 | function set_grid_colour( $colour ) 31 | { 32 | $tmp = 'grid-colour'; 33 | $this->$tmp = $colour; 34 | } 35 | 36 | function set_labels( $labels ) 37 | { 38 | $this->labels = $labels; 39 | } 40 | 41 | function set_spoke_labels( $labels ) 42 | { 43 | $tmp = 'spoke-labels'; 44 | $this->$tmp = $labels; 45 | } 46 | } 47 | 48 | -------------------------------------------------------------------------------- /application/views/reports/graphical.php: -------------------------------------------------------------------------------- 1 | load->view("partial/header"); 3 | ?> 4 |
5 |
6 |
7 | 13 | 15 |
16 |
17 |
18 |
19 |
20 | $value) { ?> 21 |
lang->line('reports_'.$name). ': '.to_currency($value); ?>
22 | 23 |
24 | load->view("partial/footer"); 26 | ?> -------------------------------------------------------------------------------- /system/language/fr/migration_lang.php: -------------------------------------------------------------------------------- 1 | 6 | * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License 7 | */ 8 | 9 | /** 10 | * Font header container. 11 | * 12 | * @package php-font-lib 13 | */ 14 | abstract class Font_Header extends Font_Binary_Stream { 15 | /** 16 | * @var Font_TrueType 17 | */ 18 | protected $font; 19 | protected $def = array(); 20 | 21 | public $data; 22 | 23 | public function __construct(Font_TrueType $font) { 24 | $this->font = $font; 25 | } 26 | 27 | public function encode(){ 28 | return $this->font->pack($this->def, $this->data); 29 | } 30 | 31 | public function parse(){ 32 | $this->data = $this->font->unpack($this->def); 33 | } 34 | } -------------------------------------------------------------------------------- /application/libraries/ofc-library/README.txt: -------------------------------------------------------------------------------- 1 | Open Flash Chart - PHP libraries. These help create data files for Open Flash Chart. 2 | Copyright (C) 2007 3 | 4 | This library is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public 6 | License as published by the Free Software Foundation; either 7 | version 2.1 of the License, or (at your option) any later version. 8 | 9 | This library is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public 15 | License along with this library; if not, write to the Free Software 16 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -------------------------------------------------------------------------------- /application/libraries/ofc-library/ofc_x_axis_label.php: -------------------------------------------------------------------------------- 1 | set_text( $text ); 11 | $this->set_colour( $colour ); 12 | $this->set_size( $size ); 13 | $this->set_rotate( $rotate ); 14 | } 15 | 16 | function set_text( $text ) 17 | { 18 | $this->text = $text; 19 | } 20 | 21 | function set_colour( $colour ) 22 | { 23 | $this->colour = $colour; 24 | } 25 | 26 | function set_size( $size ) 27 | { 28 | $this->size = $size; 29 | } 30 | 31 | function set_rotate( $rotate ) 32 | { 33 | $this->rotate = $rotate; 34 | } 35 | 36 | function set_vertical() 37 | { 38 | $this->rotate = "vertical"; 39 | } 40 | 41 | function set_visible() 42 | { 43 | $this->visible = true; 44 | } 45 | } -------------------------------------------------------------------------------- /application/language/zh/suppliers_lang.php: -------------------------------------------------------------------------------- 1 | 6 | * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License 7 | */ 8 | 9 | /** 10 | * Embeds Javascript into the PDF document 11 | * 12 | * @access private 13 | * @package dompdf 14 | */ 15 | class Javascript_Embedder { 16 | 17 | /** 18 | * @var DOMPDF 19 | */ 20 | protected $_dompdf; 21 | 22 | function __construct(DOMPDF $dompdf) { 23 | $this->_dompdf = $dompdf; 24 | } 25 | 26 | function insert($script) { 27 | $this->_dompdf->get_canvas()->javascript($script); 28 | } 29 | 30 | function render(Frame $frame) { 31 | if ( !$this->_dompdf->get_option("enable_javascript") ) { 32 | return; 33 | } 34 | 35 | $this->insert($frame->get_node()->nodeValue); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /application/language/zh/item_kits_lang.php: -------------------------------------------------------------------------------- 1 | 6 | * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License 7 | */ 8 | 9 | require_once dirname(__FILE__) . "/Font_Header.php"; 10 | 11 | /** 12 | * TrueType font file header. 13 | * 14 | * @package php-font-lib 15 | */ 16 | class Font_TrueType_Header extends Font_Header { 17 | protected $def = array( 18 | "format" => self::uint32, 19 | "numTables" => self::uint16, 20 | "searchRange" => self::uint16, 21 | "entrySelector" => self::uint16, 22 | "rangeShift" => self::uint16, 23 | ); 24 | 25 | public function parse(){ 26 | parent::parse(); 27 | 28 | $format = $this->data["format"]; 29 | $this->data["formatText"] = $this->convertUInt32ToStr($format); 30 | } 31 | } -------------------------------------------------------------------------------- /application/libraries/ofc-library/ofc_bar_filled.php: -------------------------------------------------------------------------------- 1 | $tmp = $outline_colour; 16 | } 17 | } 18 | 19 | class bar_filled extends bar_base 20 | { 21 | function bar_filled( $colour=null, $outline_colour=null ) 22 | { 23 | $this->type = "bar_filled"; 24 | parent::bar_base(); 25 | 26 | if( isset( $colour ) ) 27 | $this->set_colour( $colour ); 28 | 29 | if( isset( $outline_colour ) ) 30 | $this->set_outline_colour( $outline_colour ); 31 | } 32 | 33 | function set_outline_colour( $outline_colour ) 34 | { 35 | $tmp = 'outline-colour'; 36 | $this->$tmp = $outline_colour; 37 | } 38 | } 39 | 40 | -------------------------------------------------------------------------------- /application/helpers/dompdf/include/table_row_positioner.cls.php: -------------------------------------------------------------------------------- 1 | 6 | * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License 7 | */ 8 | 9 | /** 10 | * Positions table rows 11 | * 12 | * @access private 13 | * @package dompdf 14 | */ 15 | class Table_Row_Positioner extends Positioner { 16 | 17 | function __construct(Frame_Decorator $frame) { parent::__construct($frame); } 18 | 19 | //........................................................................ 20 | 21 | function position() { 22 | 23 | $cb = $this->_frame->get_containing_block(); 24 | $p = $this->_frame->get_prev_sibling(); 25 | 26 | if ( $p ) 27 | $y = $p->get_position("y") + $p->get_margin_height(); 28 | 29 | else 30 | $y = $cb["y"]; 31 | 32 | $this->_frame->set_position($cb["x"], $y); 33 | 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /application/helpers/dompdf/lib/php-font-lib/classes/Font_TrueType_Table_Directory_Entry.php: -------------------------------------------------------------------------------- 1 | 6 | * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License 7 | */ 8 | 9 | require_once dirname(__FILE__) . "/Font_Table_Directory_Entry.php"; 10 | 11 | /** 12 | * TrueType table directory entry. 13 | * 14 | * @package php-font-lib 15 | */ 16 | class Font_TrueType_Table_Directory_Entry extends Font_Table_Directory_Entry { 17 | function __construct(Font_TrueType $font) { 18 | parent::__construct($font); 19 | } 20 | 21 | function parse(){ 22 | parent::parse(); 23 | 24 | $font = $this->font; 25 | $this->checksum = $font->readUInt32(); 26 | $this->offset = $font->readUInt32(); 27 | $this->length = $font->readUInt32(); 28 | $this->entryLength += 12; 29 | } 30 | } 31 | 32 | -------------------------------------------------------------------------------- /application/language/zh/customers_lang.php: -------------------------------------------------------------------------------- 1 | text = $text; 12 | } 13 | 14 | /** 15 | * A css string. Can optionally contain: 16 | * - font-size 17 | * - font-family 18 | * - font-weight 19 | * - color 20 | * - background-color 21 | * - text-align 22 | * - margin 23 | * - margin-left 24 | * - margin-right 25 | * - margin-top 26 | * - margin-bottom 27 | * - padding 28 | * - padding-left 29 | * - padding-right 30 | * - padding-top 31 | * - padding-bottom 32 | * just like the css we use all the time :-) 33 | */ 34 | function set_style( $css ) 35 | { 36 | $this->style = $css; 37 | //"{font-size: 20px; color:#0000ff; font-family: Verdana; text-align: center;}"; 38 | } 39 | } -------------------------------------------------------------------------------- /system/language/nl-BE/profiler_lang.php: -------------------------------------------------------------------------------- 1 | x = $x; 8 | $this->y = $y; 9 | 10 | if( $dot_size > 0 ) 11 | { 12 | $tmp = 'dot-size'; 13 | $this->$tmp = $dot_size; 14 | } 15 | } 16 | } 17 | 18 | class scatter 19 | { 20 | function scatter( $colour ) 21 | { 22 | $this->type = "scatter"; 23 | $this->set_colour( $colour ); 24 | } 25 | 26 | function set_colour( $colour ) 27 | { 28 | $this->colour = $colour; 29 | } 30 | 31 | function set_default_dot_style( $style ) 32 | { 33 | $tmp = 'dot-style'; 34 | $this->$tmp = $style; 35 | } 36 | 37 | /** 38 | * @param $v as array, can contain any combination of: 39 | * - integer, Y position of the point 40 | * - any class that inherits from scatter_value 41 | * - null 42 | */ 43 | function set_values( $values ) 44 | { 45 | $this->values = $values; 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /application/helpers/dompdf/lib/php-font-lib/classes/Font_WOFF_Table_Directory_Entry.php: -------------------------------------------------------------------------------- 1 | 6 | * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License 7 | */ 8 | 9 | require_once dirname(__FILE__) . "/Font_Table_Directory_Entry.php"; 10 | 11 | /** 12 | * WOFF font file table directory entry. 13 | * 14 | * @package php-font-lib 15 | */ 16 | class Font_WOFF_Table_Directory_Entry extends Font_Table_Directory_Entry { 17 | public $origLength; 18 | 19 | function __construct(Font_WOFF $font) { 20 | parent::__construct($font); 21 | } 22 | 23 | function parse(){ 24 | parent::parse(); 25 | 26 | $font = $this->font; 27 | $this->offset = $font->readUInt32(); 28 | $this->length = $font->readUInt32(); 29 | $this->origLength = $font->readUInt32(); 30 | $this->checksum = $font->readUInt32(); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /application/controllers/login.php: -------------------------------------------------------------------------------- 1 | Employee->is_logged_in()) 12 | { 13 | redirect('home'); 14 | } 15 | else 16 | { 17 | $this->form_validation->set_rules('username', 'lang:login_undername', 'callback_login_check'); 18 | $this->form_validation->set_error_delimiters('
', '
'); 19 | 20 | if($this->form_validation->run() == FALSE) 21 | { 22 | $this->load->view('login'); 23 | } 24 | else 25 | { 26 | redirect('home'); 27 | } 28 | } 29 | } 30 | 31 | function login_check($username) 32 | { 33 | $password = $this->input->post("password"); 34 | 35 | if(!$this->Employee->login($username,$password)) 36 | { 37 | $this->form_validation->set_message('login_check', $this->lang->line('login_invalid_username_and_password')); 38 | return false; 39 | } 40 | return true; 41 | } 42 | } 43 | ?> -------------------------------------------------------------------------------- /application/helpers/dompdf/lib/php-font-lib/classes/Encoding_Map.php: -------------------------------------------------------------------------------- 1 | 6 | * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License 7 | */ 8 | 9 | /** 10 | * Encoding map used to map a code point to a Unicode char. 11 | * 12 | * @package php-font-lib 13 | */ 14 | class Encoding_Map { 15 | private $f; 16 | 17 | function __construct($file) { 18 | $this->f = fopen($file, "r"); 19 | } 20 | 21 | function parse(){ 22 | $map = array(); 23 | 24 | while($line = fgets($this->f)) { 25 | if (preg_match("/^[\!\=]([0-9A-F]{2,})\s+U\+([0-9A-F]{2})([0-9A-F]{2})\s+([^\s]+)/", $line, $matches)) { 26 | $unicode = (hexdec($matches[2]) << 8) + hexdec($matches[3]); 27 | $map[hexdec($matches[1])] = array($unicode, $matches[4]); 28 | } 29 | } 30 | 31 | ksort($map); 32 | 33 | return $map; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /system/language/fr/unit_test_lang.php: -------------------------------------------------------------------------------- 1 | 6 | * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License 7 | */ 8 | 9 | /** 10 | * Reflows list bullets 11 | * 12 | * @access private 13 | * @package dompdf 14 | */ 15 | class List_Bullet_Frame_Reflower extends Frame_Reflower { 16 | 17 | function __construct(Frame_Decorator $frame) { parent::__construct($frame); } 18 | 19 | //........................................................................ 20 | 21 | function reflow(Block_Frame_Decorator $block = null) { 22 | $style = $this->_frame->get_style(); 23 | 24 | $style->width = $this->_frame->get_width(); 25 | $this->_frame->position(); 26 | 27 | if ( $style->list_style_position === "inside" ) { 28 | $p = $this->_frame->find_block_parent(); 29 | $p->add_frame_to_line($this->_frame); 30 | } 31 | 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /application/libraries/ofc-library/ofc_sugar.php: -------------------------------------------------------------------------------- 1 | colour($colour)->size($size); 16 | } 17 | } 18 | 19 | class s_box extends anchor 20 | { 21 | /** 22 | * I use this wrapper for default dot types, 23 | * it just makes the code easier to read. 24 | */ 25 | function s_box($colour, $size) 26 | { 27 | parent::anchor(); 28 | $this->colour($colour)->size($size)->rotation(45)->sides(4); 29 | } 30 | } 31 | 32 | class s_hollow_dot extends hollow_dot 33 | { 34 | /** 35 | * I use this wrapper for default dot types, 36 | * it just makes the code easier to read. 37 | */ 38 | function s_hollow_dot($colour, $size) 39 | { 40 | parent::hollow_dot(); 41 | $this->colour($colour)->size($size); 42 | } 43 | } -------------------------------------------------------------------------------- /application/libraries/ofc-library/ofc_scatter_line.php: -------------------------------------------------------------------------------- 1 | type = "scatter_line"; 8 | $this->set_colour( $colour ); 9 | $this->set_width( $width ); 10 | } 11 | 12 | function set_default_dot_style( $style ) 13 | { 14 | $tmp = 'dot-style'; 15 | $this->$tmp = $style; 16 | } 17 | 18 | function set_colour( $colour ) 19 | { 20 | $this->colour = $colour; 21 | } 22 | 23 | function set_width( $width ) 24 | { 25 | $this->width = $width; 26 | } 27 | 28 | function set_values( $values ) 29 | { 30 | $this->values = $values; 31 | } 32 | 33 | function set_step_horizontal() 34 | { 35 | $this->stepgraph = 'horizontal'; 36 | } 37 | 38 | function set_step_vertical() 39 | { 40 | $this->stepgraph = 'vertical'; 41 | } 42 | 43 | function set_key( $text, $font_size ) 44 | { 45 | $this->text = $text; 46 | $tmp = 'font-size'; 47 | $this->$tmp = $font_size; 48 | } 49 | } -------------------------------------------------------------------------------- /bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "opensourcepos", 3 | "version": "2.4", 4 | "authors": [ 5 | "jekkos " 6 | ], 7 | "description": "Open Source Point of Sale is a web based point of sale system written in the PHP language. It uses MySQL as the data storage back-end and has a simple user interface", 8 | "main": "dist/ospos.js", 9 | "keywords": [ 10 | "point-of-sale" 11 | ], 12 | "license": "MIT", 13 | "homepage": "https://github.com/jekkos/opensourcepos", 14 | "private": true, 15 | "moduleType": [ 16 | "globals" 17 | ], 18 | "ignore": [ 19 | "**/.*", 20 | "node_modules", 21 | "bower_components", 22 | "test", 23 | "tests" 24 | ], 25 | "dependencies": { 26 | "jKey": "https://github.com/OscarGodson/jKey", 27 | "jquery-bgiframe": "~3.0.1", 28 | "jquery-color": "~2.1.2", 29 | "jquery-form": "~3.46.0", 30 | "jquery-validate": "~1.13.1", 31 | "jquery": "1.8.3", 32 | "jquery-ui": "1.11.4", 33 | "swfobject": "*", 34 | "thickbox": "~3.1.2" 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /css/autocomplete.css: -------------------------------------------------------------------------------- 1 | .ac_results 2 | { 3 | padding: 0px; 4 | border: 1px solid black; 5 | background-color: white; 6 | overflow: hidden; 7 | z-index: 99999; 8 | } 9 | 10 | .ac_results ul 11 | { 12 | width: 100%; 13 | list-style-position: outside; 14 | list-style: none; 15 | padding: 0; 16 | margin: 0; 17 | } 18 | 19 | .ac_results li 20 | { 21 | margin: 0px; 22 | padding: 2px 5px; 23 | cursor: default; 24 | display: block; 25 | /* 26 | if width will be 100% horizontal scrollbar will apear 27 | when scroll mode will be used 28 | */ 29 | /*width: 100%;*/ 30 | font: menu; 31 | font-size: 12px; 32 | /* 33 | it is very important, if line-height not setted or setted 34 | in relative units scroll will be broken in firefox 35 | */ 36 | line-height: 16px; 37 | overflow: hidden; 38 | } 39 | 40 | .ac_loading 41 | { 42 | background: white url('../images/spinner_small.gif') right center no-repeat; 43 | } 44 | 45 | .ac_odd 46 | { 47 | background-color: #eee; 48 | } 49 | 50 | .ac_over 51 | { 52 | background-color: #0A246A; 53 | color: white; 54 | } 55 | -------------------------------------------------------------------------------- /application/models/reports/report.php: -------------------------------------------------------------------------------- 1 | output->set_header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); 10 | $this->output->set_header("Cache-Control: no-store, no-cache, must-revalidate"); 11 | $this->output->set_header("Cache-Control: post-check=0, pre-check=0", false); 12 | $this->output->set_header("Pragma: no-cache"); 13 | 14 | //Create our temp tables to work with the data in our report 15 | $this->Sale->create_sales_items_temp_table(); 16 | $this->Receiving->create_receivings_items_temp_table(); 17 | } 18 | 19 | //Returns the column names used for the report 20 | public abstract function getDataColumns(); 21 | 22 | //Returns all the data to be populated into the report 23 | public abstract function getData(array $inputs); 24 | 25 | //Returns key=>value pairing of summary data for the report 26 | public abstract function getSummaryData(array $inputs); 27 | } 28 | ?> -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "opensourcepos", 3 | "version": "2.4.0", 4 | "description": "Open Source Point of Sale is a web based point of sale system written in the PHP language. It uses MySQL as the data storage back-end and has a simple user interface.", 5 | "main": "index.php", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1" 8 | }, 9 | "repository": { 10 | "type": "git", 11 | "url": "https://github.com/jekkos/opensourcepos" 12 | }, 13 | "keywords": [ 14 | "point-of-sale" 15 | ], 16 | "author": "jekkos", 17 | "license": "MIT", 18 | "devDependencies": { 19 | "grunt": "~0.4.5", 20 | "grunt-cache-breaker": "^2.0.1", 21 | "grunt-contrib-concat": "~0.5.1", 22 | "grunt-contrib-jshint": "~0.6.3", 23 | "grunt-contrib-uglify": "~0.8.0", 24 | "grunt-contrib-watch": "~0.5.3", 25 | "grunt-mocha-webdriver": "^1.2.2", 26 | "grunt-script-link-tags": "git://github.com/jekkos/grunt-script-link-tags.git#master", 27 | "mocha": "^2.2.1", 28 | "phantomjs": "~1.9.2", 29 | "wd": "^0.3.3" 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /application/libraries/ofc-library/ofc_y_axis_labels.php: -------------------------------------------------------------------------------- 1 | steps = $steps; 13 | } 14 | 15 | /** 16 | * 17 | * @param $labels as an array of [y_axis_label or string] 18 | */ 19 | function set_labels( $labels ) 20 | { 21 | $this->labels = $labels; 22 | } 23 | 24 | function set_colour( $colour ) 25 | { 26 | $this->colour = $colour; 27 | } 28 | 29 | /** 30 | * font size in pixels 31 | */ 32 | function set_size( $size ) 33 | { 34 | $this->size = $size; 35 | } 36 | 37 | /** 38 | * rotate labels 39 | */ 40 | function set_vertical() 41 | { 42 | $this->rotate = 270; 43 | } 44 | 45 | function rotate( $angle ) 46 | { 47 | $this->rotate = $angle; 48 | } 49 | 50 | /** 51 | * @param $text default text that all labels inherit 52 | */ 53 | function set_text( $text ) 54 | { 55 | $this->text = $text; 56 | } 57 | } -------------------------------------------------------------------------------- /application/views/partial/header_excel.php: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | <?php echo $this->config->item('company').' -- '.$this->lang->line('common_powered_by').' Open Source Point Of Sale' ?> 7 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /application/language/th/suppliers_lang.php: -------------------------------------------------------------------------------- 1 | 6 | * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License 7 | */ 8 | 9 | require_once dirname(__FILE__) . "/Font_TrueType_Header.php"; 10 | 11 | /** 12 | * WOFF font file header. 13 | * 14 | * @package php-font-lib 15 | */ 16 | class Font_WOFF_Header extends Font_TrueType_Header { 17 | protected $def = array( 18 | "format" => self::uint32, 19 | "flavor" => self::uint32, 20 | "length" => self::uint32, 21 | "numTables" => self::uint16, 22 | self::uint16, 23 | "totalSfntSize" => self::uint32, 24 | "majorVersion" => self::uint16, 25 | "minorVersion" => self::uint16, 26 | "metaOffset" => self::uint32, 27 | "metaLength" => self::uint32, 28 | "metaOrigLength" => self::uint32, 29 | "privOffset" => self::uint32, 30 | "privLength" => self::uint32, 31 | ); 32 | } -------------------------------------------------------------------------------- /application/language/th/item_kits_lang.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Core 14 AFM Files - ReadMe 6 | 7 | 8 | or 9 | 10 | 11 | 12 | 13 | 14 |
This file and the 14 PostScript(R) AFM files it accompanies may be used, copied, and distributed for any purpose and without charge, with or without modification, provided that all copyright notices are retained; that the AFM files are not distributed without this file; that all modifications to this file or any of the AFM files are prominently noted in the modified file(s); and that this paragraph is not modified. Adobe Systems has no responsibility or obligation to support the use of the AFM files. Col
15 |

Source http://www.adobe.com/devnet/font/#pcfi

16 | 17 | -------------------------------------------------------------------------------- /application/views/partial/stock_locations.php: -------------------------------------------------------------------------------- 1 | 2 | $location_data ) { ?> 3 | 4 | 5 |
6 | lang->line('config_stock_location').' ' .++$i. ':', 'stock_location_'.$i ,array('class'=>'required wide')); ?> 7 |
8 | 'stock_location_'.$location_id, 10 | 'id'=>'stock_location_'.$location_id, 11 | 'class'=>'stock_location valid_chars required', 12 | 'value'=>$location_name); 13 | $location_data['deleted'] && $form_data['disabled'] = 'disabled'; 14 | echo form_input($form_data); 15 | ?> 16 |
17 | 18 | 19 |
20 | 21 | -------------------------------------------------------------------------------- /css/receipt.css: -------------------------------------------------------------------------------- 1 | #receipt_wrapper 2 | { 3 | width:100%; 4 | } 5 | 6 | #receipt_header 7 | { 8 | text-align:center; 9 | } 10 | 11 | #company_name 12 | { 13 | font-size:150%; 14 | font-weight:bold; 15 | } 16 | 17 | #company_name img 18 | { 19 | max-width: 150px; 20 | max-height: 150px; 21 | } 22 | 23 | #company_phone 24 | { 25 | margin-bottom:15px; 26 | 27 | } 28 | 29 | #sale_time 30 | { 31 | margin-bottom:5px; 32 | } 33 | 34 | #receipt_items 35 | { 36 | position:relative; 37 | border-collapse:collapse; 38 | margin-top:15px; 39 | margin-bottom:15px; 40 | width:100%; 41 | } 42 | 43 | #receipt_items td 44 | { 45 | position:relative; 46 | padding:3px; 47 | margin-bottom:5px; 48 | 49 | } 50 | 51 | #receipt_items tr { 52 | margin-bottom:5px; 53 | } 54 | 55 | .short_name 56 | { 57 | display:none; 58 | } 59 | 60 | #sale_return_policy 61 | { 62 | width:80%; 63 | margin:0 auto; 64 | text-align:center; 65 | } 66 | 67 | #barcode 68 | { 69 | margin-top:10px; 70 | text-align:center; 71 | } 72 | 73 | .total-value 74 | { 75 | text-align: right; 76 | } 77 | 78 | .discount 79 | { 80 | font-weight: bold; 81 | } 82 | } -------------------------------------------------------------------------------- /application/language/tr/item_kits_lang.php: -------------------------------------------------------------------------------- 1 | > ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini 14 | - ~/.phpenv/versions/$(phpenv version-name)/sbin/php-fpm 15 | # configure apache virtual hosts 16 | - sudo cp -f travis-ci-apache /etc/apache2/sites-available/default 17 | - sudo sed -e "s?%TRAVIS_BUILD_DIR%?$(pwd)?g" --in-place /etc/apache2/sites-available/default 18 | - sudo service apache2 restart 19 | - mysql -e "create database IF NOT EXISTS ospos;" -uroot 20 | - mysql -e "use ospos; source database/database.sql;" -uroot 21 | - cp application/config/database.php.tmpl application/config/database.php 22 | script: grunt mochaWebdriver:test 23 | -------------------------------------------------------------------------------- /application/language/fr/item_kits_lang.php: -------------------------------------------------------------------------------- 1 | db->from('item_kit_items'); 10 | $this->db->where('item_kit_id', $item_kit_id); 11 | 12 | //return an array of item kit items for an item 13 | return $this->db->get()->result_array(); 14 | } 15 | 16 | /* 17 | Inserts or updates an item kit's items 18 | */ 19 | function save(&$item_kit_items_data, $item_kit_id) 20 | { 21 | //Run these queries as a transaction, we want to make sure we do all or nothing 22 | $this->db->trans_start(); 23 | 24 | $this->delete($item_kit_id); 25 | 26 | foreach ($item_kit_items_data as $row) 27 | { 28 | $row['item_kit_id'] = $item_kit_id; 29 | $this->db->insert('item_kit_items', $row); 30 | } 31 | 32 | $this->db->trans_complete(); 33 | 34 | return true; 35 | } 36 | 37 | /* 38 | Deletes item kit items given an item kit 39 | */ 40 | function delete($item_kit_id) 41 | { 42 | return $this->db->delete('item_kit_items', array('item_kit_id' => $item_kit_id)); 43 | } 44 | } 45 | ?> 46 | -------------------------------------------------------------------------------- /application/views/reports/excel_export.php: -------------------------------------------------------------------------------- 1 | load->view("partial/header"); ?> 2 |
lang->line('reports_report_input'); ?>
3 | ".$error.""; 7 | } 8 | ?> 9 |
10 | Export to Excel: Yes 11 | No 12 |
13 | 14 | 'generate_report', 17 | 'id'=>'generate_report', 18 | 'content'=>$this->lang->line('common_submit'), 19 | 'class'=>'submit_button') 20 | ); 21 | ?> 22 | 23 | load->view("partial/footer"); ?> 24 | 25 | -------------------------------------------------------------------------------- /application/language/th/module_lang.php: -------------------------------------------------------------------------------- 1 | type = "bar_stack"; 10 | parent::bar_base(); 11 | } 12 | 13 | function append_stack( $v ) 14 | { 15 | $this->append_value( $v ); 16 | } 17 | 18 | // an array of HEX colours strings 19 | // e.g. array( '#ff0000', '#00ff00' ); 20 | function set_colours( $colours ) 21 | { 22 | $this->colours = $colours; 23 | } 24 | 25 | // an array of bar_stack_value 26 | function set_keys( $keys ) 27 | { 28 | $this->keys = $keys; 29 | } 30 | } 31 | 32 | class bar_stack_value 33 | { 34 | function bar_stack_value( $val, $colour ) 35 | { 36 | $this->val = $val; 37 | $this->colour = $colour; 38 | } 39 | 40 | function set_tooltip( $tip ) 41 | { 42 | $this->tip = $tip; 43 | } 44 | } 45 | 46 | class bar_stack_key 47 | { 48 | function bar_stack_key( $colour, $text, $font_size ) 49 | { 50 | $this->colour = $colour; 51 | $this->text = $text; 52 | $tmp = 'font-size'; 53 | $this->$tmp = $font_size; 54 | } 55 | } -------------------------------------------------------------------------------- /database/2.2.1_to_2.2.2.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE ospos_giftcards MODIFY value decimal(15,2); 2 | 3 | ALTER TABLE ospos_items MODIFY cost_price decimal(15,2); 4 | ALTER TABLE ospos_items MODIFY unit_price decimal(15,2); 5 | ALTER TABLE ospos_items MODIFY quantity decimal(15,0); 6 | ALTER TABLE ospos_items MODIFY reorder_level decimal(15,0); 7 | 8 | ALTER TABLE ospos_items_taxes MODIFY percent decimal(15,2); 9 | 10 | ALTER TABLE ospos_item_kit_items MODIFY quantity decimal(15,0); 11 | 12 | ALTER TABLE ospos_receivings_items MODIFY quantity_purchased decimal(15,0); 13 | ALTER TABLE ospos_receivings_items MODIFY item_unit_price decimal(15,2); 14 | ALTER TABLE ospos_receivings_items MODIFY discount_percent decimal(15,2); 15 | 16 | ALTER TABLE ospos_sales_items_taxes MODIFY percent decimal(15,2); 17 | 18 | ALTER TABLE ospos_sales_suspended_items MODIFY quantity_purchased decimal(15,0); 19 | ALTER TABLE ospos_sales_suspended_items MODIFY item_unit_price decimal(15,2); 20 | ALTER TABLE ospos_sales_suspended_items MODIFY discount_percent decimal(15,2); 21 | 22 | ALTER TABLE ospos_sales_suspended_items_taxes MODIFY percent decimal(15,2); 23 | 24 | ALTER TABLE ospos_sessions MODIFY ip_address varchar(45); 25 | -------------------------------------------------------------------------------- /application/language/tr/customers_lang.php: -------------------------------------------------------------------------------- 1 | '', 5 | 'xhtml1-strict' => '', 6 | 'xhtml1-trans' => '', 7 | 'xhtml1-frame' => '', 8 | 'html5' => '', 9 | 'html4-strict' => '', 10 | 'html4-trans' => '', 11 | 'html4-frame' => '' 12 | ); 13 | 14 | /* End of file doctypes.php */ 15 | /* Location: ./application/config/doctypes.php */ -------------------------------------------------------------------------------- /application/language/th/customers_lang.php: -------------------------------------------------------------------------------- 1 | left = $left; 10 | $this->right = $right; 11 | } 12 | else 13 | $this->right = $left; 14 | } 15 | 16 | function set_colour( $colour ) 17 | { 18 | $this->colour = $colour; 19 | } 20 | 21 | function set_tooltip( $tip ) 22 | { 23 | $this->tip = $tip; 24 | } 25 | } 26 | 27 | class hbar 28 | { 29 | function hbar( $colour ) 30 | { 31 | $this->type = "hbar"; 32 | $this->values = array(); 33 | $this->set_colour( $colour ); 34 | } 35 | 36 | function append_value( $v ) 37 | { 38 | $this->values[] = $v; 39 | } 40 | 41 | function set_values( $v ) 42 | { 43 | foreach( $v as $val ) 44 | $this->append_value( new hbar_value( $val ) ); 45 | } 46 | 47 | function set_colour( $colour ) 48 | { 49 | $this->colour = $colour; 50 | } 51 | 52 | function set_key( $text, $size ) 53 | { 54 | $this->text = $text; 55 | $tmp = 'font-size'; 56 | $this->$tmp = $size; 57 | } 58 | 59 | function set_tooltip( $tip ) 60 | { 61 | $this->tip = $tip; 62 | } 63 | } 64 | 65 | -------------------------------------------------------------------------------- /application/models/item_taxes.php: -------------------------------------------------------------------------------- 1 | db->from('items_taxes'); 10 | $this->db->where('item_id',$item_id); 11 | //return an array of taxes for an item 12 | return $this->db->get()->result_array(); 13 | } 14 | 15 | /* 16 | Inserts or updates an item's taxes 17 | */ 18 | function save(&$items_taxes_data, $item_id) 19 | { 20 | //Run these queries as a transaction, we want to make sure we do all or nothing 21 | $this->db->trans_start(); 22 | 23 | $this->delete($item_id); 24 | $result = TRUE; 25 | foreach ($items_taxes_data as $row) 26 | { 27 | $row['item_id'] = $item_id; 28 | $result &= $this->db->insert('items_taxes',$row); 29 | } 30 | 31 | $this->db->trans_complete(); 32 | return $result; 33 | } 34 | 35 | function save_multiple(&$items_taxes_data, $item_ids) 36 | { 37 | foreach($item_ids as $item_id) 38 | { 39 | $this->save($items_taxes_data, $item_id); 40 | } 41 | } 42 | 43 | /* 44 | Deletes taxes given an item 45 | */ 46 | function delete($item_id) 47 | { 48 | return $this->db->delete('items_taxes', array('item_id' => $item_id)); 49 | } 50 | } 51 | ?> 52 | -------------------------------------------------------------------------------- /application/language/fr/customers_lang.php: -------------------------------------------------------------------------------- 1 | lang->line('reports_item_name'), $this->lang->line('reports_item_number'), $this->lang->line('reports_description'), $this->lang->line('reports_count'), $this->lang->line('reports_reorder_level'), $this->lang->line('reports_stock_location')); 13 | } 14 | 15 | public function getData(array $inputs) 16 | { 17 | $this->db->from('items'); 18 | $this->db->join('item_quantities','items.item_id=item_quantities.item_id'); 19 | $this->db->join('stock_locations','item_quantities.location_id=stock_locations.location_id'); 20 | $this->db->select('name, item_number, reorder_level, item_quantities.quantity, description, location_name'); 21 | $this->db->where('item_quantities.quantity <= reorder_level'); 22 | $this->db->where('items.deleted', 0); 23 | $this->db->order_by('name'); 24 | 25 | return $this->db->get()->result_array(); 26 | } 27 | 28 | public function getSummaryData(array $inputs) 29 | { 30 | return array(); 31 | } 32 | } 33 | ?> -------------------------------------------------------------------------------- /system/language/nl-BE/ftp_lang.php: -------------------------------------------------------------------------------- 1 | config->item('currency_symbol') ? $CI->config->item('currency_symbol') : '$'; 6 | $currency_symbol = $currency_symbol == '$' && $escape ? '\$' : $currency_symbol; 7 | $thousands_separator = $CI->config->item('thousands_separator') ? $CI->config->item('thousands_separator') : ''; 8 | $decimal_point = $CI->config->item('decimal_point') ? $CI->config->item('decimal_point') : '.'; 9 | if($number >= 0) 10 | { 11 | if($CI->config->item('currency_side') !== 'currency_side') 12 | return $currency_symbol.number_format($number, 2, $decimal_point, $thousands_separator); 13 | else 14 | return number_format($number, 2, $decimal_point, $thousands_separator).$currency_symbol; 15 | } 16 | else 17 | { 18 | if($CI->config->item('currency_side') !== 'currency_side') 19 | return '-'.$currency_symbol.number_format(abs($number), 2, $decimal_point, $thousands_separator); 20 | else 21 | return '-'.number_format(abs($number), 2, $decimal_point, $thousands_separator).$currency_symbol; 22 | } 23 | } 24 | 25 | function to_currency_no_money($number) 26 | { 27 | return number_format($number, 2, '.', ''); 28 | } 29 | ?> 30 | -------------------------------------------------------------------------------- /application/language/en/customers_lang.php: -------------------------------------------------------------------------------- 1 | 6 | * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License 7 | */ 8 | 9 | /** 10 | * Executes inline PHP code during the rendering process 11 | * 12 | * @access private 13 | * @package dompdf 14 | */ 15 | class PHP_Evaluator { 16 | 17 | /** 18 | * @var Canvas 19 | */ 20 | protected $_canvas; 21 | 22 | function __construct(Canvas $canvas) { 23 | $this->_canvas = $canvas; 24 | } 25 | 26 | function evaluate($code, $vars = array()) { 27 | if ( !$this->_canvas->get_dompdf()->get_option("enable_php") ) { 28 | return; 29 | } 30 | 31 | // Set up some variables for the inline code 32 | $pdf = $this->_canvas; 33 | $PAGE_NUM = $pdf->get_page_number(); 34 | $PAGE_COUNT = $pdf->get_page_count(); 35 | 36 | // Override those variables if passed in 37 | foreach ($vars as $k => $v) { 38 | $$k = $v; 39 | } 40 | 41 | //$code = html_entity_decode($code); // @todo uncomment this when tested 42 | eval($code); 43 | } 44 | 45 | function render(Frame $frame) { 46 | $this->evaluate($frame->get_node()->nodeValue); 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /application/helpers/dompdf/lib/html5lib/Parser.php: -------------------------------------------------------------------------------- 1 | parse(); 22 | return $tokenizer->save(); 23 | } 24 | /** 25 | * Parses an HTML fragment. 26 | * @param $text HTML text to parse 27 | * @param $context String name of context element to pretend parsing is in. 28 | * @param $builder Custom builder implementation 29 | * @return Parsed HTML as DOMDocument 30 | */ 31 | static public function parseFragment($text, $context = null, $builder = null) { 32 | $tokenizer = new HTML5_Tokenizer($text, $builder); 33 | $tokenizer->parseFragment($context); 34 | return $tokenizer->save(); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /system/language/es/form_validation_lang.php: -------------------------------------------------------------------------------- 1 | 6 | * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License 7 | */ 8 | 9 | /** 10 | * Font table name record. 11 | * 12 | * @package php-font-lib 13 | */ 14 | class Font_Table_name_Record extends Font_Binary_Stream { 15 | public $platformID; 16 | public $platformSpecificID; 17 | public $languageID; 18 | public $nameID; 19 | public $length; 20 | public $offset; 21 | public $string; 22 | 23 | public static $format = array( 24 | "platformID" => self::uint16, 25 | "platformSpecificID" => self::uint16, 26 | "languageID" => self::uint16, 27 | "nameID" => self::uint16, 28 | "length" => self::uint16, 29 | "offset" => self::uint16, 30 | ); 31 | 32 | public function map($data) { 33 | foreach($data as $key => $value) { 34 | $this->$key = $value; 35 | } 36 | } 37 | 38 | public function getUTF8() { 39 | return $this->string; 40 | } 41 | 42 | public function getUTF16() { 43 | return Font::UTF8ToUTF16($this->string); 44 | } 45 | 46 | function __toString(){ 47 | return $this->string; 48 | } 49 | } -------------------------------------------------------------------------------- /application/language/id/customers_lang.php: -------------------------------------------------------------------------------- 1 | 6 | * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License 7 | */ 8 | 9 | /** 10 | * Renders block frames 11 | * 12 | * @access private 13 | * @package dompdf 14 | */ 15 | class Table_Row_Group_Renderer extends Block_Renderer { 16 | 17 | //........................................................................ 18 | 19 | function render(Frame $frame) { 20 | $style = $frame->get_style(); 21 | 22 | $this->_set_opacity( $frame->get_opacity( $style->opacity ) ); 23 | 24 | $this->_render_border($frame); 25 | $this->_render_outline($frame); 26 | 27 | if (DEBUG_LAYOUT && DEBUG_LAYOUT_BLOCKS) { 28 | $this->_debug_layout($frame->get_border_box(), "red"); 29 | if (DEBUG_LAYOUT_PADDINGBOX) { 30 | $this->_debug_layout($frame->get_padding_box(), "red", array(0.5, 0.5)); 31 | } 32 | } 33 | 34 | if (DEBUG_LAYOUT && DEBUG_LAYOUT_LINES && $frame->get_decorator()) { 35 | foreach ($frame->get_decorator()->get_line_boxes() as $line) { 36 | $frame->_debug_layout(array($line->x, $line->y, $line->w, $line->h), "orange"); 37 | } 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /system/language/en/ftp_lang.php: -------------------------------------------------------------------------------- 1 | output->set_header("Cache-Control: no-store, no-cache, must-revalidate"); 3 | $this->output->set_header("Pragma: public"); 4 | $bar = new bar_filled( '#4386a1', '#577261' ); 5 | 6 | $bar_labels = array(); 7 | $bar_values = array(); 8 | 9 | foreach($data as $label=>$value) 10 | { 11 | $bar_labels[] = (string)$label; 12 | $bar_values[] = (float)$value; 13 | } 14 | 15 | $bar->set_values($bar_values); 16 | 17 | $chart = new open_flash_chart(); 18 | $chart->set_title(new title($title)); 19 | $x = new x_axis(); 20 | $x->steps(1); 21 | $x->set_labels_from_array($bar_labels); 22 | $chart->set_x_axis( $x ); 23 | 24 | $y = new y_axis(); 25 | $y->set_tick_length(7); 26 | $y->set_range(0, (count($data) > 0 ? max($data) : 0) + 25, ((count($data) > 0 ? max($data) : 0)+25)/10); 27 | $chart->set_y_axis( $y ); 28 | $chart->set_bg_colour("#f3f3f3"); 29 | 30 | $chart->add_element($bar); 31 | 32 | if (isset($yaxis_label)) 33 | { 34 | $y_legend = new y_legend($yaxis_label ); 35 | $y_legend->set_style( '{font-size: 20px; color: #000000}' ); 36 | $chart->set_y_legend( $y_legend ); 37 | } 38 | 39 | if (isset($xaxis_label)) 40 | { 41 | $x_legend = new x_legend($xaxis_label ); 42 | $x_legend->set_style( '{font-size: 20px; color: #000000}' ); 43 | $chart->set_x_legend( $x_legend ); 44 | } 45 | echo $chart->toPrettyString(); 46 | ?> -------------------------------------------------------------------------------- /application/helpers/dompdf/dompdf_config.custom.inc.php: -------------------------------------------------------------------------------- 1 | 6 | * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License 7 | */ 8 | 9 | /** 10 | * Base Positioner class 11 | * 12 | * Defines postioner interface 13 | * 14 | * @access private 15 | * @package dompdf 16 | */ 17 | abstract class Positioner { 18 | 19 | /** 20 | * @var Frame_Decorator 21 | */ 22 | protected $_frame; 23 | 24 | //........................................................................ 25 | 26 | function __construct(Frame_Decorator $frame) { 27 | $this->_frame = $frame; 28 | } 29 | 30 | /** 31 | * Class destructor 32 | */ 33 | function __destruct() { 34 | clear_object($this); 35 | } 36 | //........................................................................ 37 | 38 | abstract function position(); 39 | 40 | function move($offset_x, $offset_y, $ignore_self = false) { 41 | list($x, $y) = $this->_frame->get_position(); 42 | 43 | if ( !$ignore_self ) { 44 | $this->_frame->set_position($x + $offset_x, $y + $offset_y); 45 | } 46 | 47 | foreach($this->_frame->get_children() as $child) { 48 | $child->move($offset_x, $offset_y); 49 | } 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /application/language/es/item_kits_lang.php: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | <?php echo $this->lang->line('items_generate_barcodes'); ?> 8 | 9 | 15 | 16 | 17 | barcode_lib->get_font_name($barcode_config['barcode_font']); ?> 18 | style="font-size:px"> 19 | width='' > 20 | 21 | '; 28 | } 29 | echo ""; 30 | $count++; 31 | } 32 | ?> 33 | 34 |
" . $this->barcode_lib->display_barcode($item, $barcode_config) . "
35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /application/language/fr/module_lang.php: -------------------------------------------------------------------------------- 1 | shadow = $shadow; 15 | } 16 | 17 | /** 18 | * @param $stroke as integer, border width in pixels (e.g. 5 ) 19 | */ 20 | function set_stroke( $stroke ) 21 | { 22 | $this->stroke = $stroke; 23 | } 24 | 25 | /** 26 | * @param $colour as string, HEX colour e.g. '#0000ff' 27 | */ 28 | function set_colour( $colour ) 29 | { 30 | $this->colour = $colour; 31 | } 32 | 33 | /** 34 | * @param $bg as string, HEX colour e.g. '#0000ff' 35 | */ 36 | function set_background_colour( $bg ) 37 | { 38 | $this->background = $bg; 39 | } 40 | 41 | /** 42 | * @param $style as string. A css style. 43 | */ 44 | function set_title_style( $style ) 45 | { 46 | $this->title = $style; 47 | } 48 | 49 | /** 50 | * @param $style as string. A css style. 51 | */ 52 | function set_body_style( $style ) 53 | { 54 | $this->body = $style; 55 | } 56 | 57 | function set_proximity() 58 | { 59 | $this->mouse = 1; 60 | } 61 | 62 | function set_hover() 63 | { 64 | $this->mouse = 2; 65 | } 66 | } 67 | 68 | -------------------------------------------------------------------------------- /application/helpers/dompdf/include/table_row_frame_decorator.cls.php: -------------------------------------------------------------------------------- 1 | 6 | * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License 7 | */ 8 | 9 | /** 10 | * Decorates Frames for table row layout 11 | * 12 | * @access private 13 | * @package dompdf 14 | */ 15 | class Table_Row_Frame_Decorator extends Frame_Decorator { 16 | 17 | // protected members 18 | 19 | function __construct(Frame $frame, DOMPDF $dompdf) { 20 | parent::__construct($frame, $dompdf); 21 | } 22 | 23 | //........................................................................ 24 | 25 | /** 26 | * Remove all non table-cell frames from this row and move them after 27 | * the table. 28 | */ 29 | function normalise() { 30 | 31 | // Find our table parent 32 | $p = Table_Frame_Decorator::find_parent_table($this); 33 | 34 | $erroneous_frames = array(); 35 | foreach ($this->get_children() as $child) { 36 | $display = $child->get_style()->display; 37 | 38 | if ( $display !== "table-cell" ) 39 | $erroneous_frames[] = $child; 40 | } 41 | 42 | // dump the extra nodes after the table. 43 | foreach ($erroneous_frames as $frame) 44 | $p->move_after($frame); 45 | } 46 | 47 | 48 | } 49 | -------------------------------------------------------------------------------- /application/helpers/dompdf/lib/php-font-lib/classes/Font_Table_maxp.php: -------------------------------------------------------------------------------- 1 | 6 | * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License 7 | */ 8 | 9 | /** 10 | * `maxp` font table. 11 | * 12 | * @package php-font-lib 13 | */ 14 | class Font_Table_maxp extends Font_Table { 15 | protected $def = array( 16 | "version" => self::Fixed, 17 | "numGlyphs" => self::uint16, 18 | "maxPoints" => self::uint16, 19 | "maxContours" => self::uint16, 20 | "maxComponentPoints" => self::uint16, 21 | "maxComponentContours" => self::uint16, 22 | "maxZones" => self::uint16, 23 | "maxTwilightPoints" => self::uint16, 24 | "maxStorage" => self::uint16, 25 | "maxFunctionDefs" => self::uint16, 26 | "maxInstructionDefs" => self::uint16, 27 | "maxStackElements" => self::uint16, 28 | "maxSizeOfInstructions" => self::uint16, 29 | "maxComponentElements" => self::uint16, 30 | "maxComponentDepth" => self::uint16, 31 | ); 32 | 33 | function _encode(){ 34 | $font = $this->getFont(); 35 | $this->data["numGlyphs"] = count($font->getSubset()); 36 | 37 | return parent::_encode(); 38 | } 39 | } -------------------------------------------------------------------------------- /application/libraries/ofc-library/ofc_x_axis_labels.php: -------------------------------------------------------------------------------- 1 | steps = $steps; 13 | } 14 | 15 | /** 16 | * @param $steps as integer which labels are visible 17 | */ 18 | function visible_steps( $steps ) 19 | { 20 | $this->{"visible-steps"} = $steps; 21 | return $this; 22 | } 23 | 24 | /** 25 | * 26 | * @param $labels as an array of [x_axis_label or string] 27 | */ 28 | function set_labels( $labels ) 29 | { 30 | $this->labels = $labels; 31 | } 32 | 33 | function set_colour( $colour ) 34 | { 35 | $this->colour = $colour; 36 | } 37 | 38 | /** 39 | * font size in pixels 40 | */ 41 | function set_size( $size ) 42 | { 43 | $this->size = $size; 44 | } 45 | 46 | /** 47 | * rotate labels 48 | */ 49 | function set_vertical() 50 | { 51 | $this->rotate = 270; 52 | } 53 | 54 | /** 55 | * @param @angle as real. The angle of the text. 56 | */ 57 | function rotate( $angle ) 58 | { 59 | $this->rotate = $angle; 60 | } 61 | 62 | /** 63 | * @param $text as string. Replace and magic variables with actual x axis position. 64 | */ 65 | function text( $text ) 66 | { 67 | $this->text = $text; 68 | } 69 | } --------------------------------------------------------------------------------