Hi @Naveen B Thank you for your response, I am able now to create a new record.Thank you for your assistance
Hi @Naveen B I would like to retrieve the branch ID from the financial settings tab. I believe it’s the sales order branch ID
Hi @Naveen B,If I am understanding this correctly, I will need to create a new custom graph and DAC extension of the SOLine DAC through the customization project editor under the code tab, and change the properties under the DAC Warehouse field to point to my custom selector where I am writing the logic in the new graph.
@Naveen B@ChandrasekharM Currently I am working with the following code, but I am getting the following error when trying to create the sales order Unable to cast object of type 'PX.Data.PXResult`2[PX.Objects.CR.CROpportunity,PX.Objects.CR.BAccount]' to type 'PX.Objects.CR.CROpportunityProductsExt'. public PXAction<CROpportunity> createSalesOrder; [PXUIField(DisplayName = Messages.CreateSalesOrder, MapEnableRights = PXCacheRights.Update, MapViewRights = PXCacheRights.Select)] [PXButton(ImageKey = PX.Web.UI.Sprite.Main.DataEntry)] public virtual IEnumerable CreateSalesOrder(PXAdapter adapter) { PXGraph.InstanceCreated.AddHandler<SOOrderEntry>((graph) => { graph.RowInserted.AddHandler<SOLine>((cache, args) => { var soOrderLine = (SOLine)args.Row; var soOrderLineExt = PXCache<SOLine>.GetExtension<SOLineExt>(soOrderLine);
Hi @Naveen B, I have tested it and It is still providing me with an error: Unable to cast object of type 'PX.Data.PXResult`2[PX.Objects.CR.CROpportunity,PX.Objects.CR.BAccount]' to type 'PX.Objects.CR.CROpportunityProducts'.
Hi @Naveen BThank you for this, It definitely solved my issue regarding my error, but for some reason the transport value does not carry over.Do you also experience this?
Already have an account? Login
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.