v3.1. Änderung Sichtbeleg Version 1 vor Abstimmung WISAG
This commit is contained in:
parent
9ae5465c48
commit
f7c0a29676
@ -30,5 +30,5 @@ Imports System.Runtime.InteropServices
|
|||||||
' Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern
|
' Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern
|
||||||
' übernehmen, indem Sie "*" eingeben:
|
' übernehmen, indem Sie "*" eingeben:
|
||||||
|
|
||||||
<Assembly: AssemblyVersion("3.0.3.0")>
|
<Assembly: AssemblyVersion("3.1.0.0")>
|
||||||
<Assembly: AssemblyFileVersion("3.0.3.0")>
|
<Assembly: AssemblyFileVersion("3.1.0.0")>
|
||||||
|
|||||||
@ -143,6 +143,8 @@ Public Class XRechnungViewDocument
|
|||||||
ElseIf oArea = "POSITION" Then
|
ElseIf oArea = "POSITION" Then
|
||||||
oAREACaption = "Positionen / Positions:"
|
oAREACaption = "Positionen / Positions:"
|
||||||
oIsPosition = True
|
oIsPosition = True
|
||||||
|
ElseIf oArea = "ALLOWANCE" Then
|
||||||
|
oAREACaption = "Zu- oder Abschlag/Surcharge or Discount:"
|
||||||
ElseIf oArea = "AMOUNT" Then
|
ElseIf oArea = "AMOUNT" Then
|
||||||
oAREACaption = "Beträge / Amounts:"
|
oAREACaption = "Beträge / Amounts:"
|
||||||
oCreateTextBox = True
|
oCreateTextBox = True
|
||||||
@ -310,10 +312,7 @@ Public Class XRechnungViewDocument
|
|||||||
ElseIf oItemSPECNAME = "INVOICE_POSITION_TAX_AMOUNT" Then
|
ElseIf oItemSPECNAME = "INVOICE_POSITION_TAX_AMOUNT" Then
|
||||||
'Tabellendarstellung
|
'Tabellendarstellung
|
||||||
Dim oYPos = yPosition - 3.5
|
Dim oYPos = yPosition - 3.5
|
||||||
Dim oBetrag As Decimal = oItemValue
|
Dim TAXTERM = FormatCurrency(oItemValue, oCurrencySymbol)
|
||||||
Dim oFormatiert As String = oBetrag.ToString("N2", New Globalization.CultureInfo("de-DE"))
|
|
||||||
|
|
||||||
Dim TAXTERM = $"{oFormatiert} {oCurrencySymbol}"
|
|
||||||
MyGDPicturePDF.DrawTextBox(fontResName, 177, oYPos, 198, YCoo_TextBoxPlus5(oYPos),
|
MyGDPicturePDF.DrawTextBox(fontResName, 177, oYPos, 198, YCoo_TextBoxPlus5(oYPos),
|
||||||
TextAlignment.TextAlignmentFar, TextAlignment.TextAlignmentNear,
|
TextAlignment.TextAlignmentFar, TextAlignment.TextAlignmentNear,
|
||||||
TAXTERM)
|
TAXTERM)
|
||||||
@ -332,10 +331,7 @@ Public Class XRechnungViewDocument
|
|||||||
oPosTerm = $"{oItemValue} %:"
|
oPosTerm = $"{oItemValue} %:"
|
||||||
oDisplay = False
|
oDisplay = False
|
||||||
ElseIf oItemSPECNAME = "INVOICE_TAXPOS_AMOUNT" Then
|
ElseIf oItemSPECNAME = "INVOICE_TAXPOS_AMOUNT" Then
|
||||||
Dim oBetrag As Decimal = oItemValue
|
oPosTerm += FormatCurrency(oItemValue, oCurrencySymbol)
|
||||||
Dim oFormatiert As String = oBetrag.ToString("N2", New Globalization.CultureInfo("de-DE"))
|
|
||||||
oFormatiert += $" {oCurrencySymbol}"
|
|
||||||
oPosTerm += $" {oFormatiert}"
|
|
||||||
oDisplay = False
|
oDisplay = False
|
||||||
ElseIf oItemSPECNAME = "INVOICE_TAXPOS_TYPE" Then
|
ElseIf oItemSPECNAME = "INVOICE_TAXPOS_TYPE" Then
|
||||||
oPosTerm += $" {oItemValue}"
|
oPosTerm += $" {oItemValue}"
|
||||||
@ -350,12 +346,12 @@ Public Class XRechnungViewDocument
|
|||||||
If Y_eq_lastrow = False And oAreaSwitch = False Then
|
If Y_eq_lastrow = False And oAreaSwitch = False Then
|
||||||
yPosition += 5
|
yPosition += 5
|
||||||
End If
|
End If
|
||||||
If oArea = "AMOUNT" Then
|
If oArea = "AMOUNT" Or oArea = "ALLOWANCE" Then
|
||||||
If oItemSPECNAME = "INVOICE_TOTAL_TAX" Or oItemSPECNAME = "INVOICE_TOTAL_NET" Or oItemSPECNAME = "INVOICE_TOTAL_GROSS" Then
|
|
||||||
Dim oBetrag As Decimal = oItemValue
|
Dim oCURRENCYFORMAT = {"INVOICE_TOTAL_TAX", "INVOICE_TOTAL_NET", "INVOICE_TOTAL_GROSS", "RECEIPT_ALLOWANCE_ACTUAL_AMOUNT",
|
||||||
Dim oFormatiert As String = oBetrag.ToString("N2", New Globalization.CultureInfo("de-DE"))
|
"RECEIPT_ALLOWANCE_CALCULATION_PERCENT"}
|
||||||
oFormatiert += $" {oCurrencySymbol}"
|
If oCURRENCYFORMAT.Contains(oItemSPECNAME) Then
|
||||||
oItemValue = oFormatiert
|
oItemValue = FormatCurrency(oItemValue, oCurrencySymbol)
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
@ -437,6 +433,16 @@ Public Class XRechnungViewDocument
|
|||||||
Return Nothing
|
Return Nothing
|
||||||
End Try
|
End Try
|
||||||
End Function
|
End Function
|
||||||
|
Private Function FormatCurrency(ByVal pValue As String, pCurrencySymbol As String) As String
|
||||||
|
pValue = pValue.replace(".", ",")
|
||||||
|
Dim oBetrag As Decimal = pValue
|
||||||
|
Dim oFormatiert As String = oBetrag.ToString("N2", New Globalization.CultureInfo("de-DE"))
|
||||||
|
oFormatiert = $"{oFormatiert} {pCurrencySymbol}"
|
||||||
|
Return oFormatiert
|
||||||
|
End Function
|
||||||
|
Private Function FormatStringT(ByVal text As String) As String
|
||||||
|
Return text.Replace(vbCr, " - ").Replace(vbLf, "").Replace(vbTab, " ")
|
||||||
|
End Function
|
||||||
Private Function RemoveNewlinesAndTabs(ByVal text As String) As String
|
Private Function RemoveNewlinesAndTabs(ByVal text As String) As String
|
||||||
Return text.Replace(vbCr, " - ").Replace(vbLf, "").Replace(vbTab, " ")
|
Return text.Replace(vbCr, " - ").Replace(vbLf, "").Replace(vbTab, " ")
|
||||||
End Function
|
End Function
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user