removing crap2
This commit is contained in:
@@ -39,10 +39,15 @@ service Accounting {
|
||||
returns (AccountingPeriod);
|
||||
|
||||
// Closing snapshots balances and blocks mutations through the period end.
|
||||
// A closed period may be reopened; approval makes it final.
|
||||
// A closed period may be reopened until the profile is approved.
|
||||
rpc CloseAccountingPeriod(CloseAccountingPeriodRequest) returns (AccountingPeriod);
|
||||
rpc ReopenAccountingPeriod(ReopenAccountingPeriodRequest) returns (AccountingPeriod);
|
||||
rpc ApproveAccountingPeriod(ApproveAccountingPeriodRequest) returns (AccountingPeriod);
|
||||
|
||||
// Approves the profile's financial statement. One profile is one accounting
|
||||
// period, and approval happens once for it, not once per period inside it.
|
||||
// Every period must be closed first, and none may be reopened afterwards.
|
||||
rpc ApproveProfile(ApproveProfileRequest) returns (ProfileApproval);
|
||||
rpc GetProfileApproval(GetProfileApprovalRequest) returns (ProfileApproval);
|
||||
|
||||
rpc GetAccountingPeriod(GetAccountingPeriodRequest) returns (AccountingPeriod);
|
||||
rpc ListAccountingPeriods(ListAccountingPeriodsRequest)
|
||||
@@ -56,11 +61,12 @@ enum JournalSide {
|
||||
JOURNAL_SIDE_CREDIT = 2;
|
||||
}
|
||||
|
||||
// A period is only ever open or closed. Approval is a fact about the whole
|
||||
// profile, because the profile is the accounting period being reported on.
|
||||
enum AccountingPeriodStatus {
|
||||
ACCOUNTING_PERIOD_STATUS_UNSPECIFIED = 0;
|
||||
ACCOUNTING_PERIOD_STATUS_OPEN = 1;
|
||||
ACCOUNTING_PERIOD_STATUS_CLOSED = 2;
|
||||
ACCOUNTING_PERIOD_STATUS_APPROVED = 3;
|
||||
}
|
||||
|
||||
// How long one accounting period lasts. MONTH and YEAR span whole months, so
|
||||
@@ -261,7 +267,6 @@ message ConfigureAccountingPeriodRequest {
|
||||
string profile_name = 1;
|
||||
// First day of the period, YYYY-MM-DD. Must be the first day of a month.
|
||||
string period_start = 2;
|
||||
reserved 3;
|
||||
// Optional link to the preceding period in a carry chain.
|
||||
optional int64 previous_period_id = 4;
|
||||
// Required. Decides the length of the period.
|
||||
@@ -279,8 +284,21 @@ message ReopenAccountingPeriodRequest {
|
||||
int64 period_id = 1;
|
||||
}
|
||||
|
||||
message ApproveAccountingPeriodRequest {
|
||||
int64 period_id = 1;
|
||||
message ApproveProfileRequest {
|
||||
string profile_name = 1;
|
||||
}
|
||||
|
||||
message GetProfileApprovalRequest {
|
||||
string profile_name = 1;
|
||||
}
|
||||
|
||||
// Approval state of one profile's financial statement.
|
||||
message ProfileApproval {
|
||||
string profile_name = 1;
|
||||
bool approved = 2;
|
||||
// Empty while the profile is unapproved.
|
||||
string approved_at = 3;
|
||||
string approved_by_user_id = 4;
|
||||
}
|
||||
|
||||
message GetAccountingPeriodRequest {
|
||||
@@ -304,8 +322,6 @@ message AccountingPeriod {
|
||||
int64 previous_period_id = 6;
|
||||
string closed_at = 7;
|
||||
string closed_by_user_id = 8;
|
||||
string approved_at = 9;
|
||||
string approved_by_user_id = 10;
|
||||
AccountingPeriodType period_type = 11;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user