Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1.  
  2. bool operator< ( const CInvoice & x ) const {
  3. if (this->m_buyer < x.Buyer()) {
  4. return false;
  5. }
  6. if (this->m_buyer > x.Buyer()) {
  7. return true;
  8. }
  9. if (this->m_seller < x.Seller()) {
  10. return false;
  11. }
  12. if (this->m_seller > x.Seller()) {
  13. return true;
  14. }if (this->m_date.Compare(x.Date()) > 0) {
  15. return false;
  16. }
  17. if (this->m_date.Compare(x.Date()) < 0) {
  18. return true;
  19. }
  20. if (this->m_amount != x.Amount()) {
  21. return this->m_amount < x.Amount();
  22. }
  23. if (this->m_vat != x.VAT()) {
  24. return this->m_vat < x.VAT();
  25. }
  26. return this->m_id < x.ID();
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement