X-Git-Url: http://git.plutz.net/?p=invoices;a=blobdiff_plain;f=clients.sh;h=052a0c84c897f82a38bbe4b82ad7b86f285442be;hp=8e6713c4bf5c4753dcb7768d0a21fa5356a81481;hb=53de77e6d3528e016290821c5d1186788cf361e3;hpb=61d4c0246fddb3af0cd3287e77814c867f67f80f diff --git a/clients.sh b/clients.sh index 8e6713c..052a0c8 100755 --- a/clients.sh +++ b/clients.sh @@ -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)" \