Attached Files | Screenshot from 2015-05-13 17:39:31.png [^] (60,779 bytes) 2015-05-13 17:40
paymentStatus.diff [^] (8,619 bytes) 2015-05-14 16:45 [Show Content] [Hide Content]diff --git a/src-db/database/sourcedata/AD_COLUMN.xml b/src-db/database/sourcedata/AD_COLUMN.xml
--- a/src-db/database/sourcedata/AD_COLUMN.xml
+++ b/src-db/database/sourcedata/AD_COLUMN.xml
@@ -301886,6 +301886,43 @@
<!--9EFBEC5F6F6EDD01E040007F01011DA0--> <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
<!--9EFBEC5F6F6EDD01E040007F01011DA0--></AD_COLUMN>
+<!--9F1044EB393B4D60895532DB5D568BEE--><AD_COLUMN>
+<!--9F1044EB393B4D60895532DB5D568BEE--> <AD_COLUMN_ID><![CDATA[9F1044EB393B4D60895532DB5D568BEE]]></AD_COLUMN_ID>
+<!--9F1044EB393B4D60895532DB5D568BEE--> <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--9F1044EB393B4D60895532DB5D568BEE--> <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--9F1044EB393B4D60895532DB5D568BEE--> <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--9F1044EB393B4D60895532DB5D568BEE--> <NAME><![CDATA[Payment Status]]></NAME>
+<!--9F1044EB393B4D60895532DB5D568BEE--> <DESCRIPTION><![CDATA[Percent paid of the order]]></DESCRIPTION>
+<!--9F1044EB393B4D60895532DB5D568BEE--> <HELP><![CDATA[Percent paid of the order]]></HELP>
+<!--9F1044EB393B4D60895532DB5D568BEE--> <COLUMNNAME><![CDATA[PaymentStatus]]></COLUMNNAME>
+<!--9F1044EB393B4D60895532DB5D568BEE--> <AD_TABLE_ID><![CDATA[259]]></AD_TABLE_ID>
+<!--9F1044EB393B4D60895532DB5D568BEE--> <AD_REFERENCE_ID><![CDATA[11]]></AD_REFERENCE_ID>
+<!--9F1044EB393B4D60895532DB5D568BEE--> <FIELDLENGTH><![CDATA[4]]></FIELDLENGTH>
+<!--9F1044EB393B4D60895532DB5D568BEE--> <ISKEY><![CDATA[N]]></ISKEY>
+<!--9F1044EB393B4D60895532DB5D568BEE--> <ISPARENT><![CDATA[N]]></ISPARENT>
+<!--9F1044EB393B4D60895532DB5D568BEE--> <ISMANDATORY><![CDATA[N]]></ISMANDATORY>
+<!--9F1044EB393B4D60895532DB5D568BEE--> <ISUPDATEABLE><![CDATA[N]]></ISUPDATEABLE>
+<!--9F1044EB393B4D60895532DB5D568BEE--> <ISIDENTIFIER><![CDATA[N]]></ISIDENTIFIER>
+<!--9F1044EB393B4D60895532DB5D568BEE--> <SEQNO><![CDATA[730]]></SEQNO>
+<!--9F1044EB393B4D60895532DB5D568BEE--> <ISTRANSLATED><![CDATA[N]]></ISTRANSLATED>
+<!--9F1044EB393B4D60895532DB5D568BEE--> <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--9F1044EB393B4D60895532DB5D568BEE--> <ISSELECTIONCOLUMN><![CDATA[N]]></ISSELECTIONCOLUMN>
+<!--9F1044EB393B4D60895532DB5D568BEE--> <AD_ELEMENT_ID><![CDATA[DFE27188EE744707BB30DCCFAC3F5378]]></AD_ELEMENT_ID>
+<!--9F1044EB393B4D60895532DB5D568BEE--> <ISSESSIONATTR><![CDATA[N]]></ISSESSIONATTR>
+<!--9F1044EB393B4D60895532DB5D568BEE--> <ISSECONDARYKEY><![CDATA[N]]></ISSECONDARYKEY>
+<!--9F1044EB393B4D60895532DB5D568BEE--> <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
+<!--9F1044EB393B4D60895532DB5D568BEE--> <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
+<!--9F1044EB393B4D60895532DB5D568BEE--> <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--9F1044EB393B4D60895532DB5D568BEE--> <ISTRANSIENT><![CDATA[N]]></ISTRANSIENT>
+<!--9F1044EB393B4D60895532DB5D568BEE--> <ISAUTOSAVE><![CDATA[Y]]></ISAUTOSAVE>
+<!--9F1044EB393B4D60895532DB5D568BEE--> <VALIDATEONNEW><![CDATA[Y]]></VALIDATEONNEW>
+<!--9F1044EB393B4D60895532DB5D568BEE--> <IMAGESIZEVALUESACTION><![CDATA[N]]></IMAGESIZEVALUESACTION>
+<!--9F1044EB393B4D60895532DB5D568BEE--> <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
+<!--9F1044EB393B4D60895532DB5D568BEE--> <SQLLOGIC><![CDATA[(coalesce((select case when sum(abs(fps.paidamt)) = 0 then 0 else
+round(coalesce(sum(abs(fps.paidamt)), 0)/sum(abs(fps.amount)) * 100, 0) end
+from FIN_Payment_Schedule fps where fps.c_order_id=c_order_id),0))]]></SQLLOGIC>
+<!--9F1044EB393B4D60895532DB5D568BEE--></AD_COLUMN>
+
<!--9F3ADE0CE0734BE2BD059AAEFCF1D51C--><AD_COLUMN>
<!--9F3ADE0CE0734BE2BD059AAEFCF1D51C--> <AD_COLUMN_ID><![CDATA[9F3ADE0CE0734BE2BD059AAEFCF1D51C]]></AD_COLUMN_ID>
<!--9F3ADE0CE0734BE2BD059AAEFCF1D51C--> <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
diff --git a/src-db/database/sourcedata/AD_ELEMENT.xml b/src-db/database/sourcedata/AD_ELEMENT.xml
--- a/src-db/database/sourcedata/AD_ELEMENT.xml
+++ b/src-db/database/sourcedata/AD_ELEMENT.xml
@@ -32797,6 +32797,20 @@
<!--DF31EE4F8B28472089DC155324337471--> <ISGLOSSARY><![CDATA[N]]></ISGLOSSARY>
<!--DF31EE4F8B28472089DC155324337471--></AD_ELEMENT>
+<!--DFE27188EE744707BB30DCCFAC3F5378--><AD_ELEMENT>
+<!--DFE27188EE744707BB30DCCFAC3F5378--> <AD_ELEMENT_ID><![CDATA[DFE27188EE744707BB30DCCFAC3F5378]]></AD_ELEMENT_ID>
+<!--DFE27188EE744707BB30DCCFAC3F5378--> <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--DFE27188EE744707BB30DCCFAC3F5378--> <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--DFE27188EE744707BB30DCCFAC3F5378--> <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--DFE27188EE744707BB30DCCFAC3F5378--> <COLUMNNAME><![CDATA[PaymentStatus]]></COLUMNNAME>
+<!--DFE27188EE744707BB30DCCFAC3F5378--> <NAME><![CDATA[Payment Status]]></NAME>
+<!--DFE27188EE744707BB30DCCFAC3F5378--> <PRINTNAME><![CDATA[Payment Status]]></PRINTNAME>
+<!--DFE27188EE744707BB30DCCFAC3F5378--> <DESCRIPTION><![CDATA[Percent paid of the order]]></DESCRIPTION>
+<!--DFE27188EE744707BB30DCCFAC3F5378--> <HELP><![CDATA[Percent paid of the order]]></HELP>
+<!--DFE27188EE744707BB30DCCFAC3F5378--> <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--DFE27188EE744707BB30DCCFAC3F5378--> <ISGLOSSARY><![CDATA[N]]></ISGLOSSARY>
+<!--DFE27188EE744707BB30DCCFAC3F5378--></AD_ELEMENT>
+
<!--DFE350A1830B4F7FE040007F010031A1--><AD_ELEMENT>
<!--DFE350A1830B4F7FE040007F010031A1--> <AD_ELEMENT_ID><![CDATA[DFE350A1830B4F7FE040007F010031A1]]></AD_ELEMENT_ID>
<!--DFE350A1830B4F7FE040007F010031A1--> <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
diff --git a/src-db/database/sourcedata/AD_FIELD.xml b/src-db/database/sourcedata/AD_FIELD.xml
--- a/src-db/database/sourcedata/AD_FIELD.xml
+++ b/src-db/database/sourcedata/AD_FIELD.xml
@@ -296649,6 +296649,36 @@
<!--EA0181ADB9264D298540C3514253DD4B--> <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
<!--EA0181ADB9264D298540C3514253DD4B--></AD_FIELD>
+<!--EA0A266F73384D96A09C5691DDAD6BF5--><AD_FIELD>
+<!--EA0A266F73384D96A09C5691DDAD6BF5--> <AD_FIELD_ID><![CDATA[EA0A266F73384D96A09C5691DDAD6BF5]]></AD_FIELD_ID>
+<!--EA0A266F73384D96A09C5691DDAD6BF5--> <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--EA0A266F73384D96A09C5691DDAD6BF5--> <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--EA0A266F73384D96A09C5691DDAD6BF5--> <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--EA0A266F73384D96A09C5691DDAD6BF5--> <NAME><![CDATA[Payment Status]]></NAME>
+<!--EA0A266F73384D96A09C5691DDAD6BF5--> <DESCRIPTION><![CDATA[Percent paid of the order]]></DESCRIPTION>
+<!--EA0A266F73384D96A09C5691DDAD6BF5--> <HELP><![CDATA[Percent paid of the order]]></HELP>
+<!--EA0A266F73384D96A09C5691DDAD6BF5--> <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--EA0A266F73384D96A09C5691DDAD6BF5--> <AD_TAB_ID><![CDATA[186]]></AD_TAB_ID>
+<!--EA0A266F73384D96A09C5691DDAD6BF5--> <AD_COLUMN_ID><![CDATA[9F1044EB393B4D60895532DB5D568BEE]]></AD_COLUMN_ID>
+<!--EA0A266F73384D96A09C5691DDAD6BF5--> <IGNOREINWAD><![CDATA[Y]]></IGNOREINWAD>
+<!--EA0A266F73384D96A09C5691DDAD6BF5--> <ISDISPLAYED><![CDATA[N]]></ISDISPLAYED>
+<!--EA0A266F73384D96A09C5691DDAD6BF5--> <DISPLAYLENGTH><![CDATA[4]]></DISPLAYLENGTH>
+<!--EA0A266F73384D96A09C5691DDAD6BF5--> <ISREADONLY><![CDATA[N]]></ISREADONLY>
+<!--EA0A266F73384D96A09C5691DDAD6BF5--> <SEQNO><![CDATA[2150]]></SEQNO>
+<!--EA0A266F73384D96A09C5691DDAD6BF5--> <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
+<!--EA0A266F73384D96A09C5691DDAD6BF5--> <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
+<!--EA0A266F73384D96A09C5691DDAD6BF5--> <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--EA0A266F73384D96A09C5691DDAD6BF5--> <SHOWINRELATION><![CDATA[Y]]></SHOWINRELATION>
+<!--EA0A266F73384D96A09C5691DDAD6BF5--> <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
+<!--EA0A266F73384D96A09C5691DDAD6BF5--> <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--EA0A266F73384D96A09C5691DDAD6BF5--> <GRID_SEQNO><![CDATA[120]]></GRID_SEQNO>
+<!--EA0A266F73384D96A09C5691DDAD6BF5--> <STARTINODDCOLUMN><![CDATA[N]]></STARTINODDCOLUMN>
+<!--EA0A266F73384D96A09C5691DDAD6BF5--> <STARTNEWLINE><![CDATA[N]]></STARTNEWLINE>
+<!--EA0A266F73384D96A09C5691DDAD6BF5--> <ISSHOWNINSTATUSBAR><![CDATA[Y]]></ISSHOWNINSTATUSBAR>
+<!--EA0A266F73384D96A09C5691DDAD6BF5--> <CLIENTCLASS><![CDATA[OBAddPercentageSign]]></CLIENTCLASS>
+<!--EA0A266F73384D96A09C5691DDAD6BF5--> <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
+<!--EA0A266F73384D96A09C5691DDAD6BF5--></AD_FIELD>
+
<!--EA0A71EA42CA4E8B8842113430A9CF38--><AD_FIELD>
<!--EA0A71EA42CA4E8B8842113430A9CF38--> <AD_FIELD_ID><![CDATA[EA0A71EA42CA4E8B8842113430A9CF38]]></AD_FIELD_ID>
<!--EA0A71EA42CA4E8B8842113430A9CF38--> <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
paymentStatusTests.diff [^] (11,566 bytes) 2015-05-28 16:51 [Show Content] [Hide Content]diff --git a/src-test/com/openbravo/test/integration/erp/modules/functionalteam/addpayment/testsuites/APR_AddPaymentRefactor/APRSales002.java b/src-test/com/openbravo/test/integration/erp/modules/functionalteam/addpayment/testsuites/APR_AddPaymentRefactor/APRSales002.java
--- a/src-test/com/openbravo/test/integration/erp/modules/functionalteam/addpayment/testsuites/APR_AddPaymentRefactor/APRSales002.java
+++ b/src-test/com/openbravo/test/integration/erp/modules/functionalteam/addpayment/testsuites/APR_AddPaymentRefactor/APRSales002.java
@@ -132,7 +132,7 @@
new AddPaymentPopUpData.Builder().amount_gl_items("0.00").amount_inv_ords("20.70")
.total("20.70").difference("0.00").build(),
new SalesOrderHeaderData.Builder().documentStatus("Booked").summedLineAmount("20.00")
- .grandTotalAmount("20.70").currency("EUR").build() } });
+ .grandTotalAmount("20.70").currency("EUR").paymentStatus("100 %").build() } });
}
/**
diff --git a/src-test/com/openbravo/test/integration/erp/modules/functionalteam/addpayment/testsuites/APR_AddPaymentRefactor/APRSales004.java b/src-test/com/openbravo/test/integration/erp/modules/functionalteam/addpayment/testsuites/APR_AddPaymentRefactor/APRSales004.java
--- a/src-test/com/openbravo/test/integration/erp/modules/functionalteam/addpayment/testsuites/APR_AddPaymentRefactor/APRSales004.java
+++ b/src-test/com/openbravo/test/integration/erp/modules/functionalteam/addpayment/testsuites/APR_AddPaymentRefactor/APRSales004.java
@@ -116,6 +116,8 @@
/** The data to verify the application of the payment. */
SalesInvoiceHeaderData payedSalesInvoiceHeaderVerificationData;
+ SalesOrderHeaderData payedSalesOrderHeaderVerificationDataAgain;
+
/**
* Class constructor.
*
@@ -157,6 +159,7 @@
* The data to verify the totals data in the add payment pop up.
* @param payedSalesInvoiceHeaderVerificationData
* The data to verify the application of the payment.
+ * @param payedSalesOrderHeaderVerificationDataAgain
*/
public APRSales004(SalesOrderHeaderData salesOrderHeaderData,
SalesOrderHeaderData salesOrderHeaderVerficationData,
@@ -173,7 +176,8 @@
SalesInvoiceLinesData salesInvoiceLineVerificationData, PaymentPlanData paymentInPlanData,
AddPaymentPopUpData addPaymentInVerificationData,
AddPaymentPopUpData addPaymentTotalsVerificationData,
- SalesInvoiceHeaderData payedSalesInvoiceHeaderVerificationData) {
+ SalesInvoiceHeaderData payedSalesInvoiceHeaderVerificationData,
+ SalesOrderHeaderData payedSalesOrderHeaderVerificationDataAgain) {
this.salesOrderHeaderData = salesOrderHeaderData;
this.salesOrderHeaderVerficationData = salesOrderHeaderVerficationData;
this.salesOrderLinesData = salesOrderLinesData;
@@ -193,6 +197,7 @@
this.addPaymentInVerificationData = addPaymentInVerificationData;
this.addPaymentTotalsVerificationData = addPaymentTotalsVerificationData;
this.payedSalesInvoiceHeaderVerificationData = payedSalesInvoiceHeaderVerificationData;
+ this.payedSalesOrderHeaderVerificationDataAgain = payedSalesOrderHeaderVerificationDataAgain;
logInData = new LogInData.Builder().userName("QAAdmin").password("QAAdmin").build();
}
@@ -206,29 +211,33 @@
public static Collection<Object[]> salesOrderValues() {
Object[][] data = new Object[][] { {
/* Parameters for [APRSales004] Create Sales Order. */
- new SalesOrderHeaderData.Builder().transactionDocument("Standard Order").businessPartner(
- new BusinessPartnerSelectorData.Builder().name("Customer A").build()).build(),
+ new SalesOrderHeaderData.Builder().transactionDocument("Standard Order")
+ .businessPartner(new BusinessPartnerSelectorData.Builder().name("Customer A").build())
+ .build(),
new SalesOrderHeaderData.Builder().partnerAddress(".Pamplona, Street Customer center nº1")
- .invoiceAddress(".Pamplona, Street Customer center nº1").invoiceTerms(
- "Customer Schedule After Delivery").warehouse("Spain warehouse").priceList(
- "Customer A").paymentMethod("1 (Spain)").paymentTerms("30 days, 5").build(),
- new SalesOrderLinesData.Builder().product(
- new ProductSelectorData.Builder().searchKey("FGA").build()).orderedQuantity("100")
- .build(),
- new SalesOrderLinesData.Builder().uOM("Bag").unitPrice("2.00").listPrice("2.00").tax(
- "VAT(3)+CHARGE(0.5)").lineNetAmount("200.00").build(),
+ .invoiceAddress(".Pamplona, Street Customer center nº1")
+ .invoiceTerms("Customer Schedule After Delivery").warehouse("Spain warehouse")
+ .priceList("Customer A").paymentMethod("1 (Spain)").paymentTerms("30 days, 5")
+ .paymentStatus("0 %").build(),
+ new SalesOrderLinesData.Builder()
+ .product(new ProductSelectorData.Builder().searchKey("FGA").build())
+ .orderedQuantity("100").build(),
+ new SalesOrderLinesData.Builder().uOM("Bag").unitPrice("2.00").listPrice("2.00")
+ .tax("VAT(3)+CHARGE(0.5)").lineNetAmount("200.00").build(),
new SalesOrderHeaderData.Builder().documentStatus("Booked").summedLineAmount("200.00")
.grandTotalAmount("207.00").currency("EUR").build(),
new TaxData[] {
new TaxData.Builder().tax("VAT(3) - VAT 3%").taxAmount("6.00").taxableAmount("200.00")
.build(),
- new TaxData.Builder().tax("CHARGE 0.5% - VAT 3%").taxAmount("1.00").taxableAmount(
- "200.00").build() },
+ new TaxData.Builder().tax("CHARGE 0.5% - VAT 3%").taxAmount("1.00")
+ .taxableAmount("200.00").build() },
/* Parameters for [APRSales004] Create Good Shipment. */
- new GoodsShipmentHeaderData.Builder().documentType("MM Shipment").businessPartner(
- new BusinessPartnerSelectorData.Builder().name("Customer A").build()).build(),
- new GoodsShipmentHeaderData.Builder().partnerAddress(
- ".Pamplona, Street Customer center nº1").warehouse("Spain warehouse").build(),
+ new GoodsShipmentHeaderData.Builder().documentType("MM Shipment")
+ .businessPartner(new BusinessPartnerSelectorData.Builder().name("Customer A").build())
+ .build(),
+ new GoodsShipmentHeaderData.Builder()
+ .partnerAddress(".Pamplona, Street Customer center nº1").warehouse("Spain warehouse")
+ .build(),
new GoodsShipmentLinesData.Builder().product(
new ProductCompleteSelectorData.Builder().searchKey("FGA").storageBin("spain111")
.build()).build(),
@@ -236,29 +245,32 @@
.movementQuantity("100").build(),
new GoodsShipmentHeaderData.Builder().documentStatus("Completed").build(),
/* Parameters for [APRSales004] Create Sales Invoice. */
- new SalesInvoiceHeaderData.Builder().transactionDocument("AR Invoice").businessPartner(
- new BusinessPartnerSelectorData.Builder().name("Customer A").build()).build(),
+ new SalesInvoiceHeaderData.Builder().transactionDocument("AR Invoice")
+ .businessPartner(new BusinessPartnerSelectorData.Builder().name("Customer A").build())
+ .build(),
new SalesInvoiceHeaderData.Builder()
.partnerAddress(".Pamplona, Street Customer center nº1").priceList("Customer A")
.paymentMethod("1 (Spain)").paymentTerms("30 days, 5").build(),
new SalesInvoiceHeaderData.Builder().totalPaid("0.00").outstandingAmount("207.00")
.documentStatus("Completed").summedLineAmount("200.00").grandTotalAmount("207.00")
.currency("EUR").paymentComplete(false).build(),
- new SalesInvoiceLinesData.Builder().product(
- new ProductSimpleSelectorData.Builder().productName("Final good A").build())
- .invoicedQuantity("100").uOM("Bag").unitPrice("2.00").listPrice("2.00").tax(
- "VAT(3)+CHARGE(0.5)").lineNetAmount("200.00").build(),
- new PaymentPlanData.Builder().dueDate(OBDate.GET_30_DAYS_5_FROM_SYSTEM_DATE).finPaymentmethod(
- "1 (Spain)").amount("207.00").paidAmount("0.00").outstandingAmount("207.00").build(),
+ new SalesInvoiceLinesData.Builder()
+ .product(new ProductSimpleSelectorData.Builder().productName("Final good A").build())
+ .invoicedQuantity("100").uOM("Bag").unitPrice("2.00").listPrice("2.00")
+ .tax("VAT(3)+CHARGE(0.5)").lineNetAmount("200.00").build(),
+ new PaymentPlanData.Builder().dueDate(OBDate.GET_30_DAYS_5_FROM_SYSTEM_DATE)
+ .finPaymentmethod("1 (Spain)").amount("207.00").paidAmount("0.00")
+ .outstandingAmount("207.00").build(),
/* Data for [APRSales004] Add Payment. */
- new AddPaymentPopUpData.Builder().received_from("Customer A").fin_paymentmethod_id(
- "1 (Spain)").fin_financial_account_id("Spain Bank - EUR").c_currency_id("EUR")
- .expected_payment("207.00").actual_payment("207.00").payment_date(
- OBDate.CURRENT_DATE).transaction_type("Invoices").build(),
- new AddPaymentPopUpData.Builder().amount_gl_items("0.00").amount_inv_ords("207.00").total(
- "207.00").difference("793.00").build(),
+ new AddPaymentPopUpData.Builder().received_from("Customer A")
+ .fin_paymentmethod_id("1 (Spain)").fin_financial_account_id("Spain Bank - EUR")
+ .c_currency_id("EUR").expected_payment("207.00").actual_payment("207.00")
+ .payment_date(OBDate.CURRENT_DATE).transaction_type("Invoices").build(),
+ new AddPaymentPopUpData.Builder().amount_gl_items("0.00").amount_inv_ords("207.00")
+ .total("207.00").difference("793.00").build(),
new SalesInvoiceHeaderData.Builder().paymentComplete(true).documentStatus("Completed")
- .summedLineAmount("200.00").grandTotalAmount("207.00").currency("EUR").build() } };
+ .summedLineAmount("200.00").grandTotalAmount("207.00").currency("EUR").build(),
+ new SalesOrderHeaderData.Builder().paymentStatus("100 %").build() } };
return Arrays.asList(data);
}
@@ -298,8 +310,9 @@
goodsShipment.assertData(goodsShipmentHeaderVerificationData);
// TODO when the fields in status bar are automated, we can take the grand total amount from the
// same object.
- String salesOrderIdentifier = String.format("%s - %s - %s", completedSalesOrderHeaderData
- .getDataField("documentNo"), completedSalesOrderHeaderData.getDataField("orderDate"),
+ String salesOrderIdentifier = String.format("%s - %s - %s",
+ completedSalesOrderHeaderData.getDataField("documentNo"),
+ completedSalesOrderHeaderData.getDataField("orderDate"),
bookedSalesOrderHeaderVerificationData.getDataField("grandTotalAmount"));
goodsShipment.createLinesFrom("spain111", salesOrderIdentifier);
goodsShipment.assertProcessCompletedSuccessfully();
@@ -349,6 +362,10 @@
salesInvoice.assertPaymentCreatedSuccessfully();
salesInvoice.assertData(payedSalesInvoiceHeaderVerificationData);
+ salesOrder.open();
+ salesOrder.select(salesOrderHeaderData);
+ salesOrder.assertData(payedSalesOrderHeaderVerificationDataAgain);
+
logger
.info("** End of test case [APRSales004] Adding a Payment to a sales invoice with an associated sales order as a generated credit. **");
}
|