Skip to content

Commit

Permalink
Added hint to use Outbound Delivery as a sale with a value of zero is…
Browse files Browse the repository at this point in the history
… not supported

Issue: #4401
Signed-off-by: mierin12 <[email protected]>
[slightly updated the translation; rebased to master]
Signed-off-by: Andreas Buchen <[email protected]>
  • Loading branch information
mierin12 authored and buchen committed Dec 20, 2024
1 parent 05f09c8 commit f5ae771
Show file tree
Hide file tree
Showing 17 changed files with 34 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1046,6 +1046,7 @@ public class Messages extends NLS
public static String MsgErrorTradeCollectionWithErrors;
public static String MsgErrorUpdating;
public static String MsgHintNoAttributesConfigured;
public static String MsgHintUseOutboundDeliveryForZeroTotal;
public static String MsgIncorrectConvertedSubTotal;
public static String MsgIncorrectSubTotal;
public static String MsgIncorrectTotal;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,9 @@ private IStatus calculateStatus()
if (t != total)
return ValidationStatus.error(MessageFormat.format(Messages.MsgIncorrectTotal, Values.Amount.format(t)));

if (total == 0L && type != PortfolioTransaction.Type.DELIVERY_OUTBOUND)
if (total == 0L && type == PortfolioTransaction.Type.SELL)
return ValidationStatus.error(Messages.MsgHintUseOutboundDeliveryForZeroTotal);
else if (total == 0L && type != PortfolioTransaction.Type.DELIVERY_OUTBOUND)
return ValidationStatus.error(MessageFormat.format(Messages.MsgDialogInputRequired, Messages.ColumnTotal));

return ValidationStatus.ok();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2084,6 +2084,8 @@ MsgErrorUpdating = Error on updating

MsgHintNoAttributesConfigured = No attributes of type ''{0}'' configured.\n<a href=''settings''>Configure now</a>

MsgHintUseOutboundDeliveryForZeroTotal = Note: Sales with a value of zero are not supported. Please create an outbound delivery transaction instead.

MsgIncorrectConvertedSubTotal = Converted sub-total is incorrect

MsgIncorrectSubTotal = Sub-total is incorrect
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2070,6 +2070,8 @@ MsgErrorTradeCollectionWithErrors = Chyba p\u0159i sb\u00EDr\u00E1n\u00ED obchod

MsgErrorUpdating = Chyba p\u0159i aktualizaci

MsgHintUseOutboundDeliveryForZeroTotal = Pozn\u00E1mka: Prodeje s nulovou hodnotou nejsou podporov\u00E1ny. M\u00EDsto toho vytvo\u0159te transakci dod\u00E1n\u00ED.

MsgIncorrectConvertedSubTotal = P\u0159eveden\u00FD mezisou\u010Det je nespr\u00E1vn\u00FD

MsgIncorrectSubTotal = Mezisou\u010Det je nespr\u00E1vn\u00FD
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2073,6 +2073,8 @@ MsgErrorUpdating = Fejl ved opdatering
MsgHintNoAttributesConfigured = Ingen attributter af typen ''{0}'' er konfigureret.\n<a href=''settings''>Konfigurer nu</a>
MsgHintUseOutboundDeliveryForZeroTotal = Bem\u00E6rk: Salg med en v\u00E6rdi p\u00E5 nul underst\u00F8ttes ikke. Opret venligst en leveringstransaktion i stedet.
MsgIncorrectConvertedSubTotal = Konverteret sub-total er ikke korrekt
MsgIncorrectSubTotal = Sub-total er ikke korrekt
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2077,6 +2077,8 @@ MsgErrorUpdating = Fehler beim Aktualisieren

MsgHintNoAttributesConfigured = Keine Attribute vom Typ ''{0}'' konfiguriert.\n<a href=''settings''>Jetzt konfigurieren</a>

MsgHintUseOutboundDeliveryForZeroTotal = Hinweis: Verk\u00E4ufe mit einem Wert von null werden nicht unterst\u00FCtzt. Bitte erstelle stattdessen eine Buchung vom Typ Auslieferung.

MsgIncorrectConvertedSubTotal = Umgerechnete Zwischensumme ist fehlerhaft

MsgIncorrectSubTotal = Zwischensumme ist fehlerhaft
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2073,6 +2073,8 @@ MsgErrorUpdating = Error en la actualizaci\u00F3n

MsgHintNoAttributesConfigured = No se han configurado propiedades de tipo \u201B{0}\u2019.\n<a href=''settings''>Configurar ahora</a>

