fix bug duplicate config

fix bug duplicate config & update thai translate
Add invoice numbering to sales module
Add invoice numbering to sales module
Fix sales/receivings deletion
Review receivings quantity mulitplier
Fix invoice number insert in receivings
Fix item row refresh in detailed receivings and sales
Update Sale_lib.php

Clean "add_payment" to be simpler : don't need to declare $payment in the main as it used only to add to an existing array
Fix "edit_payment" that was trying to set a payment on the $payment_id (expected payment data : $payments)
Added enable invoice checkbox
Update database.sql
Update giftcards.php

Add a "record_time" to the giftcard saving function to be know when a new giftcard has been added.
Merge pull request #3 from songwutk/patch-2

fix bug duplicate config
Refresh only editd rows after bulk refresh
Merge branch 'fix/recv_amount_multiplication'
Merge pull request #7 from flodef/patch-1

Update Sale_lib.php
Merge branch 'feature/sale_numbering'

Conflicts:
	application/libraries/Receiving_lib.php
	database/2.3_to_2.3.1.sql
	js/manage_tables.js
Update register.php

Correct an HTML mistake : replace </tr> by </td>
Fix config module layout (wider + adapt setting labels)
Merge branch 'master' of https://github.com/jekkos/opensourcepos
Fix item quantity after edit