erp - Adding prepayment to a Sales Order -


I need to add pre-payment to a sales order. Accountant has setup Akyumetika required classes and payment methods I am able to do this through the GUI, but when I try to enter payment information on the purchase order using the web service, then you give me an error response Meets. The error response is: PX.Data.PXException: Error # 14: By putting a record 'SOAdjust' one or more errors has been raised. Error: 'Reference NBR.' Can not be empty.

`SO301000 content SO301000 = reference SO301000GetSchema (); Context.SO301000Clear ();

  list & lt; Command & gt; Cmds = new list & lt; Command & gt; (); cmds.AddRange (New Command [] {new value {value = "C-3", LinkedCommand = SO301000.OrderSummary.OrderType}, new value {value = orderNbr, LinkedCommand = SO301000.OrderSummary.OrderNbr, commit = true}, SO301000. payments .ServiceCommands.NewRow, new value {value = "prepayment", LinkedCommand = SO301000.Payments.DocType}, new value {value = paymentNbr, LinkedCommand = SO301000.Payments.ReferenceNbr, commit = true} // new value {value = "3.00", linked Command = SO30l000. payment. Apleedtooder, Committee = true}, SO30l000. actions. save, SO30l000. Ordersmuri. Oderanbrr}); String order number = string Empty; Try {var SO301000ContentReturned = context.SO301000Submit (cmds.ToArray ()); OrderNumber = SO301000ContentReturned [0] .OrderSummary.OrderNbr.Value; Console.WriteLine (ORDERNUMBER); } Hold (exception exception) {orderNumber = exception.Message; Console.WriteLine (exception); } Return order number; ` 

Any suggestions? I have tried to get the same error message as well as using the AR 302000 screen to order from the payment screen.

There is a known limit in the grid, in two major areas (in this case: DOS type + reference NBR) Operates. In this scenario, only 2 keys should be set = true set, so you have to set Commit = false on the docetype field. But instead of doing it with the value object, you have to do it on the schema content object.

Other command = true and neurov commands are unnecessary. I've edited my original code below, so it should look like this:

  SO301000 the payment. Doctor type. Comet = false; // This is the line that I list & lt; Command & gt; Cmds = new list & lt; Command & gt; (); cmds.AddRange (New Command [] {new value {value = "C-3", LinkedCommand = SO301000.OrderSummary.OrderType}, new value {value = orderNbr, LinkedCommand = SO301000.OrderSummary.OrderNbr}, new value {value = " prepayment ", LinkedCommand = SO301000.Payments.DocType}, new value {value = paymentNbr, LinkedCommand = SO301000.Payments.ReferenceNbr} // new value {value =" 3.00 ", LinkedCommand = SO301000.Payments.AppliedToOrder}, SO301000. Actions. Save, SO301000. OderSummuri.OderNabrer}); String order number = string Empty; Try {var SO301000ContentReturned = context.SO301000Submit (cmds.ToArray ()); OrderNumber = SO301000ContentReturned [0] .OrderSummary.OrderNbr.Value; Console.WriteLine (ORDERNUMBER); } Hold (exception exception) {orderNumber = exception.Message; Console.WriteLine (exception); } Return order number;  

Comments

Popular posts from this blog

winforms - C# Form - Property Change -

javascript - amcharts makechart not working -

java - Algorithm negotiation fail SSH in Jenkins -