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

Pranay Pandey updated OFBIZ-1487:
---------------------------------

    Attachment: [EMAIL PROTECTED]

I have done changes as per Jacopo's comment for the patch attached earlier : 

Follwing changes done :

1. Used "set-service-fields" tag and removed set tags which are not required 
after doing this.
2. Did controller entry for service which was missing in last patch.

--
Pranay

> 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
>            Assignee: Ashish Vijaywargiya
>         Attachments: [EMAIL PROTECTED], [EMAIL PROTECTED]
>
>
> 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.

Reply via email to