Discussions

Check out Oracle NetSuite upcoming events and conferences here
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Update your Profile with your Support type to get your Support Type badge.
Community Poll: What sort of content would you like to see more of?

NSC | Transforming Cash Sale to Cash Refund via Scripting

Scenario:

User wants to transform their Cash Sale to Cash Refund using Script.

Solution:

Below is a sample script illustrating the process of transforming a basic Cash Sale to Cash Refund using N/record in SuiteScript 2.0.

var rec = record.transform({
        fromType: 'cashsale',
        fromId: 10346,
		toType:'cashrefund',
        isDynamic: true
    });
    rec.save();
	}

The sample code described herein is provided on an "as is" basis, without warranty of any kind, to the fullest extent permitted by law. Oracle + NetSuite Inc. does not warrant or guarantee the individual success developers may have in implementing the sample code on their development platforms or in using their own Web server configurations.

Richard James Uri | SuiteCloud and WMS Tech

----

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!

Leaderboard

Community Whiz

Quarter 2 ((Apr-Jun 2024) )

This Week's Leaders

This Month's Leaders

All Time Leaders