You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Jacopo Cappellato (JIRA)" <ji...@apache.org> on 2007/12/16 12:39:42 UTC

[jira] Commented: (OFBIZ-1487) Create a service to clone an existing accounting transaction and its entries (AcctgTrans and AcctgTransEntry), with an optional parameter to revert the original transaction

    [ https://issues.apache.org/jira/browse/OFBIZ-1487?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12552188 ] 

Jacopo Cappellato commented on OFBIZ-1487:
------------------------------------------

Looks good,

however we can probably suppress most of the "set" operations because the "clone-value" operation should already duplicate all the fields values; for this reason we will just have to override some of the fields (debitCreditFlag, isPosted, transactionDate...) and clear the acctgTransId one (use the "clear-field" operation for this).


> Create a service to clone an existing accounting transaction and its entries (AcctgTrans and AcctgTransEntry), with an optional parameter to revert the original transaction
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-1487
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1487
>             Project: OFBiz
>          Issue Type: Sub-task
>          Components: accounting
>    Affects Versions: SVN trunk
>            Reporter: Jacopo Cappellato
>         Attachments: JiraIssue@1487.patch
>
>
> Create a service to clone an existing accounting transaction and its entries (AcctgTrans and AcctgTransEntry), with an optional parameter to revert the original transaction.
> Proposed service name: "copyAcctgTransAndEntries"
> IN parameters: fromAcctgTransId (mandatory), revert (optional)
> OUT parameters: acctgTransId
> The service simply clones the AcctgTrans record into a new identical one (if possible, use the createAcctgTrans service) with the exception of the following fields:
> transactionDate: do not set, so that it will be automatically set to now
> isPosted: set to N
> postedDate: do not set
> scheduledPostedDate: do not set
> createdByUserLogin: do not set
> lastModifiedByUserLogin: do not set
> and also clones all the AcctgTransEntry (if possible, use the createAcctgTransEntry service), with the exception of the following fields:
> reconcileStatusId: do not set
> For each entry, if the parameters.revert field is set to "Y", flip the debitCreditFlag from C to D and vice versa.
> Add two new links to the "Edit Accounting Transaction" screen: "duplicate accounting transaction" and "revert accounting transaction" that both call the above service (the latter calls the service with revert=Y).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.