When we try to quick ship entire order from the Order Manager, the following
error is thrown (in some cases, specifically when we have added a telecom number
for the customer
This was broken by OFBIZ-11462
Thanks: Priya Sharma
The sendFrom emailAddress had the unnecessary comma prefix. The sendTo emailAddress list was a list of lists instead of list of strings.
Also affected sendOrderDeliveryScheduleNotification minilang service. <string-append> tag was used with comma prefix for sendFrom emailAddress, since the sender would only be one used <set> tag without any prefix instead.
sendTo field was wrongly being fetched from PartyAndContactMech view to get emailAddress, replaced it with the correct entity field infoString.
Thanks: Jacques for input.
Sometimes use wrong type castings for BigDecimal:
I have observed that for typecasting in groovy, we have used the wrong coding
pattern like
(BigDecimal) 0
It should be like
0 as BigDecimal
Note that this does not apply to decimal because in case of decimal, the default
type is always BigDecimal in Groovy.
Thanks: Pritam Kute for spotting the issue in OFBIZ-11843
In PR#150 Pierre Smits suggested to move this new Groovy files updir:
"There is no need to have subfolders defining where the services belong to when
such is already captured in the name of the file, e.g.:
folder /shipment/receipt/ when the filename has ShipmentReceiptServices.groovy
Similarly
/shipment/issuance/ when the filename has ShipmentIssuanceServices.groovy"
* Improved: Convert ShipmentReceiptServices.xml mini lang to groovy
(OFBIZ-11468)
Also converted getTotalIssuedQuantityForOrderItem in IssuanceServices, because it is used in ShipmentReceiptServices and needed more return values.
* split to long lines
Co-authored-by: Wiebke Pätzold <Wiebke.Paetzold@ecomify.de>
(OFBIZ-11591)
Side effect: Inventory Issuance use generic shipment service to control the authorization
but without a shipment, checkCanChangeShipmentStatusGeneral failed with NPE.
I complete the function to escape if a shipment isn't present and only valid with facility permission
* Improved: Make shipment services loosely coupled with work-effort generation.
(OFBIZ-11678)
Removed workeffort generation related code in separate service, in createShipment and updateShipment service. In this effort, createShipment has been successfully changed to entity-auto as well.
Thanks: Pierre Smits and Arun Patidar for discussion and review.
(OFBIZ-11182)
The entity PicklistStatusHistory record each status change realized on picklist.
It can't be convert to entity-auto easily because PicklistStatusHistory's fields pattern
doesn't follow same entities like ShipmentStatus and PartyStatus.
To solve this issue, I deprecate PicklistStatusHistory and move it to OldPicklistStatusHistory
and replace it by new entity PicklistStatus that can use natively with entityauto.
I added a new migration service migrateOldPicklistStatusHistoryToPickListStatus to forward all
picklist status history to new entity.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1866558 13f79535-47bb-0310-9956-ffa450edef68