Ich hatte das Problem auch bei den Rechnungskorrekturen auch. Habe es jezt mit hilfe von KI so umgebaut (sihe unten) das JTL den Nettobetrag nimmt wenn keine MWSt. berechnte wird. Derzeit sieht es gut aus.
Bin leider auch kein Programierer.
Rechnungsbetrag:
LocCurrL$(
Round(
If(Vorgabe.MwStAusweisen,
Report.TotalGrossPrice * @Multiplier,
Report.TotalNetPrice * @Multiplier
),
2
),
@InvoiceCulture
)
Gesamtbetrag:
cond(@OneCurrency,
LocCurrL$(Round(If(Vorgabe.MwStAusweisen, Report.TotalGrossPrice * @Multiplier, Report.TotalNetPrice * @Multiplier), 2), @InvoiceCulture),
""
)
+
cond(@TwoCurrencies,
cond(Report.CurrencyISO <> Report.ShipFromCountryCurrencyISO,
LocCurrL$(Round(If(Vorgabe.MwStAusweisen, Report.TotalGrossPrice * @Multiplier, Report.TotalNetPrice * @Multiplier), 2), @InvoiceCulture)
+ " / " +
LocCurrL$(Round(If(Vorgabe.MwStAusweisen, Report.TotalGrossPrice * @Multiplier, Report.TotalNetPrice * @Multiplier) / Report.CurrencyFactor * Report.ShipFromCountryCurrencyFactor, 2), @ShipFromCountryCulture),
cond(Report.CurrencyISO <> Report.TaxCountryCurrencyISO,
LocCurrL$(Round(If(Vorgabe.MwStAusweisen, Report.TotalGrossPrice * @Multiplier, Report.TotalNetPrice * @Multiplier), 2), @InvoiceCulture)
+ " / " +
LocCurrL$(Round(If(Vorgabe.MwStAusweisen, Report.TotalGrossPrice * @Multiplier, Report.TotalNetPrice * @Multiplier) / Report.CurrencyFactor * Report.TaxCountryCurrencyFactor, 2), @TaxCountryCulture),
LocCurrL$(Round(If(Vorgabe.MwStAusweisen, Report.TotalGrossPrice * @Multiplier, Report.TotalNetPrice * @Multiplier) / Report.CurrencyFactor * Report.ShipFromCountryCurrencyFactor, 2), @ShipFromCountryCulture)
+ " / " +
LocCurrL$(Round(If(Vorgabe.MwStAusweisen, Report.TotalGrossPrice * @Multiplier, Report.TotalNetPrice * @Multiplier) / Report.CurrencyFactor * Report.TaxCountryCurrencyFactor, 2), @TaxCountryCulture)
)
),
""
)
+
cond(@ThreeCurrencies,
LocCurrL$(Round(If(Vorgabe.MwStAusweisen, Report.TotalGrossPrice * @Multiplier, Report.TotalNetPrice * @Multiplier), 2), @InvoiceCulture)
+ " / " +
LocCurrL$(Round(If(Vorgabe.MwStAusweisen, Report.TotalGrossPrice * @Multiplier, Report.TotalNetPrice * @Multiplier) / Report.CurrencyFactor * Report.ShipFromCountryCurrencyFactor, 2), @ShipFromCountryCulture)
+ " / " +
LocCurrL$(Round(If(Vorgabe.MwStAusweisen, Report.TotalGrossPrice * @Multiplier, Report.TotalNetPrice * @Multiplier) / Report.CurrencyFactor * Report.TaxCountryCurrencyFactor, 2), @TaxCountryCulture),
""
)