My Stuff
Comments
-
Yes, correct. Total value of the Invoice. UNLESS you do in fact want to keep some credit open, but I don't see why you'd do that at this point
-
You need to edit the Apply sublist to reduce the amount being applied to the original Invoice. You can check out this behaviour in the regular UI, though I think it might auto-adjust there.
-
Ttotal value of the Credit Memo (so, the value of its lines) should be the same as the Applied value. So you would reduce the line item amount, but then also adjust the Applied amount. If you simply left the full value of the line item but adjusted the Applied amount, you'd have an open AR credit that could be used again…
-
See this, this, this and finally maybe this.
-
loading the record, setting a field and submitting it, it takes a few seconds to execute. This is the reason
-
Incidentally, it is also best practice to do this sort of thing as a Before Submit, not an After Submit.
-
You will need to hardcode this array yourself.
-
This is not currently possible
-
That is not possible. The only thing you can do is, by script, tick in the "Create Work Order" checkbox on the SO and save it, which will create the WO for you.
-
The recalc function will trigger, though you won't really know what changed, or rather you'll need to code to try to figure that out. It may be worth investigating if's acceptable to simply remove the Add Multiple button, because coding for it basically requires an entirely new set of logic.
-
Place a fully deployed script with a single nlapiLogExecution('debug','type',type) in it, and you'll know. My guess, however, is that there is NO trigger fired. Bulk screens have this very unfortunate tendency.
-
Hello, JavaScript cannot make FTP calls. You will need to code a Web Services app.
-
No, it can't. RESTlets are javascript.
-
Is your invoice sitting in a Closed Period?
-
The exact error you're getting is due to this line: else if(custbody5 == 'F'{ You are missing your closing parenthesis. Any halfway decent IDE should have thrown an error on this syntax problem, so I recommend you investigate switching from whatever you're using to something decent like Eclipse or Aptana. Aside from that,…
-
Good clarification Brett, thanks
-
Wow, this is like the third request for this in two weeks. You CANNOT use javascript to upload to a FTP. You must use Web Services. So your approach won't work without a Web Services app sitting between the Suitelet and the FTP.
-
It is impossible to updated Create From, in any scenario, ever. The only way to set it is to have originally created the transaction using a Transform operation rather than a create.
-
You deploy scripts on specific record types, so you don't generally need to code that in. In your example, you would deploy the script on just SOs.
-
It would be Journal, but I do not think these trigger scripts. You can test, but if this is correct, you'll have to switch to an after-the-fact corrective Scheduled Script.
-
Doing anything to line items in client side will take 1-2 seconds per line. Nothing you can do about it. The only way to get better performance is to run line item code in User Event on after or before submit, but that's not an option if you need the user to trigger the functionality and keep working on top of it. The only…
-
beforeLoad scripts can only affect Sublists during Creation, not edit.
-
I think you want to read up on RESTlets. Look for that in the Help, should be a good starting point.
-
Setup->Accounting->Accounting Preferences->Order Management->Invoice in Advance of Fulfillment
-
The first word of your quote it "RESTlets".....
-
Hi, I want to change field and type is inline edited. My code is not work. Help me please??? function getUpdatedFields(type) { // if the record is inline edited or mass updated, run the script if (type == ' xedit ') { // call nlapiGetNewRecord to get the fields that were inline edited/mass updated var fields =…
-
Did you fulfill the SO? Do you need to turn on Invoice before Fulfillment?
-
Did you tick in All Roles?
-
What is the rest of the code? Where do you submit these records?
-
Not in any way I would recommend. What client-side behaviour do you need that isn't best served with a User Event? A pop-up message?