Methods: ReceiptNotesGenerate

Note: The Generate, GenerateWithSerialNumbers, GenerateAndFinish and GenerateAmendQuantityAndFinish methods use a different payload to the ReceiptNotes component methods. The component ReceiptNotesGenerate contains parameters corresponding to the entry fields in the Receipt Note entry function in SunSystems. Line Details must be supplied in order to select the line(s) for each receipt note.

Generate

Driver Type: SASI

You can use this method to generate one or more receipt note lines, directly from purchase orders, purchase invoices and movement orders.
Note: You cannot mix purchase and movement transactions within a single receipt note. Also, all lines within a receipt note must be for the same purchase or movement transaction type.

GenerateAndFinish

Driver Type: SASI

This method combines the functionality of the Generate and Finish methods into one method.

GenerateWithSerialNumbers

Driver Type: SASI

You can use this method to generate one or more receipt note lines directly from purchase orders, purchase invoices, and movement orders with serial numbers included, where applicable.
Note: You cannot mix purchase and movement transactions within a single receipt note. Also, all lines within a receipt note must be for the same purchase or movement transaction type.
Note: There is a separate section of the payload for serial numbers. An ItemSerialNumber entry must be included for each serialised item where serial number entry occurs at Receipt. Each of these ItemSerialNumber entries must contain an ItemCode and the entries must appear in the payload in the same order as the lines which make up the Receipt Note. In addition, if the item serial numbers are entered manually, rather than the item having a serial number format defined, the correct number of serial numbers must be supplied in the payload.

For example

The Purchase Order PO/002100 has 3 lines:

Line 1 – 2 x item TEST-AS1 (serialised item with serial number format defined, serial number required at receipt)

Line 2 – 2 x item TEST-AS2 (serialised item with serial number format defined, serial number not required at receipt)

Line 3 – 3 x item TEST-MS1 (serialised item without serial number format defined, serial number required at receipt)

Example payload for ReceiptNotesGenerate GenerateWithSerialNumbers:
<ReceiptNotesGenerate>
<SupplierCode>81001</SupplierCode>
<TransactionReferenceFrom>PO/002100</TransactionReferenceFrom> 
<TransactionReferenceTo>PO/002100</TransactionReferenceTo>
<LineDetails>
<LineNumber>1</LineNumber> 
<TransactionReference>PO/002100</TransactionReference>
</LineDetails>
<LineDetails>
<LineNumber>2</LineNumber>
<TransactionReference>PO/002100</TransactionReference> 
</LineDetails> 
<LineDetails>
<LineNumber>3</LineNumber>
<TransactionReference>PO/002100</TransactionReference>
 </LineDetails> 
<ItemSerialNumbers>
<ItemCode>TEST-AS1</ItemCode>
</ItemSerialNumbers> 
<ItemSerialNumbers> 
<ItemCode>TEST-MS1</ItemCode>
<SerialNumbers> 
<SerialNumber>0000001</SerialNumber>
</SerialNumbers> 
<SerialNumbers>
<SerialNumber>0000002</SerialNumber>
</SerialNumbers>
<SerialNumbers>
<SerialNumber>0000003</SerialNumber>
</SerialNumbers>
</ItemSerialNumbers> 
</ReceiptNotesGenerate>                   

GenerateAndFinish

Driver Type: SASI

This method combines the functionality of the Generate and Finish methods into one method.

GenerateAmendQuantityAndFinish

Driver Type: SASI

This method generates the receipt note, allows the quantity to be amended and then finishes it.