feat: 预审核提示

feature/trippest
lyt 6 years ago
parent 6704ea9dfd
commit 45958aa271

@ -385,6 +385,7 @@ class Vendor_money_model extends CI_Model {
public function get_precheck_price_error($start_date, $end_date, $all_vendor)
{
$expire_fresh = date('Y-m-d',strtotime("+2 months", strtotime($start_date)));
$sql = "SELECT
data_tmp.TLD_total_price-(HT_haina_receipt+HT_agency_receipt) as 'total_price_err', --总团款差额 (账单减HT)',
case data_tmp.COLI_OPI_ID when 435
@ -398,13 +399,16 @@ class Vendor_money_model extends CI_Model {
,data_tmp.total_income-(round(HT_haina_receipt,1)+ ROUND(HT_agency_receipt,1)) as 'total_income_err' --'海纳收入差额'
,(select top 1 GCI_combineNo from groupcombineinfo where gci_gri_sn=data_tmp.GRI_SN) as combineNo
,(select top 1 GCI_VendorOrderId from groupcombineinfo
where gci_gri_sn=data_tmp.GRI_SN and ( GCI_createTime<'2019-10-01' or GCI_combineNo is null)
where gci_gri_sn=data_tmp.GRI_SN and ( GCI_createTime<'$expire_fresh' or GCI_combineNo is null)
) as vendor_order
,* from
(
select
gri.GRI_Name,
ro.money total_income,
(select SUM(COLD_TotalPrice) from BIZ_ConfirmLineDetail d where d.DeleteFlag=0 and d.COLD_PlanVEI_SN not in ($all_vendor)
and COLD_COLI_SN=coli.COLI_SN
) as other_price,
(select isnull(SUM(cast(GCI_priceCNY as decimal(10,2))),0) from GroupCombineInfo where GCI_GRI_SN=COLI_GRI_SN and GCI_combineNo<>'cancel' ) as TLD_total_price,
(select isnull(SUM(cast(GCI_agencyReceipt as decimal(10,2))),0) from GroupCombineInfo where GCI_GRI_SN=COLI_GRI_SN) as TLD_agency_receipt,
(select isnull(SUM(cast(GAI_SSJE as decimal(10,2))),0) from BIZ_GroupAccountInfo where GAI_COLI_SN=COLI_SN

@ -269,6 +269,8 @@
echo "<p>HT未更新退款: " . $ep['HT_receipt_err'] . "</p>";
} elseif ($ep['HT_receipt_err'] > 0) {
echo "<p class=\"text-left\">" . $ep["refund_memo"] . "</p>";
} elseif ($ep['other_price'] !== NULL) {
echo "<p>其他供应商接待的报价/美金:" . $ep['other_price'] . "</p>";
} elseif ($ep['vendor_order'] !== null) {
echo "<p>数据未更新, 请到HT中操作.</p>";
}

Loading…
Cancel
Save