One of the features of ABRA Flexi is the ability to lock or unlock a record. Once a record is locked, it cannot be modified. Changes are only permitted after the record is unlocked.
To lock a record, use the action lock as follows:
<?xml version="1.0"?>
<winstrom version="1.0">
<faktura-vydana action="lock">
<id>1</id>
</faktura-vydana>
</winstrom>
To lock a record for the accountant, use the action lock-for-ucetni as follows:
<?xml version="1.0"?>
<winstrom version="1.0">
<faktura-vydana action="lock-for-ucetni">
<id>1</id>
</faktura-vydana>
</winstrom>
To unlock a record, use the action lock as follows:
<?xml version="1.0"?>
<winstrom version="1.0">
<faktura-vydana action="unlock">
<id>1</id>
</faktura-vydana>
</winstrom>
Actions can also be triggered in bulk on a group of records using a filter:
<?xml version="1.0"?>
<winstrom version="1.0">
<faktura-vydana action="lock" filter="stavUhrK = 'stavUhr.uhrazeno' and typDokl = 'code:INTERNET'"></faktura-vydana>
</winstrom>
