Get CBPartner by TaxID

Description

Obtain a C_BPartner by TaxId

Environment

None

Attachments

4
  • 01 Aug 2019, 05:06 AM
  • 01 Aug 2019, 05:04 AM
  • 01 Aug 2019, 05:03 AM
  • 09 Jul 2019, 08:22 PM

Activity

Show:

Orlando Curieles August 1, 2019 at 5:06 AM

Mr. follow your suggestions, please check the new path.

 

Best regards,

 

 

Carlos Ruiz July 12, 2019 at 9:55 AM

Thanks ,

Some suggestions:

1 - is kind of a generic convention here that ctx is the first parameter, and usually the trxName is the last parameter, so I think is better if you follow the convention.

2 - no need to reference I_C_BPartner because the Table_Name constant is available directly

3 - in parameters you’re setting TaxID.trim() - doesn’t sound like a good practice as the taxID could potentially have spaces at the end, better to control that on input that on a getter

4 - firstOnly is assuming that taxID is unique - I think that cannot be assumed as there can be implementations allowing duplicates there - better to use the first() method and maybe name the method getFirstWithTaxID

5 - in many classes we don’t follow strictly java conventions, but anyways usually variables don’t start with uppercase - so instead of TaxID would be better taxID

Regards,

Carlos Ruiz

 

Fixed

Details

Assignee

Reporter

Tested By

Orlando Curieles

Fix versions

Affects versions

Priority

Created July 9, 2019 at 8:22 PM
Updated October 1, 2019 at 2:21 PM
Resolved August 1, 2019 at 5:47 PM