Kundenlogin, Fremdrechnungen, etc.

This commit is contained in:
2025-11-20 13:49:39 +01:00
parent a572b1f048
commit 9fca9ec35c
17 changed files with 2299 additions and 158 deletions

View File

@@ -46,6 +46,29 @@ Public Class cMSEAPI
End Function
Public Shared Function setBackToCustomer(SQL As SQL, backToCustomer As Boolean, ab As Date, customerNr As Integer) As Boolean
Return SQL.doSQL("update tblMSEInvoices set InvToCustomer = " & IIf(backToCustomer, "1", "NULL") & " where cast(invoice_date as Date) >= '" & ab.ToShortDateString & "' AND customer_number = '" & customerNr & "'", "FMZOLL")
End Function
Public Shared Function setBackToCustomerCustomerID(SQL As SQL, backToCustomer As Boolean, customerNr As String) As Boolean
Return SQL.doSQL("update tblMSEInvoices set InvToCustomer = " & IIf(backToCustomer, "1", "NULL") & " where InvToCustomer Is null AND customer_number = '" & customerNr & "'", "FMZOLL")
End Function
Public Shared Function setBackToCustomerInvoiceID(SQL As SQL, backToCustomer As Boolean, Optional invoiceID As String = "") As Boolean
Return SQL.doSQL("update tblMSEInvoices set InvToCustomer = " & IIf(backToCustomer, "1", "0") & " where InvToCustomer Is null " & IIf(invoiceID <> "", "AND invoice_id = '" & invoiceID & "'", " ") & "", "FMZOLL")
End Function
Public Function createJWT(ByRef failureText As String) As String
Try