IDEMPIERE-2589 Generate PO From Sales Order function and deliveryviarule field inconsistencies / based on patch provided by Redhuan (red1)

This commit is contained in:
Carlos Ruiz 2015-04-21 15:57:46 -05:00
parent 934dc5ca03
commit 2159c78d5d
1 changed files with 4 additions and 3 deletions

View File

@ -283,13 +283,14 @@ public class OrderPOCreate extends SvrProcess
if ( p_IsDropShip ) if ( p_IsDropShip )
{ {
po.setIsDropShip(p_IsDropShip); po.setIsDropShip(p_IsDropShip);
po.setDeliveryViaRule(so.getDeliveryViaRule());
po.setM_Shipper_ID(so.getM_Shipper_ID());
if (so.isDropShip() && so.getDropShip_BPartner_ID() != 0 ) { if (so.isDropShip() && so.getDropShip_BPartner_ID() != 0 ) {
po.setDropShip_BPartner_ID(so.getDropShip_BPartner_ID()); po.setDropShip_BPartner_ID(so.getDropShip_BPartner_ID());
po.setDropShip_Location_ID(so.getDropShip_Location_ID()); po.setDropShip_Location_ID(so.getDropShip_Location_ID());
po.setDropShip_User_ID(so.getDropShip_User_ID()); po.setDropShip_User_ID(so.getDropShip_User_ID());
} } else {
else {
po.setDropShip_BPartner_ID(so.getC_BPartner_ID()); po.setDropShip_BPartner_ID(so.getC_BPartner_ID());
po.setDropShip_Location_ID(so.getC_BPartner_Location_ID()); po.setDropShip_Location_ID(so.getC_BPartner_Location_ID());
po.setDropShip_User_ID(so.getAD_User_ID()); po.setDropShip_User_ID(so.getAD_User_ID());