Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closing Balance Service #19

Open
jacky-htg opened this issue Aug 7, 2023 · 1 comment
Open

Closing Balance Service #19

jacky-htg opened this issue Aug 7, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@jacky-htg
Copy link
Owner

see file of proto/ledgers/closing_balance_service.proto

@jacky-htg jacky-htg added the enhancement New feature or request label Aug 7, 2023
@jacky-htg jacky-htg self-assigned this Aug 7, 2023
@jacky-htg
Copy link
Owner Author

message AccountBalance {
  string id = 1;
  string company_id = 2;
  ChartOfAccount chart_of_account = 3;
  string period = 4;
  double beginning_balance = 5;
  double debit = 6;
  double credit = 7;
  double ending_balance = 8;
  string closing_at = 9;
  string closing_by = 10; 
}

message AccountBalances {
  repeated AccountBalance balance = 1;
}
message ArBalance {
  string id = 1;
  string company_id = 2;
  string period = 3;
  double beginning_balance = 4;
  double amount = 5;
  double ending_balance = 6;
  string closing_at = 7;
  string closing_by = 8; 
}

message ArBalances {
  repeated ArBalance balance = 1;
}
message DebtBalance {
  string id = 1;
  string company_id = 2;
  string period = 3;
  double beginning_balance = 4;
  double amount = 5;
  double ending_balance = 6;
  string closing_at = 7;
  string closing_by = 8; 
}

message DebtBalances {
  repeated DebtBalance balance = 1;
}
service ClosingBalanceService {
  rpc Closing(StringMessage) returns (BoolMessage) {}
  rpc ViewAccountBalance(StringMessage) returns (AccountBalance) {}
  rpc ViewDebtBalance(StringMessage) returns (DebtBalance) {}
  rpc ViewArBalance(StringMessage) returns (ArBalance) {}
  rpc ListAccountBalance(EmptyMessage) returns (AccountBalances) {}
  rpc ListDebtBalance(EmptyMessage) returns (DebtBalances) {}
  rpc ListArBalance(EmptyMessage) returns (ArBalances) {}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant