Fixed: Cannot create a new GL Account
This changes the service definition of createGLAccount to use the pk
attributes as OUT instead of INOUT so that the glAccountId will be
generated by OFBiz instead of being provided to the service.
Thanks Sharan Foga for reporting.
@@ -30,7 +30,7 @@ under the License.
<service name="createGlAccount" default-entity-name="GlAccount" engine="entity-auto" invoke="create" auth="true">
<description>Create a GlAccount record</description>
<permission-service service-name="basicGeneralLedgerPermissionCheck" main-action="CREATE"/>
- <auto-attributes include="pk" mode="INOUT" optional="false"/>
+ <auto-attributes include="pk" mode="OUT" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
<override name="glAccountTypeId" optional="false"/>
<override name="glAccountClassId" optional="false"/>
