BrightSide Workbench Full Report + Source Code
org.turro.erp.purchase.ReceiptItemComparator Class Reference
Inheritance diagram for org.turro.erp.purchase.ReceiptItemComparator:
Collaboration diagram for org.turro.erp.purchase.ReceiptItemComparator:

Public Member Functions

int compare (ReceiptItem o1, ReceiptItem o2)
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 29 of file ReceiptItemComparator.java.

Member Function Documentation

◆ compare()

int org.turro.erp.purchase.ReceiptItemComparator.compare ( ReceiptItem  o1,
ReceiptItem  o2 
)

Definition at line 32 of file ReceiptItemComparator.java.

32  {
33  int result = CompareUtil.compare(o1.getProviderId(), o2.getProviderId());
34  if(result == 0) {
35  result = CompareUtil.compare(o1.getDocumentDate(), o2.getDocumentDate());
36  }
37  if(result == 0) {
38  result = CompareUtil.compare(o1.getDocumentNumber(), o2.getDocumentNumber());
39  }
40  return result;
41  }
Here is the call graph for this function:

The documentation for this class was generated from the following file: