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

Genertal Journal Service #20

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

Genertal Journal Service #20

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/general_journal_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

enum TransactionType {
  CASH_RECEIPT = 0;
  CASH_PAYMENT = 1;
  BANK_RECEIPT = 2;
  BANK_PAYMENT = 3;
}

message GeneralJournal {
  string id = 1;
  string company_id = 2;
  string code = 3;
  string date = 4;
  string name = 5;
  TransactionType transaction_type = 6;
  bytes transaction = 7;
  string created_at = 8;
  string created_by = 9;
  string updated_at = 10;
  string updated_by = 11;
}
enum DebitCredit {
  DEBIT = 0;
  CREDIT = 1;
}

message GeneralJournalDetail {
  string id = 1;
  GeneralJournal general_journal = 2;
  ChartOfAccount chart_of_account = 3;
  string name = 4;
  double amount = 5;
  DebitCredit debit_credit = 6; 
}
service GeneralJournalService {
  rpc List(EmptyMessage) returns (stream GeneralJournal) {}
  rpc Posting(Id) returns (GeneralLedger) {}
}

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