Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Realno case-a, koito se smenq e samo za SUMMARY_KM_FORMULA = 1, za 2 si e syshtoto. Vij starata implementaciq i novite promeni i kaji.
- int decodePassengerHpFormula1 = getHpDriverWithPKm().intValue() == 0 ? getHpPrivateKm().intValue() + getHpPassengerKm().intValue() + getHpDriverAloneKm().intValue() : 0;
- int decodePassengerPhFormula1 = getPhDriverWithPKm().intValue() == 0 ? getPhPrivateKm().intValue() + getPhPassengerKm().intValue() + getPhDriverAloneKm().intValue() : 0;
- int decodeDriverHpFormula1 = getHpDriverWithPKm().intValue() == 0 ? 0 : getHpPrivateKm().intValue() + getHpPassengerKm().intValue() + getHpDriverWithPKm().intValue();
- int decodeDriverPhFormula1 = getPhDriverWithPKm().intValue() == 0 ? 0 : getPhPrivateKm().intValue() + getPhPassengerKm().intValue() + getPhDriverWithPKm().intValue();
- setTotPassengerKm(decodePassengerHpFormula1 + decodePassengerPhFormula1);
- setTotDriverWithPKm(decodeDriverHpFormula1 + decodeDriverPhFormula1);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement