=== Expenses Book Plugin for WordPress ===
Contributors: Ming's IT Services Ltd.
Donate link: https://paypal.me/mingsitservices?country.x=CA&locale.x=en_US
Tags: expense, recurring, private, sign in, sign out, log in, log out, accessibility, plugin, wordpress, PHP, jQuery
Requires at least: 5.4
Tested up to: 6.8.1
Requires PHP: 5.5 or higher
Stable tag: 1.1.3
Copyright: Ming's IT Services Ltd.. All rights reserved.
License: GPLv2 or later


You want to record your expenses history in a 100% private and 100% safe place? You do not want to use the cloud because it’s not 100% private and 100% safe. We provide you a plugin to give you 100% privacy and 100% safety for your expenses records. You can install this plugin on your website in a company intranet or as your own computer’s localhost. Data is saved in the same MySQL database for your WordPress website.
== Description ==
 
You want to record your expenses history in a 100% private and 100% safe place? You do not want to use the cloud because it’s not 100% private and 100% safe. We provide you a plugin to give you 100% privacy and 100% safety for your expenses records. You can install this plugin on your website in a company intranet or as your own computer’s localhost. Data is saved in the same MySQL database for your WordPress website.

This expenses book plugin is for you to record your expenses including recurring expenses for future purposes such as tax reporting. It can be related to many different expense types such as Salaries and Wages, Company Management, Meals and Entertainment, and etc. It can be related to a tax rate, a customer, and a recurring expense. It’s comparable to zoho invoice, which is in an internet public website.

By default, this plugin uses Bootstrap (https://getbootstrap.com/) for the formatting. But sometimes you already have your own formatting css files. So you may need to remove these Bootstrap css and javascript files when you use this plugin. If this is the case, you can choose not to use Bootstrap’s css and javascript files by changing the values of USE_BOOTSTRAP_JS and USE_BOOTSTRAP_CSS to no (0) in the constant table.

If you did not find USE_BOOTSTRAP_JS and USE_BOOTSTRAP_CSS in your constant table, please deactivate this plugin and activate it again. Then USE_BOOTSTRAP_JS and USE_BOOTSTRAP_CSS will be automatically added to your constant table.

For this plugin to get your company's current local date, you must set the timezone value correctly. You can edit the timezone at Dashboard -> Settings -> General -> Timezone -> check if the value has been set correctly.

This plugin has the web accessibility feature for the disabled people to listen to the screen reader. The disabled people just need to press the tab key to access the elements on the page. Then use keyboard to input. Then press the enter key for submit, reset and cancel. To use this feature, you can download and use any screen reader software such as NVDA (for Windows), VoiceOver (for Apple), etc. Most of this kind of software is free to download and use.

This plugin has an access restriction feature. You can give a user access to the landing page by adding the user to the wp_expenseszyx987_users table. You must log in WordPress website to access this plugin’s landing page.

This plugin uses a responsive design. You can use it from your cellphone, tablet, laptop, and PC. The layout will change accordingly. 

After plugin activation, go to the "Settings" menu to find the plugin admin page. By default, when you activate this plugin, it will automatically create an expenses landing page for you. For some themes, if it does not automatically create an expenses landing page for you, add this plugin root folder template-expenses.php file to your template folder. For example, if you are using theme twentytwenty, then add the template-expenses.php file to this folder: wordpress\wp-content\themes\twentytwenty\templates. Then you can create a new page (not a new post) using this template. When you use the template method to create a new expense page, do not set the page title to "expenses".  If you set the page title to "expenses", it could conflict with the page automatically created when you activate this plugin. 

Documentation file is in the root folder with the name documentation_expenses.pdf. Please follow the instructions in the file to install this plugin.

Donate URL link:
https://paypal.me/mingsitservices?country.x=CA&locale.x=en_US

demo website:

https://dragonecommercefree.herokuapp.com/expense/

admin page:

https://dragonecommercefree.herokuapp.com/wp-admin

Log in WordPress admin page using

username:

admin_order

password:

m8Yl*KWKq4nEa5JUDk

Then, go to

https://dragonecommercefree.herokuapp.com/wp-admin/options-general.php?page=Expenses

to set up the admin page.

Documentation:

https://dragonecommercefree.herokuapp.com/wp-content/plugins/expensesfree/documentation_expenses.pdf

Platform and Database:

You can run it on any platform: Windows, Mac, Linux.

Database is MySQL. It’s free.

PHP version: PHP >= 5.4

Attention: PHP version and WordPress version may have compatibility issues. For example, WordPress 5.4 may not match PHP 8. Check this website for details: 
https://make.wordpress.org/core/handbook/references/php-compatibility-and-wordpress-versions/

1. PHP has support for the mysqli extension (to used for prepared statement)

2. Must use HTTPS, not http. If website use HTTP, tell the website admin - can not use the dragon ecommerce plugin.

3. Since PHP 5.4 there are constants which can be used by json_encode() to format the json reponse how you want. To remove backslashes use: JSON_UNESCAPED_SLASHES. Like so: json_encode($response, JSON_UNESCAPED_SLASHES);


== Installation ==
 
1. Unzip the file. Copy the folder into your /wp-content/plugins/ folder.

2. Log in to your WordPress admin page. Click “Plugins” and click “Activate” to activate the plugin. http://yourwebsite.com/wp-login.php

3. Hover on left menu’s “Settings” and you will find “Expenses Book” in the sub-menu. Click it and you will see the admin page for Expenses Book.

4. Go to this plugin's root folder. Copy template-expenses.php to \wordpress\wp-content\themes\twentytwenty\templates folder.

5. Please refer to the document documentation_expenses.pdf for further details.

 
== Frequently Asked Questions ==
 
= A question that someone might have =
 
== Screenshots ==
 
 
== Changelog ==
 
 = 1.1.2 =
* Updated: Now it works for all the permalink settings URL: Plain (https://yourwebsite.com/?p=123), Day and name (https://yourwebsite.com/2024/08/04/expenses/), Month and name (https://yourwebsite.com/2024/08/expenses/), Numeric (https://yourwebsite.com/archives/123), Post name (https://yourwebsite.com/expenses/).

 = 1.1.1 =
* Updated: Small changes - 1. Removed white spaces. 2. Replaced sanitize_text_field($_SERVER['REQUEST_URI']) with sanitize_url($_SERVER['REQUEST_URI']).
* Updated: Replaced sanitize_url($_SERVER['REQUEST_URI']) with esc_html($_SERVER['REQUEST_URI']).

 = 1.1.0 =
* New: From now on, by default, when you activate this plugin, it will automatically create an expenses landing page for you. You do not need to copy the template-expenses.php file to this folder: wordpress\wp-content\themes\twentytwenty\templates if you are using the twentytwenty theme. For some themes, if it does not automatically create an expenses landing page for you, you still need to add this plugin root folder template-expenses.php file to your template folder. 

= 1.0 =
 
== Upgrade Notice ==
 
