Advertisement
psi_mmobile

Untitled

Jul 25th, 2017
310
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.00 KB | None | 0 0
  1. //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.
  2.         int decodePassengerHpFormula1 = getHpDriverWithPKm().intValue() == 0 ? getHpPrivateKm().intValue() + getHpPassengerKm().intValue() + getHpDriverAloneKm().intValue() : 0;
  3.         int decodePassengerPhFormula1 = getPhDriverWithPKm().intValue() == 0 ? getPhPrivateKm().intValue() + getPhPassengerKm().intValue() + getPhDriverAloneKm().intValue() : 0;
  4.        
  5.         int decodeDriverHpFormula1 = getHpDriverWithPKm().intValue() == 0 ? 0 : getHpPrivateKm().intValue() + getHpPassengerKm().intValue() + getHpDriverWithPKm().intValue();
  6.         int decodeDriverPhFormula1 = getPhDriverWithPKm().intValue() == 0 ? 0 : getPhPrivateKm().intValue() + getPhPassengerKm().intValue() + getPhDriverWithPKm().intValue();
  7.  
  8.         setTotPassengerKm(decodePassengerHpFormula1 + decodePassengerPhFormula1);
  9.         setTotDriverWithPKm(decodeDriverHpFormula1 + decodeDriverPhFormula1);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement