add (ppa - pvg - ug - shp - stklim) inheritance (saleOrder stockMove Invoice(s))

This commit is contained in:
2023-01-16 12:53:03 +01:00
parent 1aaebb5d56
commit 039a38f0f7
10 changed files with 57 additions and 2 deletions

View File

@@ -1340,6 +1340,11 @@ public class StockMoveServiceImpl implements StockMoveService {
// Set quantity in new stock move line
newStockMoveLine = stockMoveLineRepo.copy(moveLine, false);
newStockMoveLine.setQty(moveLine.getQty());
newStockMoveLine.setUg(moveLine.getUg());
newStockMoveLine.setPpa(moveLine.getPpa());
newStockMoveLine.setPvg(moveLine.getPvg());
newStockMoveLine.setStklim(moveLine.getStklim());
newStockMoveLine.setShp(moveLine.getShp());
newStockMoveLine.setRealQty(moveLine.getQty());
newStockMoveLine.setProductTypeSelect(moveLine.getProductTypeSelect());
// add stock move line

View File

@@ -69,6 +69,12 @@
<enum name="natureOfTransaction" ref="com.axelor.apps.stock.db.NatureOfTransaction"/>
<many-to-one name="countryOfOrigin" ref="com.axelor.apps.base.db.Country"/>
<decimal name="ppa" title="PPA" precision="20" scale="10"/>
<decimal name="pvg" title="PVG" precision="20" scale="10"/>
<decimal name="ug" title="UG" precision="20" scale="10"/>
<decimal name="stklim" title="Stklim" precision="20" scale="10" />
<decimal name="shp" title="SHP" precision="20" scale="10" />
<extra-code><![CDATA[
// CONFORMITY SELECT
public static final int CONFORMITY_NONE = 1;