X-Git-Url: https://git.ktnx.net/?p=mobile-ledger.git;a=blobdiff_plain;f=app%2Fsrc%2Fmain%2Fres%2Fvalues%2Farrays.xml;h=ded168533667f9b0ce81cdb77b1b99dad0c40d19;hp=0e8556530389eec970f997f0e5d62d6596dbe3ef;hb=HEAD;hpb=20bf9e983f65ae6e7e963130d4352104f0dc87e3 diff --git a/app/src/main/res/values/arrays.xml b/app/src/main/res/values/arrays.xml index 0e855653..ded16853 100644 --- a/app/src/main/res/values/arrays.xml +++ b/app/src/main/res/values/arrays.xml @@ -26,4 +26,14 @@ Duplicate Delete + + Templates are like pre-filled transactions. Some of the transaction parameters are defined by the template, and others can be deduced from external source. + For example, when adding a new transaction, you could scan the QR code of a receipt and get the transaction description filled from the template, and date and amounts filled from the data in the QR code. + Templates describe which transaction parameters are fixed and which come from the external source. + Currently, scanning QR codes is the only available source. Support for pasting from the clipboard and reading/intercepting text messages (SMS) is planned for the future. + + + The pattern is a Regular expression ([Wikipedia↗](https://en.wikipedia.org/wiki/Regular_expression#Syntax)). It must match the input from the external source, or the template won\'t be considered when looking for templates corresponding to the input from the external source. + Capture groups may be used for filling some transaction parameters. + \ No newline at end of file