diff --git a/master/bt5/vifib_upgrader/ExtensionTemplateItem/VifibUpgrader.py b/master/bt5/vifib_upgrader/ExtensionTemplateItem/VifibUpgrader.py index 1342afeb95c81f4e5764f0e97a6de4670e714212..5158503396148e7312e48c03a6775166b76764c6 100644 --- a/master/bt5/vifib_upgrader/ExtensionTemplateItem/VifibUpgrader.py +++ b/master/bt5/vifib_upgrader/ExtensionTemplateItem/VifibUpgrader.py @@ -40,6 +40,7 @@ def OpenSaleOrderLine_migrate(self): self.setSource('organisation_module/vifib_internet') self.setDestination(self.getParentValue().getDestinationSection()) self.setDestinationSection(self.getParentValue().getDestinationSection()) + self.setDestinationDecision(self.getParentValue().getDestinationDecision()) self.setPriceCurrency('currency_module/EUR') @WorkflowMethod.disable diff --git a/master/bt5/vifib_upgrader/SkinTemplateItem/portal_skins/vifib_upgrader/SaleOrderLine_setPriceToZeroAndOrUpdateAppliedRule.xml b/master/bt5/vifib_upgrader/SkinTemplateItem/portal_skins/vifib_upgrader/SaleOrderLine_setPriceToZeroAndOrUpdateAppliedRule.xml index c0721914b3e8ee053262d9c4607566fbc34f5a53..59b5bcbce3da5455a25e4eb3c4457be77cf448d3 100644 --- a/master/bt5/vifib_upgrader/SkinTemplateItem/portal_skins/vifib_upgrader/SaleOrderLine_setPriceToZeroAndOrUpdateAppliedRule.xml +++ b/master/bt5/vifib_upgrader/SkinTemplateItem/portal_skins/vifib_upgrader/SaleOrderLine_setPriceToZeroAndOrUpdateAppliedRule.xml @@ -59,6 +59,8 @@ sale_order = context.getParentValue()\n specialise = sale_order.getSpecialise()\n if common_specialise != specialise:\n sale_order.setSpecialise(common_specialise)\n +if sale_order.getDestinationDecision() != sale_order.getDestinationSection():\n + sale_order.setDestinationDecision(sale_order.getDestinationSection())\n price_currency = \'currency_module/EUR\'\n if sale_order.getPriceCurrency() != price_currency:\n sale_order.setPriceCurrency(price_currency)\n diff --git a/master/bt5/vifib_upgrader/SkinTemplateItem/portal_skins/vifib_upgrader/SalePackingList_setArrow.xml b/master/bt5/vifib_upgrader/SkinTemplateItem/portal_skins/vifib_upgrader/SalePackingList_setArrow.xml index 7024f3a70a001832a94aca6e97d02851383f088a..c903474e755ee1c7bd2a103ba7f0505ddf72d0ad 100644 --- a/master/bt5/vifib_upgrader/SkinTemplateItem/portal_skins/vifib_upgrader/SalePackingList_setArrow.xml +++ b/master/bt5/vifib_upgrader/SkinTemplateItem/portal_skins/vifib_upgrader/SalePackingList_setArrow.xml @@ -72,6 +72,8 @@ context.setSource(sale_order.getSource())\n context.setDestination(sale_order.getDestination())\n context.setSourceSection(sale_order.getSourceSection())\n context.setDestinationSection(sale_order.getDestinationSection())\n +context.setSourceDecision(sale_order.getSourceDecision())\n +context.setDestinationDecision(sale_order.getDestinationDecision())\n </string> </value> </item> <item> diff --git a/master/bt5/vifib_upgrader/bt/revision b/master/bt5/vifib_upgrader/bt/revision index 832332893ab752cd7a530a0d45c00fdf2f436453..3d9aebb2cce8cad52bcdc4d24760f88a683c1eed 100644 --- a/master/bt5/vifib_upgrader/bt/revision +++ b/master/bt5/vifib_upgrader/bt/revision @@ -1 +1 @@ -67 \ No newline at end of file +68 \ No newline at end of file