MsgHintUseOutboundDeliveryForZeroTotal = Nota: No se admiten ventas con valor cero. En su lugar, crea una transacci\u00F3n de entrega.

MsgIncorrectConvertedSubTotal = Sub-total convertido es incorrecto

MsgIncorrectSubTotal = Subtotal es incorrecto
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2074,6 +2074,8 @@ MsgErrorUpdating = Erreur pendant la mise \u00E0 jour

MsgHintNoAttributesConfigured = Aucun attribut de type ''{0}'' configur\u00E9.\n<a href=''settings''>Configurer maintenant</a>

MsgHintUseOutboundDeliveryForZeroTotal = Remarque : les ventes avec une valeur de z\u00E9ro ne sont pas support\u00E9es. Merci de cr\u00E9er une transaction de livraison \u00E0 la place.

MsgIncorrectConvertedSubTotal = Le sous-total converti est incorrect

MsgIncorrectSubTotal = Sous-total incorrect
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2073,6 +2073,8 @@ MsgErrorUpdating = Errore durante l'aggiornamento

MsgHintNoAttributesConfigured = Nessun attributo di tipo ''{0}'' configurato.\n<a href=''settings''>Configura ora</a>

MsgHintUseOutboundDeliveryForZeroTotal = Nota: le vendite con valore zero non sono supportate. Crea invece una transazione di consegna.

MsgIncorrectConvertedSubTotal = Il sub-totale convertito \u00E8 errato

MsgIncorrectSubTotal = Il sub-totale \u00E8 errato
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2073,6 +2073,8 @@ MsgErrorUpdating = Fout bij bijwerken
MsgHintNoAttributesConfigured = Geen kenmerken van het type ''{0}'' geconfigureerd.\n<a href=''settings''>Nu configureren</a>
MsgHintUseOutboundDeliveryForZeroTotal = Opmerking: Verkopen met een waarde van nul worden niet ondersteund. Maak in plaats daarvan een leveringstransactie.
MsgIncorrectConvertedSubTotal = Geconverteerd subtotaal is incorrect
MsgIncorrectSubTotal = Subtotaal is onjuist
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2073,6 +2073,8 @@ MsgErrorUpdating = B\u0142\u0105d podczas aktualizacji
MsgHintNoAttributesConfigured = Nie skonfigurowano atrybut\u00F3w typu ''{0}''.\n<a href="settings">Skonfiguruj teraz</a>
MsgHintUseOutboundDeliveryForZeroTotal = Uwaga: Sprzeda\u017C z warto\u015Bci\u0105 zero nie jest obs\u0142ugiwana. Zamiast tego utw\u00F3rz transakcj\u0119 dostawy.
MsgIncorrectConvertedSubTotal = Przekonwertowana suma cz\u0119\u015Bciowa jest nieprawid\u0142owa
MsgIncorrectSubTotal = Suma cz\u0119\u015Bciowa jest nieprawid\u0142owa
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2071,6 +2071,8 @@ MsgErrorUpdating = Erro ao atualizar

MsgHintNoAttributesConfigured = Nenhum atributo do tipo ''{0}'' configurado.\n<a href=''settings''>Configure agora</a>

MsgHintUseOutboundDeliveryForZeroTotal = Nota: As vendas com um valor de zero n\u00E3o s\u00E3o suportadas. Em vez disso, cria uma transa\u00E7\u00E3o de entrega.

MsgIncorrectConvertedSubTotal = Subtotal convertido est\u00E1 incorreto

MsgIncorrectSubTotal = O subtotal est\u00E1 incorreto
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2073,6 +2073,8 @@ MsgErrorUpdating = Erro ao atualizar

MsgHintNoAttributesConfigured = Nenhum atributo do tipo ''{0}'' configurado.\n<a href=''settings''>Configure agora</a>

MsgHintUseOutboundDeliveryForZeroTotal = Observa\u00E7\u00E3o: N\u00E3o h\u00E1 suporte para vendas com valor zero. Em vez disso, crie uma transa\u00E7\u00E3o de entrega.

MsgIncorrectConvertedSubTotal = Subtotal convertido est\u00E1 incorreto

MsgIncorrectSubTotal = O subtotal est\u00E1 incorreto
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2071,6 +2071,8 @@ MsgErrorUpdating = \u041E\u0448\u0438\u0431\u043A\u0430 \u043F\u0440\u0438 \u043

