add (ppa - pvg - ug - shp - stklim) inheritance (saleOrder stockMove Invoice(s))
This commit is contained in:
@@ -455,6 +455,11 @@ public class StockMoveInvoiceServiceImpl implements StockMoveInvoiceService {
|
||||
for (InvoiceLine invoiceLine : invoiceLines) {
|
||||
invoiceLine.setStockMoveLine(stockMoveLine);
|
||||
invoiceLine.setTrackingNumber(stockMoveLine.getTrackingNumber());
|
||||
invoiceLine.setPvg(stockMoveLine.getPvg());
|
||||
invoiceLine.setPpa(stockMoveLine.getPpa());
|
||||
invoiceLine.setUg(stockMoveLine.getUg());
|
||||
invoiceLine.setShp(stockMoveLine.getShp());
|
||||
invoiceLine.setStklim(stockMoveLine.getStklim());
|
||||
}
|
||||
return invoiceLines;
|
||||
}
|
||||
|
||||
@@ -121,6 +121,11 @@ public class StockMoveLineServiceSupplychainImpl extends StockMoveLineServiceImp
|
||||
stockMoveLine.setRequestedReservedQty(BigDecimal.ZERO);
|
||||
stockMoveLine.setSaleOrderLine(saleOrderLine);
|
||||
stockMoveLine.setPurchaseOrderLine(purchaseOrderLine);
|
||||
stockMoveLine.setShp(saleOrderLine.getShp());
|
||||
stockMoveLine.setPpa(saleOrderLine.getPpa());
|
||||
stockMoveLine.setPvg(saleOrderLine.getPvg());
|
||||
stockMoveLine.setStklim(saleOrderLine.getStklim());
|
||||
stockMoveLine.setUg(saleOrderLine.getUg());
|
||||
TrackingNumberConfiguration trackingNumberConfiguration =
|
||||
product.getTrackingNumberConfiguration();
|
||||
|
||||
|
||||
@@ -465,6 +465,11 @@ StockMoveLineRepository stockMoveLineRepo = Beans.get(StockMoveLineRepository.cl
|
||||
newStockMoveLine.setProductTypeSelect(moveLine.getProductTypeSelect());
|
||||
newStockMoveLine.setSaleOrderLine(moveLine.getSaleOrderLine());
|
||||
newStockMoveLine.setCompanyUnitPriceUntaxed(moveLine.getCompanyUnitPriceUntaxed());
|
||||
newStockMoveLine.setUg(moveLine.getUg());
|
||||
newStockMoveLine.setPpa(moveLine.getPpa());
|
||||
newStockMoveLine.setPvg(moveLine.getPvg());
|
||||
newStockMoveLine.setStklim(moveLine.getStklim());
|
||||
newStockMoveLine.setShp(moveLine.getShp());
|
||||
// add stock move line
|
||||
originalStockMove.addStockMoveLineListItem(newStockMoveLine);
|
||||
|
||||
|
||||
@@ -278,6 +278,11 @@ public abstract class InvoiceLineGeneratorSupplyChain extends InvoiceLineGenerat
|
||||
invoiceLine.setInTaxPrice(inTaxPrice);
|
||||
// sophal
|
||||
invoiceLine.setTrackingNumber(stockMoveLine.getTrackingNumber());
|
||||
invoiceLine.setPvg(stockMoveLine.getPvg());
|
||||
invoiceLine.setPpa(stockMoveLine.getPpa());
|
||||
invoiceLine.setUg(stockMoveLine.getUg());
|
||||
invoiceLine.setShp(stockMoveLine.getShp());
|
||||
invoiceLine.setStklim(stockMoveLine.getStklim());
|
||||
|
||||
analyticMoveLineList =
|
||||
invoiceLineService.getAndComputeAnalyticDistribution(invoiceLine, invoice);
|
||||
|
||||
Reference in New Issue
Block a user