Changing screen settings after sales order created New  Topic is solved

Discussions relating to Jiwa 7 plugin development, and the Jiwa 7 API.

Changing screen settings after sales order created New

Postby indikad » Tue Nov 03, 2015 5:43 pm

I am trying to replicate a Jiwa 6513 ( sales order event Sales Order Create New Completed

I am converting them to Jiwa 7 and using SalesOrder.Created event
the items I need to achieve are

set the
  • SalesOrderObject.BranchID
  • SalesOrderObject.OrderType
  • SalesOrderObject.SystemSettings.InvoiceNoDescription

I have some issues with all 3 above
  • SalesOrderObject.BranchID
    issue - this does change in the background and displays ONLY after saving. I need this to be visible as soon as the cahnge occurs
  • SalesOrderObject.OrderType
    I need help to change this - to such as Reserve order from Invoice etc - could not find the correct property in Jiwa 7
  • SalesOrderObject.SystemSettings.InvoiceNoDescription
    this is not a serious pririty but would be nice to know at this time.
    this seems to change as its a memory setting - but is there a way that I can determine on screen the change actually took place

Thanks .
indikad
Frequent Contributor
Frequent Contributor
 
Posts: 182
Joined: Thu Jun 18, 2009 1:14 pm
Topics Solved: 2

Re: Changing screen settings after sales order created New  Topic is solved

Postby Mike.Sheen » Tue Nov 03, 2015 7:41 pm

indikad wrote:I have some issues with all 3 above
  • SalesOrderObject.BranchID
    issue - this does change in the background and displays ONLY after saving. I need this to be visible as soon as the cahnge occurs


Don't set the BranchID, rather invoke Branch.ReadRecord method - eg: SalesOrder.Branch.ReadRecord(ID)

indikad wrote:
  • SalesOrderObject.OrderType
    I need help to change this - to such as Reserve order from Invoice etc - could not find the correct property in Jiwa 7


  • That setting the OrderType property should work - eg: SalesOrderObject.OrderType = SalesOrderTypes.e_SalesOrderOrderTypeReserveOrder

    indikad wrote:
  • SalesOrderObject.SystemSettings.InvoiceNoDescription
    this is not a serious pririty but would be nice to know at this time.
    this seems to change as its a memory setting - but is there a way that I can determine on screen the change actually took place


  • Setting SalesOrderObject.SystemSettings.InvoiceNoDescription should work, just as long as it's done before the SaveStart event. That will only change it for the cached copy the sales order instance has - so you'll be basically just overriding the system setting to be used by that instance of the sales order, but not causing the writing away of the actual system setting - I think this is what you want.
    Mike Sheen
    Chief Software Engineer
    Jiwa Financials

    If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
    User avatar
    Mike.Sheen
    Overflow Error
    Overflow Error
     
    Posts: 2583
    Joined: Tue Feb 12, 2008 11:12 am
    Location: Perth, Republic of Western Australia
    Topics Solved: 807


    Return to Technical and or Programming

    Who is online

    Users browsing this forum: No registered users and 5 guests