|
@@ -155,3 +155,10 @@ func DeleteInvoicePaymentSummaryByRegisterId(registerId int) (err error) {
|
|
|
err = global.DEFAULT_MYSQL.Exec(sql, registerId).Error
|
|
|
return
|
|
|
}
|
|
|
+
|
|
|
+// DeleteInvoicePaymentSummaryByInvoiceIdAndPaymentId 根据开票到款ID删除汇总数据
|
|
|
+func DeleteInvoicePaymentSummaryByInvoiceIdAndPaymentId(invoiceId, arriveId, registerId int) (err error) {
|
|
|
+ sql := `DELETE FROM invoice_payment_summary WHERE invoice_id = ? AND payment_id = ? AND register_id = ?`
|
|
|
+ err = global.DEFAULT_MYSQL.Exec(sql, invoiceId, arriveId, registerId).Error
|
|
|
+ return
|
|
|
+}
|