Hopefully show proper creation / last edit time in vouchers.

This commit is contained in:
Tanshu 2013-06-06 23:47:04 +05:30
parent 7650fffea0
commit 5ceb4e8f0c
6 changed files with 16 additions and 15 deletions

View File

@ -1,6 +1,6 @@
CACHE MANIFEST
# version 2013-06-06.1
# version 2013-06-06.2
CACHE:
/partial/404.html

View File

@ -15,7 +15,9 @@
<option value="1">Dr</option>
<option value="-1">Cr</option>
</select>
<input type="text" ng-autocomplete id="txtLedger" resource="Account" label="Name" model="ledger" value="{{ledger.Name}}"/>
<input type="text" ng-autocomplete id="txtLedger" resource="Account" label="Name" model="ledger"
value="{{ledger.Name}}"/>
<div class="input-prepend">
<span class="add-on"></span><input type="text" id="txtAmount" class="span2" autocomplete="off"
placeholder="Amount" ng-model="amount"/>
@ -70,7 +72,8 @@
</div>
</div>
<div class="form-actions">
<button class="btn btn-primary" ng-click="save()" ng-disabled="preventAlteration(voucher)">{{voucher.VoucherID | save_button}}
<button class="btn btn-primary" ng-click="save()" ng-disabled="preventAlteration(voucher)">{{voucher.VoucherID |
save_button}}
</button>
<button class="btn btn-inverse" ng-click="post()" ng-hide="!voucher.VoucherID"
ng-disabled="voucher.Posted || !perms['Post Vouchers']">{{voucher.Posted | posted}}
@ -81,7 +84,7 @@
</button>
</div>
<div class="row-fluid">
Created on {{voucher.CreationDate}} and Last Edited on {{voucher.LastEditDate}} by {{voucher.User.Name}}. Posted
by {{voucher.Poster}}
Created on {{voucher.CreationDate | localTime}} and Last Edited on {{voucher.LastEditDate | localTime}} by
{{voucher.User.Name}}. Posted by {{voucher.Poster}}
</div>
</form>

View File

@ -89,7 +89,7 @@
</button>
</div>
<div class="row-fluid">
Created on {{voucher.CreationDate}} and Last Edited on {{voucher.LastEditDate}} by {{voucher.User.Name}}. Posted
by {{voucher.Poster}}
Created on {{voucher.CreationDate | localTime}} and Last Edited on {{voucher.LastEditDate | localTime}} by
{{voucher.User.Name}}. Posted by {{voucher.Poster}}
</div>
</form>

View File

@ -97,8 +97,7 @@
</button>
</div>
<div class="row-fluid">
Created on {{voucher.CreationDate}} and Last Edited on {{voucher.LastEditDate}} by {{voucher.User.Name}}.
Posted
by {{voucher.Poster}}
Created on {{voucher.CreationDate | localTime}} and Last Edited on {{voucher.LastEditDate | localTime}} by
{{voucher.User.Name}}. Posted by {{voucher.Poster}}
</div>
</form>

View File

@ -104,8 +104,7 @@
</button>
</div>
<div class="row-fluid">
Created on {{voucher.CreationDate}} and Last Edited on {{voucher.LastEditDate}} by {{voucher.User.Name}}.
Posted
by {{voucher.Poster}}
Created on {{voucher.CreationDate | localTime}} and Last Edited on {{voucher.LastEditDate | localTime}} by
{{voucher.User.Name}}. Posted by {{voucher.Poster}}
</div>
</form>

View File

@ -91,7 +91,7 @@
</button>
</div>
<div class="row-fluid">
Created on {{voucher.CreationDate}} and Last Edited on {{voucher.LastEditDate}} by {{voucher.User.Name}}. Posted
by {{voucher.Poster}}
Created on {{voucher.CreationDate | localTime}} and Last Edited on {{voucher.LastEditDate | localTime}} by
{{voucher.User.Name}}. Posted by {{voucher.Poster}}
</div>
</form>