diff --git a/webht/third_party/vendorPlanSync/models/Group_model.php b/webht/third_party/vendorPlanSync/models/Group_model.php index 1f8da255..531663e5 100644 --- a/webht/third_party/vendorPlanSync/models/Group_model.php +++ b/webht/third_party/vendorPlanSync/models/Group_model.php @@ -26,7 +26,7 @@ class Group_model extends CI_Model { AND VAS_IsSendSucceed=1 AND isnull(VAS_IsReceive,0)=0 -- AND EOI_GetDate between '$start_date' AND '$end_date' AND EOI_GetDate > CONVERT(date, GETDATE()) - AND isnull(VAS_IsConfirm,0)=0 AND isnull(VAS_SendVary,0)=0 + AND isnull(VAS_IsConfirm,0)=0 AND VAS_ConfirmSN IS NULL and not exists ( select 1 from VendorPlanSendout where VPS_VAS_SN=VAS_SN )