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

Receivable Service #18

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

Receivable Service #18

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/receivable_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 Receivable {
  string id = 1;
  string company_id = 2;
  string sales_id = 3;
  string sales_code = 4;
  string customer_id = 5;
  string customer_name = 6;
  string due_date = 7;
  double amount_owed = 8;
  double amount_paid = 9;
  string payment_status = 10; 
  bytes payments = 11;
}

message Receivables {
  repeated Receivable receivable = 1;
}
message ViewByCustomerIdInput {
  string id = 1;
  string period = 2;
}

service ReceivableService {
  rpc Create(Receivable) returns (Receivable) {}
  rpc ViewByCustomerId(ViewByCustomerIdInput) returns (Receivables) {}
  rpc ViewBySalesId(Id) returns (Receivable) {}
}

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