每两周自动生成发票的解决方案是什么?克朗乔布斯?
我在 tbl_order 表中有多个订单,我想每 2 周生成一张发票(用于计费)。
- tbl_order table
OrderID (PK)
ShopID (FK)
CustomerID (FK)
Status
Total
OrderDate
- invoice table
InvoiceID (PK)
InvoiceDate
InvoiceStatus
- invoiceorder
invoiceorderID (PK)
InvoiceID (FK)
OrderID (FK)
2 月的发票日期为:2 月 1 日至 15 日、2 月 16 日至 28 日
3 月:3 月 1 日至 15 日、3 月 16 日至 31 日
例如,在 3 月 1 日至 15 日之间生成发票tbl_order.ShopID = 5
如果使用 Cron Jobs / PHP 或替代解决方案,如何做到这一点?