Fix tara pedana nulla in Bottom Sheet Fragment
This commit is contained in:
parent
3ebdc72642
commit
64fcb7ccc8
@ -44,7 +44,7 @@ public class BottomSheetFragmentLUContentViewModel {
|
||||
if (collo == null) return;
|
||||
|
||||
ObservableMtbTcol tipoPedana = collo.getMtbTCol();
|
||||
BigDecimal taraPedana = tipoPedana != null ? tipoPedana.getTaraKg() : BigDecimal.ZERO;
|
||||
BigDecimal taraPedana = tipoPedana != null && tipoPedana.getTaraKg() != null ? tipoPedana.getTaraKg() : BigDecimal.ZERO;
|
||||
BigDecimal pesoNetto = BigDecimal.ZERO;
|
||||
|
||||
for (MtbColr mtbColr : collo.getMtbColr()) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user