Index: Order.pm =================================================================== --- Order.pm (revision 448) +++ Order.pm (revision 449) @@ -30,6 +30,7 @@ _manager_filter _vault_filter _postman_filter + _sync_filter )]; sub available_filters { @@ -190,6 +191,15 @@ 'db_type' => 'integer', 'default' => 0, }, + { + 'attr' => 'synctime', + 'type' => 'datetime', + 'rusname' => 'Время последней синхронизации', + 'postshow' => 1, + 'facilshow' => 1, + 'db_field' => 'synctime', + 'db_type' => 'timestamp', + }, ); # ---------------------------------------------------------------------------- @@ -227,6 +237,12 @@ return &SQL::Common::_generic_int_filter('d.payment', $opts{payment}); } +sub _sync_filter { + my ($self,%opts)=@_; + return undef unless ( exists $opts{sync} ); + return &SQL::Common::_generic_int_filter('d.syncro', $opts{sync}); +} + sub _uid_filter { my ($self,%opts)=@_; return undef unless ( exists $opts{uid} );