3#include <eosio/asset.hpp>
4#include <eosio/crypto.hpp>
5#include <eosio/eosio.hpp>
8#include "../consts.hpp"
9#include "../core/document.hpp"
19inline constexpr eosio::name
PROPOSED =
"proposed"_n;
71typedef eosio::multi_index<
73 eosio::indexed_by<
"byhash"_n, eosio::const_mem_fun<branch_aid, eosio::checksum256, &branch_aid::by_hash>>,
74 eosio::indexed_by<
"byusername"_n, eosio::const_mem_fun<branch_aid, uint64_t, &branch_aid::by_username>>,
75 eosio::indexed_by<
"bystatus"_n, eosio::const_mem_fun<branch_aid, uint64_t, &branch_aid::by_status>>>
contract
Definition: eosio.msig_tests.cpp:977
Статусы заявления на материальную помощь.
Definition: table_branch_aids.hpp:18
constexpr eosio::name PROPOSED
на рассмотрении совета
Definition: table_branch_aids.hpp:19
constexpr eosio::name AUTHORIZED
совет одобрил, ждёт выплаты кассиром
Definition: table_branch_aids.hpp:20
Definition: eosio.msig.hpp:34
Заявление на материальную помощь доверенного/председателя КУ из его персонального кошелька членских с...
Definition: table_branch_aids.hpp:55
eosio::name username
доверенный/председатель КУ — получатель помощи
Definition: table_branch_aids.hpp:58
eosio::name status
см. AidStatus
Definition: table_branch_aids.hpp:61
uint64_t by_status() const
Definition: table_branch_aids.hpp:68
document2 protocol
протокол совета о выплате (заполняется в onaidauth)
Definition: table_branch_aids.hpp:63
eosio::asset amount
сумма заявления (брутто): списывается с кошелька целиком, получателю уходит за вычетом НДФЛ
Definition: table_branch_aids.hpp:60
uint64_t primary_key() const
Definition: table_branch_aids.hpp:65
document2 statement
заявление получателя (его подпись)
Definition: table_branch_aids.hpp:62
eosio::name braname
кооперативный участок, по которому распределены средства
Definition: table_branch_aids.hpp:59
eosio::checksum256 hash
идентификатор заявления (= hash повестки совета, = outcome_hash в gateway, = process_hash в ledger2)
Definition: table_branch_aids.hpp:57
uint64_t id
суррогатный ключ (scope coopname)
Definition: table_branch_aids.hpp:56
eosio::checksum256 by_hash() const
Definition: table_branch_aids.hpp:66
uint64_t by_username() const
Definition: table_branch_aids.hpp:67
Definition: document_core.hpp:27
eosio::multi_index< "aids"_n, branch_aid, eosio::indexed_by<"byhash"_n, eosio::const_mem_fun< branch_aid, eosio::checksum256, &branch_aid::by_hash > >, eosio::indexed_by<"byusername"_n, eosio::const_mem_fun< branch_aid, uint64_t, &branch_aid::by_username > >, eosio::indexed_by<"bystatus"_n, eosio::const_mem_fun< branch_aid, uint64_t, &branch_aid::by_status > > > branch_aids_index
Definition: table_branch_aids.hpp:76