Creating a Credit Note based on an existing Order
Trying to replicate a legacy code into a plugin : Jiwa 7.2
Have 2 questions both related to the same job
1 - I have managed to create a Credit note with the following line however it has failed to pickup the base order lines -
2 - The following code is from the legacy ( V6)
what does this do ? I could not find a mapping for the InvoiceLineDetail though ... is this required in V7.2 ?
Have 2 questions both related to the same job
1 - I have managed to create a Credit note with the following line however it has failed to pickup the base order lines -
- Code: Select all
salesOrder.CreateNew(JiwaSales.SalesOrder.SalesOrder.NewSalesOrderTypes.e_NewSalesOrderCreditNote,sDebtorId,True,sOrderInvHistoryID)
salesOrder.Warehouse.IN_LogicalID = sLogicalWarehouseID
2 - The following code is from the legacy ( V6)
what does this do ? I could not find a mapping for the InvoiceLineDetail though ... is this required in V7.2 ?
- Code: Select all
For Each InvoiceLine In MyJiwaSalesOrder.SalesOrderLines
For Each InvoiceLineDetail In InvoiceLine.LineDetails
InvoiceLineDetail.IN_LogicalID = CreditWarehouseID
Next
Next