完成进销存单据的账户余额的自动计算功能
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -306,6 +306,7 @@
|
||||
<!-- spring整合struts2需要默认为request或者 prototype,不能是单例 -->
|
||||
<bean id="accountAction" class="com.jsh.action.basic.AccountAction" scope="prototype">
|
||||
<property name="accountService" ref="accountService"/>
|
||||
<property name="depotHeadService" ref="depotHeadService"/>
|
||||
<property name="logService" ref="logService"/>
|
||||
</bean>
|
||||
<!--结算账户配置结束 -->
|
||||
|
||||
@@ -740,12 +740,19 @@
|
||||
else
|
||||
{
|
||||
var OrganId = null, AllocationProjectId = null;
|
||||
var ChangeAmount = $.trim($("#ChangeAmount").val());
|
||||
var TotalPrice = $("#depotHeadFM .datagrid-footer [field='AllPrice'] div").text();
|
||||
if(listSubType !=="调拨"){
|
||||
OrganId = $('#OrganId').combobox('getValue');
|
||||
}
|
||||
else {
|
||||
AllocationProjectId = $.trim($("#AllocationProjectId").val()); //收货仓库-对方
|
||||
}
|
||||
if(listSubType === "采购"||listSubType === "销售退货"){
|
||||
//付款为负数
|
||||
ChangeAmount = 0 - ChangeAmount;
|
||||
TotalPrice = 0 - TotalPrice;
|
||||
}
|
||||
$.ajax({
|
||||
type:"post",
|
||||
url: url,
|
||||
@@ -761,8 +768,8 @@
|
||||
OrganId: OrganId,
|
||||
HandsPersonId: $.trim($("#HandsPersonId").val()),
|
||||
AccountId: $.trim($("#AccountId").val()),
|
||||
ChangeAmount: $.trim($("#ChangeAmount").val()),
|
||||
TotalPrice: $("#depotHeadFM .datagrid-footer [field='AllPrice'] div").text(),
|
||||
ChangeAmount: ChangeAmount, //付款/收款
|
||||
TotalPrice: TotalPrice, //合计
|
||||
Remark: $.trim($("#Remark").val()),
|
||||
clientIp: clientIp
|
||||
}),
|
||||
|
||||
@@ -323,8 +323,8 @@
|
||||
{ title: '最低售价',field: 'LowPrice',width:70},
|
||||
{ title: '预设售价一',field: 'PresetPriceOne',width:70},
|
||||
{ title: '预设售价二',field: 'PresetPriceTwo',width:70},
|
||||
{ title: '备注',field: 'Remark',width:110},
|
||||
{ title: '操作',field: 'op',align:"center",width:120,formatter:function(value,rec)
|
||||
{ title: '备注',field: 'Remark',width:90},
|
||||
{ title: '操作',field: 'op',align:"center",width:150,formatter:function(value,rec)
|
||||
{
|
||||
var str = '';
|
||||
var rowInfo = rec.Id + 'AaBb' + rec.Name+ 'AaBb' + rec.Model + 'AaBb' + rec.Color + 'AaBb' + rec.Unit + 'AaBb' + rec.RetailPrice + 'AaBb' + rec.LowPrice + 'AaBb' + rec.PresetPriceOne + 'AaBb' + rec.PresetPriceTwo + 'AaBb' + rec.Remark;
|
||||
|
||||
Reference in New Issue
Block a user