Page 1 of 1

Changing screen settings after sales order created New

PostPosted: Tue Nov 03, 2015 5:43 pm
by indikad
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 .

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

PostPosted: Tue Nov 03, 2015 7:41 pm
by Mike.Sheen
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.