When creating gl entries for outgoing payments, get the glAccountId for the credit entry from the PaymentMethodTypeGlAccount record for the given payment.paymentMethodTypeId
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@882043 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -2240,6 +2240,11 @@ under the License.
|
||||
<set field="creditEntry.debitCreditFlag" value="C"/>
|
||||
<!-- TODO -->
|
||||
<!--set field="creditEntry.glAccountTypeId" from-field=""/-->
|
||||
<entity-one value-field="paymentMethodTypeGlAccount" entity-name="PaymentMethodTypeGlAccount">
|
||||
<field-map field-name="paymentMethodTypeId" from-field="payment.paymentMethodTypeId"/>
|
||||
<field-map field-name="organizationPartyId"/>
|
||||
</entity-one>
|
||||
<set field="creditEntry.glAccountId" from-field="paymentMethodTypeGlAccount.glAccountId"/>
|
||||
<set field="creditEntry.origAmount" from-field="payment.amount"/>
|
||||
<set field="creditEntry.origCurrencyUomId" from-field="payment.currencyUomId"/>
|
||||
<set field="creditEntry.organizationPartyId" from-field="payment.partyIdFrom"/>
|
||||
|
||||
Reference in New Issue
Block a user