MsgHintNoAttributesConfigured = \u0410\u0442\u0440\u0438\u0431\u0443\u0442\u044B \u0442\u0438\u043F\u0430 "{0}" \u043D\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043D\u044B.\n<a href=''settings''>\u041D\u0430\u0441\u0442\u0440\u043E\u0438\u0442\u044C \u0441\u0435\u0439\u0447\u0430\u0441</a>

MsgHintUseOutboundDeliveryForZeroTotal = \u041F\u0440\u0438\u043C\u0435\u0447\u0430\u043D\u0438\u0435: \u041F\u0440\u043E\u0434\u0430\u0436\u0438 \u0441 \u043D\u0443\u043B\u0435\u0432\u044B\u043C \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435\u043C \u043D\u0435 \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044E\u0442\u0441\u044F. \u0412\u043C\u0435\u0441\u0442\u043E \u044D\u0442\u043E\u0433\u043E \u0441\u043E\u0437\u0434\u0430\u0439 \u0442\u0440\u0430\u043D\u0437\u0430\u043A\u0446\u0438\u044E \u0434\u043E\u0441\u0442\u0430\u0432\u043A\u0438.

MsgIncorrectConvertedSubTotal = \u041A\u043E\u043D\u0432\u0435\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u043F\u0440\u043E\u043C\u0435\u0436\u0443\u0442\u043E\u0447\u043D\u044B\u0439 \u0438\u0442\u043E\u0433 \u043D\u0435\u0432\u0435\u0440\u0435\u043D

MsgIncorrectSubTotal = \u041F\u0440\u043E\u043C\u0435\u0436\u0443\u0442\u043E\u0447\u043D\u044B\u0439 \u0438\u0442\u043E\u0433 \u043D\u0435\u0432\u0435\u0440\u0435\u043D
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2073,6 +2073,8 @@ MsgErrorUpdating = Chyba pri aktualiz\u00E1cii
MsgHintNoAttributesConfigured = Nie s\u00FA nakonfigurovan\u00E9 \u017Eiadne atrib\u00FAty typu ''{0}''. \n<a href=''settings''>Konfigurova\u0165 teraz</a>
MsgHintUseOutboundDeliveryForZeroTotal = Pozn\u00E1mka: Predaje s nulovou hodnotou nie s\u00FA podporovan\u00E9. Namiesto toho vytvorte transakciu dodania.
MsgIncorrectConvertedSubTotal = Prepo\u010D\u00EDtan\u00FD medzis\u00FA\u010Det je nespr\u00E1vny
MsgIncorrectSubTotal = Medzis\u00FA\u010Det je nespr\u00E1vny
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2073,6 +2073,8 @@ MsgErrorUpdating = \u66F4\u65B0\u65F6\u51FA\u9519

MsgHintNoAttributesConfigured = \u672A\u8BBE\u7F6E\u5C5E\u6027 \u201C{0}\u201D\u3002\n<a href=''settings''>\u8BF7\u8BBE\u7F6E</a>

MsgHintUseOutboundDeliveryForZeroTotal = \u6CE8\u610F\uFF1A\u4E0D\u652F\u6301\u96F6\u9500\u552E\u989D\u3002\u8BF7\u6539\u4E3A\u521B\u5EFA\u4EA4\u8D27\u4EA4\u6613\u3002

MsgIncorrectConvertedSubTotal = \u8F6C\u6362\u540E\u7684\u5C0F\u8BA1\u9519\u8BEF

MsgIncorrectSubTotal = \u5C0F\u8BA1\u9519\u8BEF
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2073,6 +2073,8 @@ MsgErrorUpdating = \u66F4\u65B0\u932F\u8AA4
MsgHintNoAttributesConfigured = \u672A\u8A2D\u5B9A\u4EFB\u4F55\u300C{0}\u300D\u985E\u578B\u7684\u5C6C\u6027\u3002\n<a href=''settings''>\u7ACB\u5373\u8A2D\u5B9A</a>
MsgHintUseOutboundDeliveryForZeroTotal = \u6CE8\u610F\uFF1A\u4E0D\u652F\u63F4\u503C\u70BA\u96F6\u7684\u92B7\u552E\u3002\u8ACB\u5EFA\u7ACB\u4EA4\u8CA8\u4EA4\u6613\u3002
MsgIncorrectConvertedSubTotal = \u8F49\u63DB\u5F8C\u7684\u5C0F\u8A08\u4E0D\u6B63\u78BA
MsgIncorrectSubTotal = \u5C0F\u8A08\u4E0D\u6B63\u78BA
Expand Down

0 comments on commit f5ae771

Please sign in to comment.