[C28-33][@ant] feat(expense): per-позиционная механика оплаты — operation_code удалён из proposal/createexp/createpgexp, ledger2-код выводится из item.mechanics при payexp; в одном СЗ смешиваются аванс и прямая оплата; UI — селект способа на каждой позиции
Typecheck / desktop (pull_request) Failing after 8m39s
Typecheck / controller (pull_request) Successful in 13m15s

This commit is contained in:
coopops
2026-06-11 13:22:34 +00:00
parent 42c179d5d0
commit 1fcf8523df
31 changed files with 75 additions and 224 deletions
@@ -935,9 +935,7 @@ export interface ICreatepgexp {
coopname: IName
expense_hash: IChecksum256
creator: IName
/** Ledger2-код операции расхода: `o.exp.blgadv` (аванс) либо `o.exp.blgdir` (прямая оплата). */
operation_code: IName
/** Позиции СЗ-расхода (Expense.IItem из шасси). */
/** Позиции СЗ-расхода (Expense.IItem из шасси); механика оплаты — per-item (mechanics: ADVANCE | DIRECT). */
items: IExpenseProposalItem[]
description: string
statement: IDocument2
@@ -72,7 +72,6 @@ export interface ICreateexp {
coopname: IName
username: IName
proposal_hash: IChecksum256
operation_code: IName
source_wallet: IName
items: IItem[]
callback: ICallbackHandler
@@ -163,7 +162,6 @@ export interface IProposal {
id: IUint64
proposal_hash: IChecksum256
username: IName
operation_code: IName
source_wallet: IName
/** ProposalStatus (CREATED=0, AUTHORIZED=1, PARTIALLY_PAID=2, REPORT_SUBMITTED=3, CLOSED=4, DECLINED=5). */
status: IUint8