4#include "../core/ram_payer.hpp"
5#include <eosio/asset.hpp>
6#include <eosio/crypto.hpp>
7#include <eosio/eosio.hpp>
10#include "../consts.hpp"
11#include "../core/document.hpp"
21inline constexpr eosio::name
PROPOSED =
"proposed"_n;
73typedef eosio::multi_index<
75 eosio::indexed_by<
"byhash"_n, eosio::const_mem_fun<branch_aid, eosio::checksum256, &branch_aid::by_hash>>,
76 eosio::indexed_by<
"byusername"_n, eosio::const_mem_fun<branch_aid, uint64_t, &branch_aid::by_username>>,
77 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:20
constexpr eosio::name PROPOSED
на рассмотрении совета
Definition: table_branch_aids.hpp:21
constexpr eosio::name AUTHORIZED
совет одобрил, ждёт выплаты кассиром
Definition: table_branch_aids.hpp:22
Definition: eosio.msig.hpp:34
Заявление на материальную помощь доверенного/председателя КУ из его персонального кошелька членских с...
Definition: table_branch_aids.hpp:57
eosio::name username
доверенный/председатель КУ — получатель помощи
Definition: table_branch_aids.hpp:60
eosio::name status
см. AidStatus
Definition: table_branch_aids.hpp:63
uint64_t by_status() const
Definition: table_branch_aids.hpp:70
document2 protocol
протокол совета о выплате (заполняется в onaidauth)
Definition: table_branch_aids.hpp:65
eosio::asset amount
сумма заявления (брутто): списывается с кошелька целиком, получателю уходит за вычетом НДФЛ
Definition: table_branch_aids.hpp:62
uint64_t primary_key() const
Definition: table_branch_aids.hpp:67
document2 statement
заявление получателя (его подпись)
Definition: table_branch_aids.hpp:64
eosio::name braname
кооперативный участок, по которому распределены средства
Definition: table_branch_aids.hpp:61
eosio::checksum256 hash
идентификатор заявления (= hash повестки совета, = outcome_hash в gateway, = process_hash в ledger2)
Definition: table_branch_aids.hpp:59
uint64_t id
суррогатный ключ (scope coopname)
Definition: table_branch_aids.hpp:58
eosio::checksum256 by_hash() const
Definition: table_branch_aids.hpp:68
uint64_t by_username() const
Definition: table_branch_aids.hpp:69
Definition: table_registrator_orgs.hpp:17
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:78
RAM_PAYER_CLASS(branch_aid, cooperative)