My Stuff
Comments
-
I sent you a private message.
-
A shipping label isn't a record, so I don't think it's possible using nlapiPrintRecord. from NS help: nlapiPrintRecord(type, id, mode, properties) type {string} [required] - Print operation type. Can be any of the following: TRANSACTION STATMENT PACKINGSLIP PICKINGTICKET BILLOFMATERIAL
-
You need to use have the line number in there too. The example in help is wrong... nlapiGetLineItemField(type, fldnamm, linenum) Use this function to obtain sublist (line item) field metadata. Calling this function instantiates the nlobjField object, which then allows you to use all the methods available to nlobjField to…
-
It needs to be at the very end, it tells NS that the saveRecord function has been validated.
-
You need a "return true;" statement at the end.
-
Are the field names case sensitive? reminderType and reminderMinutes Also this is in the help section: Restricting Time Entry on Tasks Unless the Web services user is an administrator or the employee specified on the task, the user will not be able to set the reminderType and reminderMinutes fields on a Task record. If the…
-
If you get this to work keep us posted. I have a similar script that automates bins on the fulfillment form, the script looks for cases where only one bin contains inventory. Since lot numbers aren't accessible via script (or at least they weren't when I wrote the script), I didn't automate that part... I hadn't considered…
-
I think that's it, Thanks!, I copied the function from nlapiGet... case sensitive!
-
Here's the code with formatting // function to fill in bins if only one bin has stock function automatebins() { // step through line items, check if line is fulfilling, if yes then procede var noOfItemCount = nlapiGetLineItemCount('item'); for (var t = 1; noOfItemCount != null && t <= noOfItemCount; t++) { var…
-
Got it, thanks for your help.
-
Yes I've tried both, same error. And alert (current_item.getAllLineItemFields('binnumber')) returns valid fields of binnumber, onhand, etc., so the fields are correct... It just doesn't recognize these methods, I've searched through the help files and there are lots of examples that show it used the same way.
-
KOTNUtil seems to be a function that loops through all the items in some field or search results, since Brett didn't include it I just rewrote that section. In my case I'm using a custom record and stepping through lines.
-
Brett - thanks for the code! I've got a similar business use to Raul Cardenas: we 'receive' items when they ship from Germany, and then 'transfer' them when they arrive in Mexico 5 weeks later.
-
Ah thanks!
-
Did you ever get this resolved? I'm having the same problem, I get the error Type: Scheduled Function: transform_so Error: INVALID_INITIALIZE_REF You can not initialize invoice: invalid reference 159543. The status of this SO was 'Pending Billing' so there's no problem there, and the script actually made an invoice, but…
-
tzvig Here's a little more of the code, you can see how the files are loaded // search the customer's folder var file_filters = []; file_filters[0] = new nlobjSearchFilter('folder', null, 'is', folder); var file_results = nlapiSearchRecord('file', null, file_filters); if (file_results) { // step thru files for (var b = 0;…
-
Glad to help. I use nlapiLoadFile() to get the file loaded, then use .getName() .getValue() etc. Here's a snippet of live code. // search the customer's folder var folder = 12345; var file_filters = []; file_filters[0] = new nlobjSearchFilter('folder', null, 'is', folder); var file_results = nlapiSearchRecord('file', null,…
-
It's not referenced in the SuiteScript Records Browser, but you can search for files. I have a few scripts that search for files, here's a snippet of one: ... // search the customer's folder var file_filters = []; file_filters[0] = new nlobjSearchFilter('folder', null, 'is', folder); var file_results =…
-
This list of item types needs to be in NS documentation Assembly Description Discount DwnLdItem EndGroup GiftCert Group InvtPart Kit Markup NonInvtPart OthCharge Payment Service ShipItem Subtotal TaxGroup TaxItem
-
That did the trick... I set the Customer's language to English US and the emailed PDF was correct. Thanks for the tip.
-
Thanks for the reply. I see that option under 'Printing Type: Advanced', but this form uses 'Printing Type: Basic' and there doesn't appear to be a way to select different templates. Maybe it's as simple as changing to Advanced and creating a new layout, but I'm not sure what else that will effect.…
-
What about a client script button that uses nlapiCopyRecord()?
-
We use both methods (depending on who setup the customer). I prefer the sub-customer method, even though there is redundant info loaded into shipping addresses. To make address changes easier, maybe you could enable inline editing, run a search, then copy/paste?
-
I didn't know about Update Purchase Price from Most Recent Purchase"... interesting. If you have scripting capabilities, you could also write a quick script for Bills/Receipts that compares the transaction rate to the item price, and updates item price if necessary. There's a lot of ways to do this, you could prompt the…
-
My suggestion then is to default to 'Pending Fulfillment', and then have a small script or workflow that finds newly created International orders and automatically changes the status to 'Pending Approval'
-
Sales Order Approval would be the easiest way to control this.
-
We use it, it works well for exactly the situation that you describe - holding off on a single order until all requirements are met.
-
Blaine's idea sounds like the right way to do it. You have a process that doesn't fit neatly into the defined transactions, so a custom record is the way to go.
-
We ran into similar problems. The solution for us was to automate (user event script) the invoice transaction upon saving the fulfillment. The transactions always have the correct date and period. Also insures a 1:1 between fulfillment and invoice.
-
We don't run into that problem, but something similar on the PO side. Our POs and can't be received into a sub-location after 2012.2 because of bin errors. It forced a few minor changes, I didn't bother to open a ticket. Sounds like something changed with bins/locations/transactions. Out of curiosity, what is your…