Commit 81040d2a by 高晓磊

地磅销售记录 列表添加几个字段

parent 43c8d5f5
......@@ -119,6 +119,26 @@
</ref>
<description></description>
</field>
<field title='预付款余额'>
<name>advanceBalance</name>
<title>预付款余额</title>
<type>fixnum</type>
<ref>
<name></name>
<type></type>
</ref>
<desc></desc>
</field>
<field title='车牌号'>
<name>plateNumber</name>
<title>车牌号</title>
<type>string</type>
<ref>
<name></name>
<type></type>
</ref>
<desc>车牌号</desc>
</field>
<field title='修改人'>
<name>modifier.name</name>
<type>string</type>
......
......@@ -86,7 +86,7 @@ public class SalesRecordServiceImpl implements SalesRecordService {
KObject regionalCompany;
//获取区域公司
regionalCompany = station.get("regionalCompany");
salesRecordInfo.setDealAmount(salesRecordInfo.getGrossWeight().subtract(salesRecordInfo.getTareWeight()).doubleValue());
KObject salesRecord = salesRecordClass.newInstance();
salesRecord.set(SalesRecordConstant.ID, UUID.randomUUID());
salesRecord.set(SalesRecordConstant.CREATETIME, thentime);
......@@ -94,6 +94,7 @@ public class SalesRecordServiceImpl implements SalesRecordService {
salesRecord.set(SalesRecordConstant.DEALTIME, salesRecordInfo.getDealTime());
salesRecord.set(SalesRecordConstant.GROSS_WEIGHT, salesRecordInfo.getGrossWeight());
salesRecord.set(SalesRecordConstant.TARE_WEIGHT, salesRecordInfo.getTareWeight());
salesRecord.set(SalesRecordConstant.DEALAMOUNT, salesRecordInfo.getGrossWeight().subtract(salesRecordInfo.getTareWeight()));
salesRecord.set(SalesRecordConstant.GROSS_WEIGHT_TIME, salesRecordInfo.getGrossWeightTime());
salesRecord.set(SalesRecordConstant.TARE_WEIGHT_TIME, salesRecordInfo.getTareWeightTime());
salesRecord.set(SalesRecordConstant.GROSS_WEIGHT_PERSON, salesRecordInfo.getGrossWeightPerson());
......
......@@ -211,6 +211,16 @@
<type>fixnum</type>
<description></description>
</field>
<field title='毛重'>
<name>grossWeight</name>
<type>fixnum</type>
<description></description>
</field>
<field title='皮重'>
<name>tareWeight</name>
<type>fixnum</type>
<description></description>
</field>
<field title='单价'>
<name>price</name>
<type>fixnum</type>
......@@ -233,6 +243,39 @@
<description></description>
</field>
<field title='毛重司磅员'>
<name>grossWeightPerson</name>
<type>string</type>
<description></description>
</field>
<field title='皮重司磅员'>
<name>tareWeightPerson</name>
<type>string</type>
<description></description>
</field>
<field title='毛重时间'>
<name>grossWeightTime</name>
<type>datetime</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title='皮重时间'>
<name>tareWeightTime</name>
<type>datetime</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title='创建时间'>
<name>createTime</name>
<type>datetime</type>
......
......@@ -260,6 +260,36 @@
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>grossWeightPerson</m:name>
<m:title>毛重司磅员</m:title>
<m:type>string</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>tareWeightPerson</m:name>
<m:title>皮重司磅员</m:title>
<m:type>string</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>dealAmount</m:name>
<m:title>销售数量</m:title>
<m:type>fixnum</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>dealAmount</m:name>
<m:title>销售数量</m:title>
<m:type>fixnum</m:type>
......@@ -270,6 +300,26 @@
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>grossWeight</m:name>
<m:title>毛重</m:title>
<m:type>fixnum</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>tareWeight</m:name>
<m:title>皮重</m:title>
<m:type>fixnum</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>price</m:name>
<m:title>单价</m:title>
<m:type>fixnum</m:type>
......@@ -310,6 +360,26 @@
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>grossWeightTime</m:name>
<m:title>毛重时间</m:title>
<m:type>datetime</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>tareWeightTime</m:name>
<m:title>皮重时间</m:title>
<m:type>datetime</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>createTime</m:name>
<m:title>创建时间</m:title>
<m:type>datetime</m:type>
......
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