diff --git a/webht/third_party/trippestOrderSync/controllers/vendor_money.php b/webht/third_party/trippestOrderSync/controllers/vendor_money.php index 88410275..a93d39e9 100644 --- a/webht/third_party/trippestOrderSync/controllers/vendor_money.php +++ b/webht/third_party/trippestOrderSync/controllers/vendor_money.php @@ -325,7 +325,9 @@ class Vendor_money extends CI_Controller { $xls_ht_diff = $this->diff_xls_ht_cost($xls_data, $HT_combine_cost); foreach ($xls_ht_diff['cost_error'] as $kc => $cost_error) { $colis = $this->get_gci_coli($cost_error['GCI_combineNo'], false); - if (array_sum(array_column($colis['data'], 'no_fresh')) > 0) { + if (array_sum(array_column($colis['data'], 'no_fresh')) > 0 + || array_sum(array_column($colis['data'], 'cgi_check')) > 0 + ) { continue; } foreach ($colis['data'] as $kco => $coli) { diff --git a/webht/third_party/trippestOrderSync/models/vendor_money_model.php b/webht/third_party/trippestOrderSync/models/vendor_money_model.php index 70a87346..5ed9d2e3 100644 --- a/webht/third_party/trippestOrderSync/models/vendor_money_model.php +++ b/webht/third_party/trippestOrderSync/models/vendor_money_model.php @@ -688,6 +688,10 @@ ORDER BY to_be_diff.GCI_VEI_SN and DeleteFlag=0 and COLD_PlanVEI_SN not in (1343,29188,30548) ) as no_fresh + ,( + select COUNT(CGI_SN) from CK_GroupInfo k + where k.CGI_GRI_SN=GCI_GRI_SN and CGI_Checked=1 + ) as cgi_check from BIZ_ConfirmLineInfo inner join GroupCombineInfo cc on cc.GCI_GRI_SN=COLI_GRI_SN and GCI_combineNo=?";