Forráskód Böngészése

商品档案添加毛利,成本,毛利率字段

hu 1 éve
szülő
commit
2b91c3788b

+ 4 - 0
src/custom/restcontroller/webmanage/sale/item/Item.java

@@ -195,6 +195,9 @@ public class Item extends Controller {
         //德莱宝,选项定义方案id
         sqlFactory.addParameter("materialschemeid", content.getBigDecimalValue("materialschemeid"));
 
+        sqlFactory.addParameter("cost", content.getBigDecimalValue("cost"));
+        sqlFactory.addParameter("grossprofit", content.getBigDecimalValue("grossprofit"));
+        sqlFactory.addParameter("grossprofitmargin", content.getBigDecimalValue("grossprofitmargin"));
         sqlList.add(sqlFactory.getSQL());
         // 货品档案扩展属性字段表
 
@@ -1320,6 +1323,7 @@ public class Item extends Controller {
                     sqlFactory.addParameter("iswuliao", 0);
                     // 是否服务物料
                     sqlFactory.addParameter("isservice", row.getString("isservice").equals("是") ? 1 : 0);
+
                     sqlList.add(sqlFactory.getSQL());
                     // 货品档案扩展属性字段表
 

+ 3 - 0
src/custom/restcontroller/webmanage/sale/item/SQL/货品档案列表.sql

@@ -37,6 +37,9 @@ SELECT t1.itemid,
        t1.iscustomsize,
        t1.customprice,
        t1.pricingmetod,
+       t1.cost,
+       t1.grossprofit,
+       t1.grossprofitmargin,
        t6.auxunitid,
        t6.unitgroupname,
        t7.unitname axunitname,

+ 2 - 2
src/custom/restcontroller/webmanage/sale/item/SQL/货品档案新增.sql

@@ -4,11 +4,11 @@ insert into plm_item (siteid, itemid, createby, createdate, changeuserid, change
                       weight, height, width, length, delivery, istool, marketprice, standards, stockstatus2,
                       stockstatus1, warrantyday, iswuliao, isservice, color, packageqty, ismodule, iswoodproducts,
                       sa_customschemeid, cheek, delistingstatus, financeclasstype, stockno, volume, marketingcategory,
-                      pricingmetod,cheekschemeid,colorschemeid,materialschemeid)
+                      pricingmetod,cheekschemeid,colorschemeid,materialschemeid,cost,grossprofit,grossprofitmargin)
 values ($siteid$, $itemid$, $username$, CURRENT_TIME, $userid$, $username$, CURRENT_TIME, $itemno$, $unitid$,
         $isauxunit$, $unitgroupid$, $itemname$, $isonsale$, '新建', $model$, $spec$, $orderminqty$, $orderaddqty$,
         $orderminqty_auxunit$, $orderaddqty_auxunit$, $remarks$, $barcode$, $skucontrol$, $batchcontrol$, $grossweight$,
         $weight$, $height$, $width$, $length$, $delivery$, $istool$, $marketprice$, $standards$,
         $stockstatus2$, $stockstatus1$, $warrantyday$, $iswuliao$, $isservice$, $color$, $packageqty$, $ismodule$,
         $iswoodproducts$, $sa_customschemeid$, $cheek$, $delistingstatus$, $financeclasstype$, $stockno$, $volume$,
-        $marketingcategory$, $pricingmetod$,$cheekschemeid$,$colorschemeid$,$materialschemeid$)
+        $marketingcategory$, $pricingmetod$,$cheekschemeid$,$colorschemeid$,$materialschemeid$,$cost,$grossprofit$,$grossprofitmargin$)

+ 4 - 1
src/custom/restcontroller/webmanage/sale/item/SQL/货品档案更新.sql

@@ -50,7 +50,10 @@ SET changeuserid=$userid$,
     pricingmetod=$pricingmetod$,
     cheekschemeid=$cheekschemeid$,
     colorschemeid=$colorschemeid$,
-    materialschemeid=$materialschemeid$
+    materialschemeid=$materialschemeid$,
+    cost=$cost$,
+    grossprofit=$grossprofit$,
+    grossprofitmargin=$grossprofitmargin$
 WHERE itemid = $itemid$
   and siteid = $siteid$