Przejdź do głównej zawartości

FillFromSkanujTo

This function will fill AMODIT invoice fields from attachments fields.

FillFromSkanujTo();
FillFromSkanujTo("attachmentName|fieldName");
  • 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.

This function returns Boolean. Returns true on success, false otherwise.

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");