I have to create a navision 2013 webservice that takes the following Soap input:
$request = array(
"CreditMemo" => array(
"Sell_to_Customer_No" => CUSTOMER_NUMBER,
"External_Document_No" => CUSTOMERS_OWN_REFERENCE
"XPOS_Reference" => XPOS_REFERENCE,
"SalesLines" => array(
array(
"Type" => "Item",
"No" => PRODUCT_NUMBER,
"Quantity" => 1
)
)
)
);
The return value should be a CreditMemo NO/KEY
It should create credit note headers and corresponding lines.
It seems that I have to use a page for this, but do I also have to create a extension codeunit?
How do I “Cycle” through the input headers / lines in order to create these in navision?
0
Comments