Minha área
Comentários
-
Hi @Jack Daryl Espiel-Oracle there is no tax total field since the pdf relates to an item fulfilment record which, from what I can tell, doesn;t have dollar values on it and only quantities. The dollar values are sourced from the sales order referenced in the {record.createdfrom} field
-
Thanks @Mikko De La Fuente-Oracle I have tried the following revised code: define(["N/record"], function (record) { /** * @param {UserEventContext.beforeLoad} context */ function beforeLoad(context) { if (context.oldRecord == null) { var recordObj = context.newRecord; } else var recordObj = context.oldRecord;…
-
Hi @Kristoffer Viray-Oracle There wouldn't be any custom field set up in the typical sense (e.g. like custbody fields) They are created within the script for the purposes of storing values temporarily when the script is triggered. They are both of the type "FLOAT" Is that what you meant?
-
Hi @Mikko De La Fuente-Oracle I don't see any options to do that with a scriptable template email: There are no fulfil/receiving transaction; applying transaction,etc fields or joins
-
Hi Example: Packing slip advanced pdf Transaction Netsuite invoice I have changed the script so that it is now rounding to 2dp. Netsuite is set to round at a "transaction level" with this "rounding up" On the advanced pdf, all of the total figures are rounded using the following: ${ttotal?string("$,##0.00;;…
-
Hi Kristoffer The fields in the template are both float type fields: There is a userevent script on an item fulfilment page. This is before load event which sets the fields using the code above. That code is sourced in the advanced pdf where the error is produced
-
Hi @Kristoffer Viray-Oracle I am currently still testing this. I will let you know the results once I have tested this properly
-
HI @Niks Blando-Oracle Thank you for looking into this. Is there a workaround in that case? For example, if the order is not released, for it to still be picked in the warehouse using scanners? Alternatively, is there a way to set up the item so that it has the same attributes as a multilevel kit mentioned in this use case…
-
Thanks @Kristoffer Viray-Oracle To clarify, is it possible to script setting the field or how the field displays? At the moment, I can't set the field value using a workflow
-
To add to this, I have tried to set this field (the native order type field) using a workflow It doesn't accept text values: but it also doesn't accept integer values: In the case of the integer value, the workflow action is referencing another field ( which is an integer field) which should be used to set the value for…
-
Hi There Are there any updates on this? Thanks
-
Thank you @Michelle Jabanes-Oracle and @Matrim Matrim's solution to test the check box worked perfectly
-
Hi @Michelle Jabanes-Oracle I tried the exact freemarker: There are two line items though only one of them has the discontinued flag checked: The output seems to treat both items as discontinued:
-
Hi @Kristoffer Viray-Oracle thanks for the speedy response! To confirm, is the limitation only on picking tickets? The advanced pdf I am trying to source this field on is for the invoice. Thanks
-
Hi @Michelle Jabanes-Oracle Apologies for the delay in responding (it was a public holiday here yesterday and I didn't see this on Saturday). I will test and post my results here. thanks
-
Hi @Micah Timbol-Oracle Sorry, I haven't had a chance to test this yet. I only saw the solution today (Tuesday morning) and yesterday was a public holiday so didn't see your suggested solution from Saturday I will test and feedback here. thanks
-
Hi Michelle I had removed this. I had assumed that was needed to indicate the discontinued checkbox was on the item record and not the transaction record (where the email is being sent from the transaction)? It doesn't produce any results even with the item removed
-
Hi @Kristoffer Viray-Oracle That wouldn't work for this use case since: 1 the items from the sublist which are discontinued will need to be listed and 2 the condition on the workflow will need to evaluate whether the sublist contains items which are discontinued. Looking at the workflow condition builder, I don't see any…
-
Hi @Michelle Jabanes-Oracle This is my exact formula: I am getting a blank result despite the checkbox(field id: custitem_item_discontinued) being checked
-
Hi @Michelle Jabanes-Oracle , @Matrim I have tried: <#if transaction.item.custitem_discontinued == true> and <#if transaction.item.custitem_discontinued == 'T'> and <#if transaction.item.custitem_discontinued == T> none of these work
-
I can't work out how to test for whether a field is checked or not though. i.e. I want certain text to appear only if the following checkbox is ticked I have tried <#if transaction.item.custitem_discontinued=Yes> <#if transaction.item.custitem_discontinued=T> <#if transaction.item.custitem_discontinued=True> <#if…
-
Thanks @Michelle Jabanes-Oracle for looking into this. it looks like the following might be working The email from this: and order with no backordered items Hi Thanks for your order #${transaction.tranid} <#assign hasbackorder=0/><#list transaction.item as listitem><#if listitem.quantitybackordered>0><#assign…
-
Hi @Micah Timbol-Oracle An example use case: Depreciation is calculated for an asset as follows (this is the depreciation history schedule) The amount of depreciation is shown per month and posts in that manner: Is there a way for the depreciation to be calculated for the period rather than the month? i.e. what the…
-
Thanks @Mikko De La Fuente-Oracle I was placing the record into edit mode and saving immediately without clicking anywhere in the transaction. In terms of other scripts, there are several client scripts from locked bundles on that record. To test whether it was this script causing the issue, I tested it in another account…
-
Hi @Mikko De La Fuente-Oracle I am getting the same error with the revised script per your suggestion: /** *@NApiVersion 2.x *@NScriptType ClientScript */ define(["N/record"], function (record) { /** * @param {ClientScriptContext.fieldChanged} context */ function fieldChanged(context) { //the if condition ensures the field…
-
@Kristoffer Viray-Oracle Any updates?
-
@Mikko De La Fuente-Oracle Isn't this line saying for the post sourcing to occur if the account field in the expense sublist is changed? if (sublistName === "expense" && sublistFieldName === "account"
-
Hi @Kristoffer Viray-Oracle Any updates on this? Thanks
-
Hi @Mikko De La Fuente-Oracle Yes the field is mandatory for amount. However, when I put the record into edit mode and save without clicking into any fields, why would this prompt me? Shouldn't the script not trigger unless I click into the account field (in the expense sublist)?
-
Hi @Kristoffer Viray-Oracle That was one of the fields I had used and got the same result