Author: rishi Date: Tue Mar 13 12:49:50 2018 New Revision: 1826627 URL: http://svn.apache.org/viewvc?rev=1826627&view=rev Log: Improved: Improve GeneralLedgerServices to set transaction date as payment's effective date. Before this improvement if services setting its value to now timestamp and in case of empty payment date it does the same. (OFBIZ-10239) Thanks Aishwary Shrivastava for your contribution.
Modified: ofbiz/ofbiz-framework/trunk/applications/accounting/minilang/ledger/GeneralLedgerServices.xml Modified: ofbiz/ofbiz-framework/trunk/applications/accounting/minilang/ledger/GeneralLedgerServices.xml URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/accounting/minilang/ledger/GeneralLedgerServices.xml?rev=1826627&r1=1826626&r2=1826627&view=diff ============================================================================== --- ofbiz/ofbiz-framework/trunk/applications/accounting/minilang/ledger/GeneralLedgerServices.xml (original) +++ ofbiz/ofbiz-framework/trunk/applications/accounting/minilang/ledger/GeneralLedgerServices.xml Tue Mar 13 12:49:50 2018 @@ -2404,6 +2404,7 @@ under the License. <set field="createAcctgTransAndEntriesInMap.acctgTransTypeId" value="OUTGOING_PAYMENT"/> <set field="createAcctgTransAndEntriesInMap.partyId" from-field="partyId"/> <set field="createAcctgTransAndEntriesInMap.paymentId" from-field="payment.paymentId"/> + <set field="createAcctgTransAndEntriesInMap.transactionDate" from-field="payment.effectiveDate"/> <set field="createAcctgTransAndEntriesInMap.acctgTransEntries" from-field="acctgTransEntries"/> <call-service service-name="createAcctgTransAndEntries" in-map-name="createAcctgTransAndEntriesInMap"> <result-to-field result-name="acctgTransId"/> @@ -2648,6 +2649,7 @@ under the License. <set field="createAcctgTransAndEntriesInMap.acctgTransEntries" from-field="acctgTransEntries"/> <set field="createAcctgTransAndEntriesInMap.acctgTransTypeId" value="PAYMENT_APPL"/> <set field="createAcctgTransAndEntriesInMap.glFiscalTypeId" value="ACTUAL"/> + <set field="createAcctgTransAndEntriesInMap.transactionDate" from-field="payment.effectiveDate"/> <set field="createAcctgTransAndEntriesInMap.paymentId" from-field="paymentApplication.paymentId"/> <set field="createAcctgTransAndEntriesInMap.invoiceId" from-field="paymentApplication.invoiceId"/> <if-compare field="isReceipt" operator="equals" type="Boolean" value="true">