Adding Pament to a sales order
Hi,
Using .net vb on JIWA7.0.175
used to have this code in JIWA6.
If .AddSalesOrderPayment("AE58311B13FF44E2B146", PaidbyReturn) = e_SalesOrderReturnCodeSuccess Then
.SalesOrderPayments(1).PaymentRef = Paidby
.SalesOrderPayments(1).AmountPaid = Val(p.Item("amountPaid"))
.SalesOrderPayments(1).PaymentDate = .InitiatedDate
.SalesOrderPayments(1).ProcessPayment = True
End If
End If
Am having trouble getting the Add payment line to work. Could you let me have a sample bit of code. That adds a payment line. Any help appreciated thanks.
Using .net vb on JIWA7.0.175
used to have this code in JIWA6.
If .AddSalesOrderPayment("AE58311B13FF44E2B146", PaidbyReturn) = e_SalesOrderReturnCodeSuccess Then
.SalesOrderPayments(1).PaymentRef = Paidby
.SalesOrderPayments(1).AmountPaid = Val(p.Item("amountPaid"))
.SalesOrderPayments(1).PaymentDate = .InitiatedDate
.SalesOrderPayments(1).ProcessPayment = True
End If
End If
Am having trouble getting the Add payment line to work. Could you let me have a sample bit of code. That adds a payment line. Any help appreciated thanks.