Commit f28912ae authored by 1650842865's avatar 1650842865

工序外协报价增加包装费;工序外协打印预览调整;采购信息记录增加复制

parent ee4be431
...@@ -86,13 +86,7 @@ ...@@ -86,13 +86,7 @@
<x:title title="物品总体内容" name="group"/> <x:title title="物品总体内容" name="group"/>
<div class="hg-form-cols" id="totalContentDiv"> <div class="hg-form-cols" id="totalContentDiv">
<div class="hg-form-row"> <div class="hg-form-row">
<x:inputC name="genericName" label="通用品名" labelCol="1" fieldCol="2"/> <x:inputC name="genericName" label="通用品名" labelCol="1" fieldCol="5"/>
<%-- <c:if test="${kind=='product'}">--%>
<%-- <x:inputC name="applicableStandard" label="适用标准(国标)" labelCol="1" fieldCol="2"/>--%>
<%-- </c:if>--%>
<%-- <c:if test="${kind!='product'}">--%>
<%-- <x:inputC name="applicableStandard" label="适用行业标准" labelCol="1" fieldCol="2"/>--%>
<%-- </c:if>--%>
<x:inputC name="applicableStandard" label="适用行业标准" labelCol="1" fieldCol="2"/> <x:inputC name="applicableStandard" label="适用行业标准" labelCol="1" fieldCol="2"/>
<x:hidden name="baseUnit"/> <x:hidden name="baseUnit"/>
<x:inputC name="baseUnitName" label="基本计量单位" labelCol="1" fieldCol="2" readonly="true"/> <x:inputC name="baseUnitName" label="基本计量单位" labelCol="1" fieldCol="2" readonly="true"/>
...@@ -102,7 +96,7 @@ ...@@ -102,7 +96,7 @@
<x:inputC name="size" label="尺码" labelCol="1" fieldCol="2"/> <x:inputC name="size" label="尺码" labelCol="1" fieldCol="2"/>
<x:inputC name="brand" label="品牌" labelCol="1" fieldCol="2"/> <x:inputC name="brand" label="品牌" labelCol="1" fieldCol="2"/>
<x:selectC name="itemAttributes" label="物品属性" labelCol="1" fieldCol="2" dictionary="suppliesType"/> <x:selectC name="itemAttributes" label="物品属性" labelCol="1" fieldCol="2" dictionary="suppliesType"/>
<x:inputC name="materialUsage" label="用途" labelCol="1" fieldCol="8"/> <x:inputC name="materialUsage" label="用途" labelCol="1" fieldCol="5"/>
</div> </div>
<div class="hg-form-row"> <div class="hg-form-row">
...@@ -130,7 +124,7 @@ ...@@ -130,7 +124,7 @@
<x:hidden name="spart"/> <x:hidden name="spart"/>
<%--<x:selectC name="mtposMara" label="项目类别组" labelCol="1" fieldCol="2" dictionary="mtposMara"/>--%> <%--<x:selectC name="mtposMara" label="项目类别组" labelCol="1" fieldCol="2" dictionary="mtposMara"/>--%>
<x:hidden name="mtposMara"/> <x:hidden name="mtposMara"/>
<x:inputC name="maktx" label="汉语品名" required="true" labelCol="1" fieldCol="2"/> <x:inputC name="maktx" label="汉语品名" required="true" labelCol="1" fieldCol="5"/>
<x:hidden name="xchpf"/> <x:hidden name="xchpf"/>
<!--x:inputC name="magrv" label="包装物料组" labelCol="1" fieldCol="2"/--> <!--x:inputC name="magrv" label="包装物料组" labelCol="1" fieldCol="2"/-->
...@@ -151,7 +145,7 @@ ...@@ -151,7 +145,7 @@
<x:hidden name="gewei" /> <x:hidden name="gewei" />
<%-- <x:inputC name="volum" label="体积" labelCol="1" fieldCol="2"/>--%> <%-- <x:inputC name="volum" label="体积" labelCol="1" fieldCol="2"/>--%>
<%-- <x:selectC name="voleh" label="体积单位" labelCol="1" fieldCol="2" dictionary="voleh"/>--%> <%-- <x:selectC name="voleh" label="体积单位" labelCol="1" fieldCol="2" dictionary="voleh"/>--%>
<!--x:inputC name="iprkz" label="有效时间标识" labelCol="1" fieldCol="2"/--> <%--<x:inputC name="iprkz" label="有效时间标识" labelCol="1" fieldCol="2"/>--%>
<x:hidden name="iprkz"/> <x:hidden name="iprkz"/>
<%--<x:selectC name="iprkz" label="有效时间标识" required="false" labelCol="1" fieldCol="2" dictionary="iprkz"/>--%> <%--<x:selectC name="iprkz" label="有效时间标识" required="false" labelCol="1" fieldCol="2" dictionary="iprkz"/>--%>
<x:inputC name="mhdhb" label="总有效期" labelCol="1" fieldCol="2"/> <x:inputC name="mhdhb" label="总有效期" labelCol="1" fieldCol="2"/>
......
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
<x:title title="物品总体内容" name="group"/> <x:title title="物品总体内容" name="group"/>
<div class="hg-form-cols" id="totalContentDiv"> <div class="hg-form-cols" id="totalContentDiv">
<div class="hg-form-row"> <div class="hg-form-row">
<x:inputC name="genericName" label="通用品名" labelCol="1" fieldCol="2"/> <x:inputC name="genericName" label="通用品名" labelCol="1" fieldCol="5"/>
<%-- <c:if test="${kind=='product'}">--%> <%-- <c:if test="${kind=='product'}">--%>
<%-- <x:inputC name="applicableStandard" label="适用标准(国标)" labelCol="1" fieldCol="2"/>--%> <%-- <x:inputC name="applicableStandard" label="适用标准(国标)" labelCol="1" fieldCol="2"/>--%>
<%-- </c:if>--%> <%-- </c:if>--%>
...@@ -100,7 +100,7 @@ ...@@ -100,7 +100,7 @@
<x:inputC name="size" label="尺码" labelCol="1" fieldCol="2"/> <x:inputC name="size" label="尺码" labelCol="1" fieldCol="2"/>
<x:inputC name="brand" label="品牌" labelCol="1" fieldCol="2"/> <x:inputC name="brand" label="品牌" labelCol="1" fieldCol="2"/>
<x:selectC name="itemAttributes" label="物品属性" labelCol="1" fieldCol="2" dictionary="suppliesType"/> <x:selectC name="itemAttributes" label="物品属性" labelCol="1" fieldCol="2" dictionary="suppliesType"/>
<x:inputC name="materialUsage" label="用途" labelCol="1" fieldCol="8"/> <x:inputC name="materialUsage" label="用途" labelCol="1" fieldCol="5"/>
</div> </div>
<div class="hg-form-row"> <div class="hg-form-row">
...@@ -123,7 +123,7 @@ ...@@ -123,7 +123,7 @@
<x:inputC name="spartName" label="产品组" required="true" labelCol="1" fieldCol="2" wrapper="select"/> <x:inputC name="spartName" label="产品组" required="true" labelCol="1" fieldCol="2" wrapper="select"/>
<x:hidden name="spart"/> <x:hidden name="spart"/>
<x:selectC name="mtposMara" label="项目类别组" labelCol="1" fieldCol="2" dictionary="mtposMara"/> <x:selectC name="mtposMara" label="项目类别组" labelCol="1" fieldCol="2" dictionary="mtposMara"/>
<x:inputC name="maktx" label="汉语品名" required="true" labelCol="1" fieldCol="2"/> <x:inputC name="maktx" label="汉语品名" required="true" labelCol="1" fieldCol="5"/>
<x:selectC name="xchpf" label="批次管理" labelCol="1" fieldCol="2" dictionary="xchpf" required="true"/> <x:selectC name="xchpf" label="批次管理" labelCol="1" fieldCol="2" dictionary="xchpf" required="true"/>
<!--x:inputC name="magrv" label="包装物料组" labelCol="1" fieldCol="2"/--> <!--x:inputC name="magrv" label="包装物料组" labelCol="1" fieldCol="2"/-->
......
...@@ -312,6 +312,7 @@ function loadClickItemGrid() { ...@@ -312,6 +312,7 @@ function loadClickItemGrid() {
{display: "含税单价", name: "unitPrice", width: 100, minWidth: 60, type: "String", align: "left"}, {display: "含税单价", name: "unitPrice", width: 100, minWidth: 60, type: "String", align: "left"},
{display: "不含税单价", name: "excludeTaxPrice", width: 100, minWidth: 60, type: "String", align: "left"}, {display: "不含税单价", name: "excludeTaxPrice", width: 100, minWidth: 60, type: "String", align: "left"},
{display: "运输费", name: "freight", width: 100, minWidth: 60, type: "String", align: "left"}, {display: "运输费", name: "freight", width: 100, minWidth: 60, type: "String", align: "left"},
{display: "包装费", name: "packMoney", width: 100, minWidth: 60, type: "String", align: "left"},
{display: "最低消费", name: "minimum", width: 100, minWidth: 60, type: "String", align: "left"}, {display: "最低消费", name: "minimum", width: 100, minWidth: 60, type: "String", align: "left"},
{display: "loss数", name: "lossNumber", width: 100, minWidth: 60, type: "String", align: "left"}, {display: "loss数", name: "lossNumber", width: 100, minWidth: 60, type: "String", align: "left"},
], ],
......
...@@ -208,6 +208,8 @@ function showItemNumber(row,panel){ ...@@ -208,6 +208,8 @@ function showItemNumber(row,panel){
{display: "备注", name: "remark", width: 200, minWidth: 60, type: "String", align: "left"}, {display: "备注", name: "remark", width: 200, minWidth: 60, type: "String", align: "left"},
{display: "含税单价", name: "unitPrice", width: 100, minWidth: 60, type: "String", align: "left"}, {display: "含税单价", name: "unitPrice", width: 100, minWidth: 60, type: "String", align: "left"},
{display: " 不含税单价", name: "excludeTaxPrice", width: 100, minWidth: 60, type: "String", align: "left"}, {display: " 不含税单价", name: "excludeTaxPrice", width: 100, minWidth: 60, type: "String", align: "left"},
{display: "运输费", name: "freight", width: 100, minWidth: 60, type: "String", align: "left",},
{display: "包装费", name: "packMoney", width: 100, minWidth: 60, type: "String", align: "left",},
{display: "最低消费", name: "minimum", width: 100, minWidth: 60, type: "String", align: "left"}, {display: "最低消费", name: "minimum", width: 100, minWidth: 60, type: "String", align: "left"},
{display: "loss数", name: "lossNumber", width: 100, minWidth: 60, type: "String", align: "left"}, {display: "loss数", name: "lossNumber", width: 100, minWidth: 60, type: "String", align: "left"},
], ],
......
...@@ -72,6 +72,12 @@ function loadItemNumberGrid() { ...@@ -72,6 +72,12 @@ function loadItemNumberGrid() {
required: false, type: "text",mask: '9999999.999' required: false, type: "text",mask: '9999999.999'
} }
}, },
{
display: "包装费", name: "packMoney", width: 100, minWidth: 60, type: "String", align: "left",
editor: {
required: false, type: "text",mask: '9999999.999'
}
},
{ {
display: "最低消费", name: "minimum", width: 100, minWidth: 60, type: "String", align: "left", display: "最低消费", name: "minimum", width: 100, minWidth: 60, type: "String", align: "left",
editor: { editor: {
......
...@@ -52,6 +52,18 @@ function initItemGrid() { ...@@ -52,6 +52,18 @@ function initItemGrid() {
} }
}); });
}, },
copyHandler: {
id: 'copyHandler', text: '复制', img: 'fa-copy', click: function () {
var row = itemGridManager.getSelectedRow();
if (!row) {
Public.tip("请勾选一条数据");
return;
}
var newRow = JSON.parse(JSON.stringify(row));
newRow.id = null;
UICtrl.addGridRow(itemGridManager, newRow);
}
}
}); });
itemGridManager = UICtrl.grid('#maingrid', { itemGridManager = UICtrl.grid('#maingrid', {
columns: getGridColumns(), columns: getGridColumns(),
......
...@@ -96,22 +96,22 @@ ...@@ -96,22 +96,22 @@
</table> </table>
<table cellspacing="0px" cellpadding="0px" class="tableBorder"> <table cellspacing="0px" cellpadding="0px" class="tableBorder">
<colgroup> <colgroup>
<col width='10%'/>
<col width='15%'/>
<col width='10%'/>
<col width='30%'/>
<col width='10%'/>
<col width='8%'/> <col width='8%'/>
<col width='10%'/> <col width='10%'/>
<col width='8%'/> <col width='8%'/>
<col width='6%'/> <col width='33%'/>
<col width='8%'/>
<col width='8%'/>
<col width='8%'/>
<col width='8%'/>
<col width='4%'/>
<col width='5%'/> <col width='5%'/>
</colgroup> </colgroup>
<tr> <tr>
<td class="center">产品编码</td> <td class="center">产品编码</td>
<td class="center">${matnr2?default("")?html}</td> <td class="center">${matnr2?default("")?html}</td>
<td class="center">产品名称</td> <td class="center">产品名称</td>
<td class="center">${maktx?default("")?html}</td> <td class="left">${maktx?default("")?html}</td>
<td class="center">成品数量</td> <td class="center">成品数量</td>
<td class="center">${number?default("")?html}</td> <td class="center">${number?default("")?html}</td>
<td class="center">LOSS数</td> <td class="center">LOSS数</td>
...@@ -122,17 +122,17 @@ ...@@ -122,17 +122,17 @@
</table> </table>
<table cellspacing="0px" cellpadding="0px" class="tableBorder"> <table cellspacing="0px" cellpadding="0px" class="tableBorder">
<colgroup> <colgroup>
<col width='8%'/>
<col width='10%'/> <col width='10%'/>
<col width='8%'/>
<col width='15%'/> <col width='15%'/>
<col width='10%'/>
<col width='10%'/>
<col width='10%'/>
<col width='10%'/>
<col width='10%'/>
<col width='8%'/> <col width='8%'/>
<col width='10%'/> <col width='10%'/>
<col width='8%'/> <col width='8%'/>
<col width='6%'/> <col width='8%'/>
<col width='8%'/>
<col width='8%'/>
<col width='4%'/>
<col width='5%'/> <col width='5%'/>
</colgroup> </colgroup>
<tr> <tr>
...@@ -152,24 +152,24 @@ ...@@ -152,24 +152,24 @@
</table> </table>
<table cellspacing="0px" cellpadding="0px" class="tableBorder"> <table cellspacing="0px" cellpadding="0px" class="tableBorder">
<colgroup> <colgroup>
<col width='10%'/> <col width='8%'/>
<col width='35%'/> <col width='33%'/>
<col width='10%'/>
<col width='10%'/>
<col width='10%'/>
<col width='8%'/> <col width='8%'/>
<col width='10%'/> <col width='10%'/>
<col width='8%'/> <col width='8%'/>
<col width='6%'/> <col width='8%'/>
<col width='8%'/>
<col width='8%'/>
<col width='4%'/>
<col width='5%'/> <col width='5%'/>
</colgroup> </colgroup>
<tr> <tr>
<td class="center">外发工序</td> <td class="center">外发工序</td>
<td class="center">${outProcess01?default("")?html}</td> <td class="left">${outProcess01?default("")?html}</td>
<td class="center">下道工序</td> <td class="center">下道工序</td>
<td class="center">${outProcess02?default("")?html}</td> <td class="center">${outProcess02?default("")?html}</td>
<td class="center">应回厂数量</td> <td class="center">应回厂数量</td>
<td class="center">${number?default("")?html}</td> <td class="center">${backNumber?default("")?html}</td>
<td class="center">实际送货数量</td> <td class="center">实际送货数量</td>
<td class="center">${realNumber?default("")?html}</td> <td class="center">${realNumber?default("")?html}</td>
<td class="center">单位</td> <td class="center">单位</td>
...@@ -178,8 +178,34 @@ ...@@ -178,8 +178,34 @@
</table> </table>
<table cellspacing="0px" cellpadding="0px" class="tableBorder"> <table cellspacing="0px" cellpadding="0px" class="tableBorder">
<colgroup> <colgroup>
<col width='8%'/>
<col width='10%'/>
<col width='8%'/>
<col width='6%'/>
<col width='9%'/> <col width='9%'/>
<col width='91%'/> <col width='8%'/>
<col width='10%'/>
<col width='8%'/>
<col width='8%'/>
<col width='25%'/>
</colgroup>
<tr>
<td class="center">单价</td>
<td class="center">${netpr?default("")?html}</td>
<td class="center">运输费用</td>
<td class="center">${kbetr2?default("")?html}</td>
<td class="center">包装费用</td>
<td class="center">${kbetr3?default("")?html}</td>
<td class="center">合计单价</td>
<td class="center">${priceAmount?default("")?html}</td>
<td class="center">总额</td>
<td class="center">${amount?default("")?html}</td>
</tr>
</table>
<table cellspacing="0px" cellpadding="0px" class="tableBorder">
<colgroup>
<col width='8%'/>
<col width='92%'/>
</colgroup> </colgroup>
<tr> <tr>
<td class="center">生产制程</td> <td class="center">生产制程</td>
...@@ -188,8 +214,8 @@ ...@@ -188,8 +214,8 @@
</table> </table>
<table cellspacing="0px" cellpadding="0px" class="tableBorder"> <table cellspacing="0px" cellpadding="0px" class="tableBorder">
<colgroup> <colgroup>
<col width='9%'/> <col width='8%'/>
<col width="91%"/> <col width="92%"/>
</colgroup> </colgroup>
<tr> <tr>
<td class="center">备注</td> <td class="center">备注</td>
...@@ -199,77 +225,24 @@ ...@@ -199,77 +225,24 @@
<table cellspacing="0px" cellpadding="0px" class="tableBorder"> <table cellspacing="0px" cellpadding="0px" class="tableBorder">
<colgroup> <colgroup>
<col width='20%' /> <col width='20%' />
<col width='20%' />
<col width='20%' />
</colgroup> </colgroup>
<tr> <tr>
<td class="center" >生产单号</td> <td class="center" >生产单号</td>
<td class="center" >指令号</td>
<td class="center" >订单数</td>
</tr> </tr>
<#if saleOrderVos?? && saleOrderVos?size gt 0> <#if saleOrderVos?? && saleOrderVos?size gt 0>
<#list saleOrderVos as detail> <#list saleOrderVos as detail>
<tr> <tr>
<td class="center">${detail.vbeln?default("")?html}</td> <td class="center">${detail.vbeln?default("")?html}</td>
<td class="center">${detail.zinstnum?default("")?html}</td>
<td class="center">${detail.kwmeng?default("")?html}</td>
</tr> </tr>
</#list> </#list>
<#else> <#else>
<tr> <tr>
<td class="center">&nbsp;</td> <td class="center">&nbsp;</td>
<td class="center">&nbsp;</td>
<td class="center">&nbsp;</td>
</tr> </tr>
</#if> </#if>
</table> </table>
<#--<table cellspacing="0px" cellpadding="0px" class="tableBorder">-->
<#-- <colgroup>-->
<#-- <col width='9%'/>-->
<#-- <col width='91%'/>-->
<#-- </colgroup>-->
<#-- <tr>-->
<#-- <td class="center">加工费用(不含税)</td>-->
<#-- <td class="left">${used?default("")?html}</td>-->
<#-- </tr>-->
<#--</table>-->
<table cellspacing="0px" cellpadding="0px" class="tableBorder">
<colgroup>
<col width='10%'/>
<col width='10%'/>
<col width='10%'/>
<col width='10%'/>
<col width='10%'/>
<col width='10%'/>
<col width='10%'/>
<col width='10%'/>
<col width='10%'/>
<col width='10%'/>
</colgroup>
<tr>
<td class="center">单价</td>
<td class="center">${netpr?default("")?html}</td>
<td class="center">运输费用</td>
<td class="center">${kbetr2?default("")?html}</td>
<td class="center">包装费用</td>
<td class="center">${kbetr3?default("")?html}</td>
<td class="center">合计单价</td>
<td class="center">${priceAmount?default("")?html}</td>
<td class="center">总额</td>
<td class="center">${amount?default("")?html}</td>
</tr>
</table>
<#--<table cellspacing="0px" cellpadding="0px" class="tableBorder">-->
<#-- <colgroup>-->
<#-- <col width='9%'/>-->
<#-- <col width='91%'/>-->
<#-- </colgroup>-->
<#-- <tr>-->
<#-- <td class="center">生产单号</td>-->
<#-- <td class="left">${used?default("")?html}</td>-->
<#-- </tr>-->
<#--</table>-->
<table cellspacing="0px" cellpadding="0px" class="tableBorder"> <table cellspacing="0px" cellpadding="0px" class="tableBorder">
<colgroup> <colgroup>
<col width='33%'/> <col width='33%'/>
......
...@@ -77,4 +77,10 @@ public class ProcessQuotedPriceItemNumber extends AbstractEntity { ...@@ -77,4 +77,10 @@ public class ProcessQuotedPriceItemNumber extends AbstractEntity {
@Column(name = "loss_number") @Column(name = "loss_number")
private BigDecimal lossNumber; private BigDecimal lossNumber;
/**
* 包装费
*/
@Column(name = "pack_money")
private BigDecimal packMoney;
} }
...@@ -456,10 +456,13 @@ public class SapPurchaseOrderApplicationImpl extends FlowBroker implements SapPu ...@@ -456,10 +456,13 @@ public class SapPurchaseOrderApplicationImpl extends FlowBroker implements SapPu
//获取产品信息 //获取产品信息
map = this.getProductInfo(map); map = this.getProductInfo(map);
//成品外购
map.put("page","/print/topsun/productProcessOuter.ftl");
//订单类型是ZNB3时对应工序外发(临时工序外协) //订单类型是ZNB3时对应工序外发(临时工序外协)
if ("ZNB3".equals(sapPurchaseOrder.getBsart())){ if ("ZNB3".equals(sapPurchaseOrder.getBsart())){
map = this.getProcessOutInfo(map); map = this.getProcessOutInfo(map);
//工序外协
map.put("page","/print/topsun/processOuter.ftl");
} }
return map; return map;
} }
...@@ -509,6 +512,7 @@ public class SapPurchaseOrderApplicationImpl extends FlowBroker implements SapPu ...@@ -509,6 +512,7 @@ public class SapPurchaseOrderApplicationImpl extends FlowBroker implements SapPu
public Map<String, Object> getSaleOrderInfo(Map<String, Object> map,String orderId){ public Map<String, Object> getSaleOrderInfo(Map<String, Object> map,String orderId){
List<SapPurchaseOrderItem> purchaseOrderItems = this.sapPurchaseOrderItemApplication.getPurchaseOrderItems(orderId); List<SapPurchaseOrderItem> purchaseOrderItems = this.sapPurchaseOrderItemApplication.getPurchaseOrderItems(orderId);
SapPurchaseOrderItem purchaseOrderItem = purchaseOrderItems.get(0); SapPurchaseOrderItem purchaseOrderItem = purchaseOrderItems.get(0);
purchaseOrderItem.setMatnr2(purchaseOrderItem.getMatnr2().replaceFirst("^0*", ""));
BeanUtil.beanToMap(purchaseOrderItem,map,false,false); BeanUtil.beanToMap(purchaseOrderItem,map,false,false);
// map.put("eindt",purchaseOrderItem.getEindt());//交货日期 // map.put("eindt",purchaseOrderItem.getEindt());//交货日期
// map.put("lgobe",purchaseOrderItem.getLgobe());//仓库 // map.put("lgobe",purchaseOrderItem.getLgobe());//仓库
...@@ -530,6 +534,7 @@ public class SapPurchaseOrderApplicationImpl extends FlowBroker implements SapPu ...@@ -530,6 +534,7 @@ public class SapPurchaseOrderApplicationImpl extends FlowBroker implements SapPu
zero = zero.add(saleOrderVo.getKwmeng()); zero = zero.add(saleOrderVo.getKwmeng());
} }
map.put("number",zero); map.put("number",zero);
map.put("backNumber",zero);
map.put("saleOrderVos",saleOrderVos); map.put("saleOrderVos",saleOrderVos);
//计算总额 = (含税单价+运输费)* 成品数量 //计算总额 = (含税单价+运输费)* 成品数量
BigDecimal netpr = purchaseOrderItem.getNetpr();//含税单价 BigDecimal netpr = purchaseOrderItem.getNetpr();//含税单价
...@@ -592,6 +597,10 @@ public class SapPurchaseOrderApplicationImpl extends FlowBroker implements SapPu ...@@ -592,6 +597,10 @@ public class SapPurchaseOrderApplicationImpl extends FlowBroker implements SapPu
printNumber = new BigDecimal(l); printNumber = new BigDecimal(l);
} }
map.put("printNumber",printNumber); map.put("printNumber",printNumber);
if (printNumber.compareTo(BigDecimal.ZERO) > 0){
//有成品数量+排版数量的时候,应回厂数量=印张量
map.put("backNumber",printNumber);
}
//LOSS数 = 印张LOSS * 排版数量 //LOSS数 = 印张LOSS * 排版数量
BigDecimal loss = printLoss.multiply(model); BigDecimal loss = printLoss.multiply(model);
...@@ -612,8 +621,14 @@ public class SapPurchaseOrderApplicationImpl extends FlowBroker implements SapPu ...@@ -612,8 +621,14 @@ public class SapPurchaseOrderApplicationImpl extends FlowBroker implements SapPu
ProcessQuotedPriceItemNumber quotedPriceItemNumber = processQuotedPriceItemApplication.findQuotedPriceByProductAndProcess(outsourceOrderItem.getProductCode(), outsourceOrderItem.getWempf(), outsourceOrderItem.getMenge(), outsourceOrderItem.getLifnr()); ProcessQuotedPriceItemNumber quotedPriceItemNumber = processQuotedPriceItemApplication.findQuotedPriceByProductAndProcess(outsourceOrderItem.getProductCode(), outsourceOrderItem.getWempf(), outsourceOrderItem.getMenge(), outsourceOrderItem.getLifnr());
map.put("netpr",quotedPriceItemNumber.getUnitPrice());//含税单价 map.put("netpr",quotedPriceItemNumber.getUnitPrice());//含税单价
map.put("kbetr2",quotedPriceItemNumber.getFreight());//运输费 map.put("kbetr2",quotedPriceItemNumber.getFreight());//运输费
map.put("kbetr3","");//包装费 map.put("kbetr3",quotedPriceItemNumber.getPackMoney());//包装费
BigDecimal priceAmount = quotedPriceItemNumber.getUnitPrice().add(quotedPriceItemNumber.getFreight()); BigDecimal priceAmount = quotedPriceItemNumber.getUnitPrice();
if (quotedPriceItemNumber.getFreight() != null){
priceAmount = priceAmount.add(quotedPriceItemNumber.getFreight());
}
if (quotedPriceItemNumber.getPackMoney() != null){
priceAmount = priceAmount.add(quotedPriceItemNumber.getPackMoney());
}
map.put("priceAmount",priceAmount);//合计单价 map.put("priceAmount",priceAmount);//合计单价
map.put("amount",priceAmount.multiply(number));//总价 map.put("amount",priceAmount.multiply(number));//总价
return map; return map;
......
...@@ -105,7 +105,7 @@ public class SapPurchaseOrderController extends CommonController { ...@@ -105,7 +105,7 @@ public class SapPurchaseOrderController extends CommonController {
SDO sdo = this.getSDO(); SDO sdo = this.getSDO();
String id = sdo.getId(); String id = sdo.getId();
Map<String,Object> map = this.sapPurchaseOrderApplication.print(id); Map<String,Object> map = this.sapPurchaseOrderApplication.print(id);
String pintPage = String.format("/print/topsun/processOuter.ftl"); String pintPage = String.format((String) map.get("page"));
return outputAndProcUnitHandlerPDF(pintPage, id, map); return outputAndProcUnitHandlerPDF(pintPage, id, map);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment