Re: svn commit: r1818005 [1/3] - in /ofbiz: ofbiz-framework/trunk/applications/accounting/src/main/java/org/apache/ofbiz/accounting/invoice/ ofbiz-framework/trunk/applications/accounting/src/main/java/org/apache/ofbiz/accounting/payment/ ofbiz-framework/tr...

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: svn commit: r1818005 [1/3] - in /ofbiz: ofbiz-framework/trunk/applications/accounting/src/main/java/org/apache/ofbiz/accounting/invoice/ ofbiz-framework/trunk/applications/accounting/src/main/java/org/apache/ofbiz/accounting/payment/ ofbiz-framework/tr...

Nicolas Malin-2


Le 13/12/2017 à 13:43, [hidden email] a écrit :
> @@ -2157,7 +2157,7 @@ public class InvoiceServices {
>                       return ServiceUtil.returnError(ServiceUtil.getErrorMessage(serviceResults));
>                   }
>                   if (Debug.verboseOn()) {
> -                    Debug.logVerbose("Creating Invoice Item with amount " + returnPrice + " and quantity " + quantity
> +                    if (Debug.verboseOn()) Debug.logVerbose("Creating Invoice Item with amount " + returnPrice + " and quantity " + quantity
>                               + " for shipment [" + item.getString("shipmentId") + ":" + item.getString("shipmentItemSeqId") + "]", module);
>                   }
Jacques, maybe you failed your replaceAll because you have a double
check sometime ^^

Nicolas
Reply | Threaded
Open this post in threaded view
|

Re: svn commit: r1818005 [1/3] - in /ofbiz: ofbiz-framework/trunk/applications/accounting/src/main/java/org/apache/ofbi z/accounting/invoice/ ofbiz-framework/trunk/applications/accounting/src/main/java/org/apache/ofbi z/accounting/payment/ ofbiz-framework/tr...

Jacques Le Roux
Administrator
Thanks Nicolas,

My fast review was not enough, I'll fix that :)

Jacques


Le 13/12/2017 à 13:46, Nicolas Malin a écrit :

>
>
> Le 13/12/2017 à 13:43, [hidden email] a écrit :
>> @@ -2157,7 +2157,7 @@ public class InvoiceServices {
>>                       return ServiceUtil.returnError(ServiceUtil.getErrorMessage(serviceResults));
>>                   }
>>                   if (Debug.verboseOn()) {
>> -                    Debug.logVerbose("Creating Invoice Item with amount " + returnPrice + " and quantity " + quantity
>> +                    if (Debug.verboseOn()) Debug.logVerbose("Creating Invoice Item with amount " + returnPrice + " and quantity " + quantity
>>                               + " for shipment [" + item.getString("shipmentId") + ":" + item.getString("shipmentItemSeqId") + "]", module);
>>                   }
> Jacques, maybe you failed your replaceAll because you have a double check sometime ^^
>
> Nicolas
>

Reply | Threaded
Open this post in threaded view
|

Re: svn commit: r1818005 [1/3] - in /ofbiz: ofbiz-framework/trunk/applications/accounting/src/main/java/org/apache/ofbi z/accounting/invoice/ ofbiz-framework/trunk/applications/accounting/src/main/java/org/apache/ofbi z/accounting/payment/ ofbiz-framework/tr...

taher
There is a reason why we had this "mass-update" topic many times in
multiple threads. Seeking out patterns of code all over the code base might
be dangerous. And that is why I always recommend refactoring by focusing
very intensely on a specific piece of code with very careful attention to
the context surrounding that code.

My recommendation makes coding slower, but it makes things cleaner and
safer.

On Dec 13, 2017 4:02 PM, "Jacques Le Roux" <[hidden email]>
wrote:

> Thanks Nicolas,
>
> My fast review was not enough, I'll fix that :)
>
> Jacques
>
>
> Le 13/12/2017 à 13:46, Nicolas Malin a écrit :
>
>>
>>
>> Le 13/12/2017 à 13:43, [hidden email] a écrit :
>>
>>> @@ -2157,7 +2157,7 @@ public class InvoiceServices {
>>>                       return ServiceUtil.returnError(Servic
>>> eUtil.getErrorMessage(serviceResults));
>>>                   }
>>>                   if (Debug.verboseOn()) {
>>> -                    Debug.logVerbose("Creating Invoice Item with amount
>>> " + returnPrice + " and quantity " + quantity
>>> +                    if (Debug.verboseOn()) Debug.logVerbose("Creating
>>> Invoice Item with amount " + returnPrice + " and quantity " + quantity
>>>                               + " for shipment [" +
>>> item.getString("shipmentId") + ":" + item.getString("shipmentItemSeqId")
>>> + "]", module);
>>>                   }
>>>
>> Jacques, maybe you failed your replaceAll because you have a double check
>> sometime ^^
>>
>> Nicolas
>>
>>
>