Plose date, etc.

This commit is contained in:
2025-11-20 13:50:00 +01:00
parent c1c1bf413f
commit e13dcd095e
4 changed files with 248 additions and 40 deletions

View File

@@ -346,6 +346,24 @@ Public Class cPLOSE_Inv_Data
End Function
Public Shared Function setBackToCustomer(SQL As SQL, backToCustomer As Boolean, ab As Date, customerNo As Integer) As Boolean
Return SQL.doSQL("update tblPLOSE_Inv_Data set plInv_InvToCustomer = " & IIf(backToCustomer, "1", "NULL") & " where cast(plInv_SupplierRechnungsDatum as Date) >= '" & ab.ToShortDateString & "' AND plInv_PLOSEKundennummer = '" & customerNo & "'", "FMZOLL")
End Function
Public Shared Function setBackToCustomerCustomerID(SQL As SQL, backToCustomer As Boolean, customerNo As String) As Boolean
Return SQL.doSQL("update tblPLOSE_Inv_Data set plInv_InvToCustomer = " & IIf(backToCustomer, "1", "NULL") & " where plInv_InvToCustomer Is null AND plInv_PLOSEKundennummer = '" & customerNo & "'", "FMZOLL")
End Function
Public Shared Function setBackToCustomerInvoiceID(SQL As SQL, backToCustomer As Boolean, Optional invoiceID As String = "") As Boolean
Return SQL.doSQL("update tblPLOSE_Inv_Data set plInv_InvToCustomer = " & IIf(backToCustomer, "1", "0") & " where plInv_InvToCustomer Is null " & IIf(invoiceID <> "", "AND plInv_Id = '" & invoiceID & "'", " ") & "", "FMZOLL")
End Function
Public Shared Function setWahrunginIvoiceFromTransactions(jahr As Integer, Optional message As Boolean = False, Optional kdNr As Integer = -1) As Boolean