WHMCS 自动取消到期产品账单

/ 0评 / 0

// /includes/hooks/Cancell_overdue_invoice.php
if (!defined("WHMCS"))
die("This file cannot be accessed directly");

function Cancell_overdue_invoice() {
full_query("UPDATE tblinvoices SET status = 'Cancelled' WHERE duedate <= date_sub(curdate(), INTERVAL 7 DAY) AND status = 'Unpaid';"); } add_hook("DailyCronJob",1,"Cancell_overdue_invoice"); ?>

 

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注