UID-Prüf typo, Fremdrechnugnen
This commit is contained in:
@@ -228,7 +228,7 @@ Public Class usrcntlFremdrechnungen
|
|||||||
|
|
||||||
'MSE
|
'MSE
|
||||||
Case "MSE" : SQL_STR = "SELECT " & IIf(cbxMax1000Eintrage.Checked, " top " & anzahlTop, "") &
|
Case "MSE" : SQL_STR = "SELECT " & IIf(cbxMax1000Eintrage.Checked, " top " & anzahlTop, "") &
|
||||||
" [invoice_date] as Rechnungsdatum, [invoice_id] as Rechnungsnummer/*,[invoice_nr]*/,[customer_number] as Kundennummer, daId, [total_amount_euro] as Brutto_EUR ,[total_vat_amount_euro] as MWST,[country] as Land, cast(case when [daId] is not null then 1 else 0 end as bit) as PDFvorhanden FROM tblMSEInvoices where customer_number in (select customer_id from tblMSECustomers where 1 = 1 " & IIf(kdNr > 0, " AND [partner_customer_number]=" & kdNr, "") & " and [invoice_date] " & setSQLWhere(SDLNrTmp, "country") & " ) order by invoice_date desc, invoice_id"
|
" partner_customer_number as AdressenNr, customer_name as [Name 1], [invoice_date] as Rechnungsdatum, [invoice_id] as Rechnungsnummer/*,[invoice_nr]*/,[customer_number] as Kundennummer, daId, [total_amount_euro] as Brutto_EUR ,[total_vat_amount_euro] as MWST,[country] as Land, cast(case when [daId] is not null then 1 else 0 end as bit) as PDFvorhanden FROM tblMSEInvoices inner join tblMSECustomers on customer_id = [customer_number] where 1 = 1 " & IIf(kdNr > 0, " AND [partner_customer_number]=" & kdNr, "") & " and [invoice_date] " & setSQLWhere(SDLNrTmp, "country") & " order by invoice_date desc, invoice_id"
|
||||||
|
|
||||||
'VERAG
|
'VERAG
|
||||||
Case "VERAG" : SQL_STR = "SELECT " & IIf(cbxMax1000Eintrage.Checked, " top " & anzahlTop, "") &
|
Case "VERAG" : SQL_STR = "SELECT " & IIf(cbxMax1000Eintrage.Checked, " top " & anzahlTop, "") &
|
||||||
|
|||||||
@@ -155,7 +155,7 @@ Public Class cUIDPruefung
|
|||||||
Select Case VERAG_PROG_ALLGEMEIN.cAllgemein.FIRMA
|
Select Case VERAG_PROG_ALLGEMEIN.cAllgemein.FIRMA
|
||||||
Case "AMBAR" : where = " And Filialen.FilialenNr IN (5701)"
|
Case "AMBAR" : where = " And Filialen.FilialenNr IN (5701)"
|
||||||
Case "IMEX" : where = " And Filialen.FilialenNr IN (5501)"
|
Case "IMEX" : where = " And Filialen.FilialenNr IN (5501)"
|
||||||
Case "ATILLA" : where = " And Filialen.FilialenNr IN (4801 )"
|
Case "ATILLA" : where = " And Filialen.FilialenNr IN (4801)"
|
||||||
Case "UNISPED" : where = " AND Filialen.firma='UNISPED' "
|
Case "UNISPED" : where = " AND Filialen.firma='UNISPED' "
|
||||||
Case Else : where = " AND Filialen.firma='VERAG' " '" And isnull(FilialenNr,'') Not IN (5501,5701)"
|
Case Else : where = " AND Filialen.firma='VERAG' " '" And isnull(FilialenNr,'') Not IN (5501,5701)"
|
||||||
End Select
|
End Select
|
||||||
|
|||||||
Reference in New Issue
Block a user