diff --git a/base/src/org/eevolution/model/MDDOrderLine.java b/base/src/org/eevolution/model/MDDOrderLine.java index 6c77f8f1f7..cd7d4f9cf7 100644 --- a/base/src/org/eevolution/model/MDDOrderLine.java +++ b/base/src/org/eevolution/model/MDDOrderLine.java @@ -663,6 +663,12 @@ public class MDDOrderLine extends X_DD_OrderLine return true; } // afterDelete - - + /** + * Quantity To Deliver + * @return Quantity To Deliver + */ + public BigDecimal getQtyToDeliver() + { + return getQtyOrdered().subtract(getQtyDelivered()); + } } // MDDOrderLine diff --git a/migration/354a-trunk/oracle/656_FR2928004_ShowQtyDeliver.sql b/migration/354a-trunk/oracle/656_FR2928004_ShowQtyDeliver.sql new file mode 100644 index 0000000000..8d1581e832 --- /dev/null +++ b/migration/354a-trunk/oracle/656_FR2928004_ShowQtyDeliver.sql @@ -0,0 +1,40 @@ +-- Jan 7, 2010 8:59:29 PM CST +-- Distribution Management +UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=54036 +; + +-- Jan 7, 2010 8:59:29 PM CST +-- Distribution Management +UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=54037 +; + +-- Jan 7, 2010 8:59:29 PM CST +-- Distribution Management +UPDATE AD_Field SET SeqNo=110,IsDisplayed='Y' WHERE AD_Field_ID=54038 +; + +-- Jan 7, 2010 8:59:29 PM CST +-- Distribution Management +UPDATE AD_Field SET SeqNo=120,IsDisplayed='Y' WHERE AD_Field_ID=54039 +; + +-- Jan 7, 2010 9:02:54 PM CST +-- Distribution Management +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=54018 +; + +-- Jan 7, 2010 9:02:54 PM CST +-- Distribution Management +UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=54016 +; + +-- Jan 7, 2010 9:51:24 PM CST +-- Distribution Management +UPDATE AD_Column SET Callout='org.eevolution.model.CalloutDistributionOrder.qtyConfirmed',Updated=TO_DATE('2010-01-07 21:51:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53934 +; + +-- Jan 7, 2010 10:08:51 PM CST +-- Distribution Management +UPDATE AD_Field SET IsReadOnly='Y',Updated=TO_DATE('2010-01-07 22:08:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=54016 +; + diff --git a/migration/354a-trunk/postgresql/656_FR2928004_ShowQtyDeliver.sql b/migration/354a-trunk/postgresql/656_FR2928004_ShowQtyDeliver.sql new file mode 100644 index 0000000000..c72cc96311 --- /dev/null +++ b/migration/354a-trunk/postgresql/656_FR2928004_ShowQtyDeliver.sql @@ -0,0 +1,40 @@ +-- Jan 7, 2010 8:59:29 PM CST +-- Distribution Management +UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=54036 +; + +-- Jan 7, 2010 8:59:29 PM CST +-- Distribution Management +UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=54037 +; + +-- Jan 7, 2010 8:59:29 PM CST +-- Distribution Management +UPDATE AD_Field SET SeqNo=110,IsDisplayed='Y' WHERE AD_Field_ID=54038 +; + +-- Jan 7, 2010 8:59:29 PM CST +-- Distribution Management +UPDATE AD_Field SET SeqNo=120,IsDisplayed='Y' WHERE AD_Field_ID=54039 +; + +-- Jan 7, 2010 9:02:54 PM CST +-- Distribution Management +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=54018 +; + +-- Jan 7, 2010 9:02:54 PM CST +-- Distribution Management +UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=54016 +; + +-- Jan 7, 2010 9:51:24 PM CST +-- Distribution Management +UPDATE AD_Column SET Callout='org.eevolution.model.CalloutDistributionOrder.qtyConfirmed',Updated=TO_TIMESTAMP('2010-01-07 21:51:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53934 +; + +-- Jan 7, 2010 10:08:51 PM CST +-- Distribution Management +UPDATE AD_Field SET IsReadOnly='Y',Updated=TO_TIMESTAMP('2010-01-07 22:08:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=54016 +; +