=== EInvoice App Malaysia ===
Contributors: o2oe
Tags: E-invoice,Order,Invoice
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 7.4
Stable tag: 1.3.0
WC requires at least: 9.8.5
WC tested up to: 9.8.5
License: GPLv2 or later
Text Domain: einvoiceapp-malaysia

Collects checkout info, lets customers complete missing details, and submits to LHDN e-invoice.

== Description ==

Our app acts as a middleware between your store and Malaysia's LHDN e-invoice system. It temporarily collects customer checkout information, allowing customers to fill in any missing details. Once the data is complete, the app submits the information to the LHDN e-invoice system for validation, ensuring compliance with Malaysia's tax regulations.

* Collects customer checkout info and lets them fill in missing details easily.
* Submits completed data to Malaysia’s LHDN e-invoice system for validation.
* Easily integrates with Woocommerce to streamline the checkout and invoicing process.

== External Services ==

This plugin connects to the following external APIs to provide e-invoice functionality compliant with Malaysia's LHDN requirements:

### 1. E-Invoice App Malaysia API
- **Service Provider**: o2o Ecommerce Sdn Bhd  
- **Purpose**:  
  - Generates and submits e-invoices to LHDN.  
  - Manages invoice/note records for WooCommerce orders.  
- **Data Sent**:  
  - Order details (total, tax, items, quantities).  
  - Customer info (name, email, billing address, tax).  
  - Store/merchant registration details (for LHDN compliance).  
- **When Data is Sent**:  
  - When an admin/customer request for e-invoice.
  - When an admin create the consolidated e-invoice.
  - When an admin register for their store.
  - When an admin cancel e-invoice.
  - When an admin create/cancel credit note.
  - When an admin create/cancel debit note.
  - When an admin create/cancel refund note.
- **Endpoint**: `https://api.einvoiceapp.my`
- **Privacy Policy**: [https://www.webceo.my/einvoice-app-for-woocommerce-privacy-policy](https://www.webceo.my/einvoice-app-for-woocommerce-privacy-policy)

### 2. Development/Staging API (Optional)
- **Service Provider**: o2o Ecommerce Sdn Bhd  
- **Purpose**: Testing e-invoice generation during development.  
- **Data Sent**: Same as production API (mock data for testing).  
- **Endpoint**: `https://dev-api.einvoiceapp.my`  
- **Note**: Only active if plugin is in development mode.  

== Frequently Asked Questions == 

You may refer proceed to our [FAQs](https://o2o-ecommerce.gitbook.io/o2o-e-invoice-guide/faq/general) to understand more about this plugin.

== Installation ==

= Install from Wordpress Plugin =
- In your Wordpress admin, click on "Add Plugin" in the menu. 
- Search this plugin in Wordpress Plugin Directory
- Click Install to download and install the plugin.
- Click Activate to activate the plugin.
- At the setting page, fill in all required information about your company, then click "Save All Settings" button to save and submit the information for registration.
- Click on the subscribe link to our payment page to subscribe to our service.
- Once the registration and subscription is completed, you can start to use the plugin.

= Manual Install = 
- In your Wordpress admin, click on "Add Plugin" in the menu.
- Click at the "Upload Plugin" beside the page title.
- Click on the "Choose File" button and select the plugin zip to upload.
- After uploaded, proceed to install the plugin.
- After the plugin is installed, at the plugin listing page, click Activate to activate the plugin.
- At the setting page, fill in all required information about your company, then click "Save All Settings" button to save and submit the information for registration.
- Click on the subscribe link to our payment page to subscribe to our service.
- Once the registration and subscription is completed, you can start to use the plugin.

== Upgrade Notice ==

To upgrade the plugin, just need to click at the "Update Now" button in the plugin list to update the plugin.

== Changelog ==

= 1.3.0 =
* Added: Allow admins to select a custom order date when creating an invoice
* Improved: Added order status validation for e-Invoice creation availability
* Improved: Enhanced error handling on the settings page

= 1.2.3 =
* Fixed: Small fix to consolidated history page

= 1.2.2 =
* Fixed: Fixed pop up is not shown when creating notes for consolidated

= 1.2.1 =
* Fixed: Invoice Listing Page showing both regular and consolidated invoices 

= 1.2.0 =
* Added: Consolidated History page
* Added: Log Page
* Added: Helpline field in Setting page

= 1.1.0 =
* Optimized: Removed redundant error checking logic

= 1.0.0 =
* Initial Release

== License & Credits ==

This plugin includes the following third-party libraries:

1. **Select 2**
 - source: https://select2.org/
 - License MIT (https://github.com/select2/select2/blob/develop/LICENSE.md)

2. **QRCode.js**
 - source: https://davidshimjs.github.io/qrcodejs/
 - License MIT (https://github.com/davidshimjs/qrcodejs/blob/master/LICENSE)

3. **Bootstrap**
 - source: https://getbootstrap.com/
 - License MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)

4. **JQuery UI**
 - source: http://jqueryui.com
 - License MIT (https://github.com/jquery/jquery-ui/blob/main/LICENSE.txt)