FillFromSkanujTo
This function will fill AMODIT invoice fields from attachments fields.
Syntax
FillFromSkanujTo();
FillFromSkanujTo("attachmentName|fieldName");
Function arguments
- attachmentName|fieldName – (String) [Optional] The name of the attachment or attachment field from which invoice is to be filled. If not used, all attachments will be used, prioritizing data from the newest.
Return value
This function returns Boolean.
Returns true on success, false otherwise.
Examples
Example 1:
This will fill AMODIT invoice getting fields data from every attachment. If any field is present in multiple attachments, then value from the newest one will be used
FillFromSkanujTo();
Example 2:
This will fill AMODIT invoice, getting fields data only from specified attachment.
FillFromSkanujTo("file1");
Example 3:
This will fill AMODIT invoice, getting fields data only from attachment from field Invoice.
FillFromSkanujTo("Invoice");