]> git.plutz.net Git - invoices/blobdiff - clients.sh
sort invoice list, newest to oldest
[invoices] / clients.sh
index 8e6713c4bf5c4753dcb7768d0a21fa5356a81481..052a0c84c897f82a38bbe4b82ad7b86f285442be 100755 (executable)
@@ -19,7 +19,7 @@ edit_client(){
     "$(HTML $id)" \
     "$(UNSTRING "${address#address=}" |HTML)" \
     "$(UNSTRING "${hourly#hourly=}" |grep -xE '[0-9]+')" \
-    "$(tid "clients/$id")"
+    "$(transid "clients/$id")"
 }
 
 list_clients(){
@@ -40,7 +40,7 @@ list_clients(){
 
 update_client(){
   local id="$(POST id |checkid)"
-  if [ "$(POST update)" = "$(tid "clients/$id")" ]; then
+  if [ "$(POST update)" = "$(transid "clients/$id")" ]; then
     mkdir -p clients
     printf 'address=%s hourly=%s' \
       "$(POST address |STRING)" "$(POST hourly |STRING)" \