Merge branch 'master' of https://verag.visualstudio.com/SDL/_git/SDL
This commit is contained in:
@@ -252,7 +252,7 @@ Public Class cFakturierung
|
||||
|
||||
End Function
|
||||
|
||||
Shared Sub setGesamtBetraege(ByRef RECHNUNG As VERAG_PROG_ALLGEMEIN.cRechnungsausgang, Optional Steuersatz_Proz As Object = Nothing)
|
||||
Shared Sub setGesamtBetraege(ByRef RECHNUNG As VERAG_PROG_ALLGEMEIN.cRechnungsausgang, Optional Steuersatz_Proz As Object = Nothing, Optional useNettogesatbetrag As Boolean = False)
|
||||
Dim steuerPflichtigerBetrag As Double = 0
|
||||
Dim steuerFreierBetrag As Double = 0
|
||||
Dim Abfertigungskosten As Double = 0
|
||||
@@ -287,7 +287,7 @@ Public Class cFakturierung
|
||||
Dim steuerBetrag As Double = 0
|
||||
If RECHNUNG.Steuersatz_Proz <> 0 Then
|
||||
steuerBetrag = steuerPflichtigerBetrag * RECHNUNG.Steuersatz_Proz
|
||||
RECHNUNG.SteuerpflichtigerGesamtbetrag = steuerPflichtigerBetrag + steuerBetrag
|
||||
RECHNUNG.SteuerpflichtigerGesamtbetrag = steuerPflichtigerBetrag + IIf(Not useNettogesatbetrag, steuerBetrag, 0) '+ steuerBetrag
|
||||
RECHNUNG.SteuerfreierGesamtbetrag = steuerFreierBetrag
|
||||
Else
|
||||
RECHNUNG.SteuerpflichtigerGesamtbetrag = 0
|
||||
@@ -1759,7 +1759,7 @@ Public Class cFakturierung
|
||||
Return getSignature(RECHNUNG.RechnungsLandKz, RECHNUNG.Firma_ID)
|
||||
End Function
|
||||
|
||||
Shared Function getSignature(Optional landKz = "", Optional firma = -1, Optional individuell = False, Optional displayFirmenmane = True, Optional special = "", Optional additionalLine = "") As String
|
||||
Shared Function getSignature(Optional landKz = "", Optional firma = -1, Optional individuell = False, Optional displayFirmenmane = True, Optional special = "", Optional additionalLine = "", Optional departmentmailadress = True) As String
|
||||
getSignature = ""
|
||||
|
||||
firma = getFirmaNr(firma)
|
||||
@@ -1804,8 +1804,8 @@ Public Class cFakturierung
|
||||
getSignature &= "<div style=""font-size:12px"">A 4975 Suben, Autobahngrenze 15 <br><b>T</b> +43 7711 31630 | <b>F</b> +43 7711 31630-1 | <b>@</b> " & If(individuell, emailindividuell, "info@imex-group.at") & " | www.imex-group.at | FN 410356s</div>"
|
||||
If additionalLine <> "" Then getSignature &= vbNewLine & additionalLine & vbNewLine
|
||||
Case 24 'AMBAR
|
||||
Dim defaultMail = getDefaultMail("AMBAR")
|
||||
getSignature &= "<img width=""250"" height=""70"" src=""" & imgsrc & "ambar_simple.png""/>"
|
||||
Dim defaultMail = getDefaultMail("AMBAR", departmentmailadress)
|
||||
getSignature &= "<img width=""250"" height=""70"" src=""" & imgsrc & "ambar_boarder.png""/>"
|
||||
If displayFirmenmane Then getSignature &= "<br><b>AMBAR Logistic Services GmbH</b><br>"
|
||||
getSignature &= "<div style=""font-size:12px"">D 83435 Bad Reichenhall, Reichenhallerstrasse 62<br><b>T</b> +49 8651 99624911 | <b>F</b> +49 8651 9962493 | <b>@</b> " & If(individuell, emailindividuell, defaultMail) & " | www.ambarlog.com | DE309105428</div>"
|
||||
If additionalLine <> "" Then getSignature &= vbNewLine & additionalLine & vbNewLine
|
||||
@@ -1877,15 +1877,17 @@ Public Class cFakturierung
|
||||
End Select
|
||||
End Function
|
||||
|
||||
Shared Function getDefaultMail(firma)
|
||||
Shared Function getDefaultMail(firma, Optional useDepartmentmailadress = True) As String
|
||||
Dim defaultMail = ""
|
||||
Select Case firma
|
||||
Case "AMBAR"
|
||||
defaultMail = "import@ambarlog.de"
|
||||
If VERAG_PROG_ALLGEMEIN.cAllgemein.ABTEILUNG = "BH" Then defaultMail = "buchhaltung@ambarlog.de"
|
||||
If VERAG_PROG_ALLGEMEIN.cAllgemein.ABTEILUNG = "EXPORT" Then defaultMail = "office@ambarlog.de"
|
||||
|
||||
If useDepartmentmailadress Then
|
||||
If VERAG_PROG_ALLGEMEIN.cAllgemein.ABTEILUNG = "BH" Then defaultMail = "buchhaltung@ambarlog.de"
|
||||
If VERAG_PROG_ALLGEMEIN.cAllgemein.ABTEILUNG = "EXPORT" Then defaultMail = "office@ambarlog.de"
|
||||
End If
|
||||
End Select
|
||||
Return defaultMail
|
||||
End Function
|
||||
|
||||
Shared Function Abrechnugsdaten_AKTUALISIEREN(ByRef RECHNUNG As VERAG_PROG_ALLGEMEIN.cRechnungsausgang, Optional RechnungsDatum As Object = Nothing) As Boolean
|
||||
|
||||
Reference in New Issue
Block a user