Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Updated export import permission * Added filter at WP ERP title * Added filter at CRM title * Fixed name and city validation issues * Updated string validation function name * update sales transaction system for separating transaction charge and invoice amout * update employee display name whenn update * Product duplicate Issue (#1123) * solve Product duplication problem and response message * Fix some issues * fix some issues * update some issues * update some issues * update some issues * update text domain * add product duplicate prevent in update Co-authored-by: alemran <emrancu1@gmail.com> * Update expense, purchase and github issues (#1116) * update expense for Transaction charge * update purchase payment with Transaction charge and Update.6.4.php * Update for Category Parent * Update Github Issue #1094 * update expense , bill, purchase reference no , show in details payment and voucher * Update refrence no in purchase list * Update github Issue 1076 for tag payment not support decimal value * update git issue #942 . Expense, bill and bill payment refrence no add and show in list and single voucher * add reference no,due date to PDF export invoice * Update expense, sales, purchase filtering system with type and people * Update expense, sales, purchase filtering system with type and people * fix some issue in Expense filtering * Set Estimate title in PDF when Estimate * Update simple select UI, remove custom arrow, enable default select * update expense create page for redirecting when save expense * update PDF export system for Expense, bill, bill pay, purchase, purchase pay voucher * update customer transaction or ledger * update migration file * dev build for VUE change * fix phpcs issues * fix phpcs issues * update phpcs issue * update phpcs issue * update phpcs issue * update phpcs issues * update formating issues * remove duplicate method * fix github isues * update translate issue * update translate issue * dev build * change transaction charge system for purchase and expense * update filtering query for sales , purchase , expense * update migration for 1.6.8 Co-authored-by: alemran <emrancu1@gmail.com> * UPDATE INSTALL FILE Co-authored-by: tanmayjay <jktanmay@gmail.com> Co-authored-by: Al Emran <emran@wedevs.com> Co-authored-by: emran-wedevs <69339029+emran-wedevs@users.noreply.github.com> Co-authored-by: alemran <emrancu1@gmail.com>
- Loading branch information
1 parent
a726bf7
commit b4f44dd
Showing
61 changed files
with
9,530 additions
and
4,927 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
<?php | ||
namespace WeDevs\ERP\HRM\Update; | ||
|
||
/* | ||
* Add transaction_charge column in `erp_acct_expenses` table | ||
*/ | ||
function erp_acct_alter_acct_expenses_1_6_8() { | ||
global $wpdb; | ||
|
||
$cols = $wpdb->get_col( "DESC {$wpdb->prefix}erp_acct_expenses" ); | ||
|
||
if ( ! in_array( 'transaction_charge', $cols, true ) ) { | ||
$wpdb->query( | ||
$wpdb->prepare( | ||
"ALTER TABLE {$wpdb->prefix}erp_acct_expenses ADD `transaction_charge` decimal(20,2) DEFAULT 0 AFTER `trn_by`;" | ||
) | ||
); | ||
} | ||
} | ||
|
||
/* | ||
* Add transaction_charge and ref column in `erp_acct_pay_purchase` table | ||
*/ | ||
function erp_acct_alter_pay_purchase_1_6_8() { | ||
global $wpdb; | ||
|
||
$cols = $wpdb->get_col( "DESC {$wpdb->prefix}erp_acct_pay_purchase" ); | ||
|
||
if ( ! in_array( 'transaction_charge', $cols, true ) ) { | ||
$wpdb->query( | ||
$wpdb->prepare( | ||
"ALTER TABLE {$wpdb->prefix}erp_acct_pay_purchase ADD `transaction_charge` decimal(20,2) DEFAULT 0 AFTER `trn_by`;" | ||
) | ||
); | ||
} | ||
|
||
if ( ! in_array( 'ref', $cols, true ) ) { | ||
$wpdb->query( | ||
$wpdb->prepare( | ||
"ALTER TABLE {$wpdb->prefix}erp_acct_pay_purchase ADD `ref` varchar(255) NULL DEFAULT NULL AFTER `trn_by`;" | ||
) | ||
); | ||
} | ||
} | ||
|
||
/* | ||
* Add transaction_charge column in `erp_acct_pay_bill` table | ||
*/ | ||
function erp_acct_alter_pay_bill_1_6_8() { | ||
global $wpdb; | ||
|
||
$cols = $wpdb->get_col( "DESC {$wpdb->prefix}erp_acct_pay_bill" ); | ||
|
||
if ( ! in_array( 'ref', $cols, true ) ) { | ||
$wpdb->query( | ||
$wpdb->prepare( | ||
"ALTER TABLE {$wpdb->prefix}erp_acct_pay_bill ADD `ref` varchar(255) NULL DEFAULT NULL AFTER `particulars`;" | ||
) | ||
); | ||
} | ||
} | ||
|
||
erp_acct_alter_acct_expenses_1_6_8(); | ||
erp_acct_alter_pay_purchase_1_6_8(); | ||
erp_acct_alter_pay_bill_1_6_8(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.