jacky-htg / ledger-service

General Ledger service using golang grpc and postgresql. This service is part of inventory microservices.
GNU General Public License v3.0
2 stars 0 forks source link

Debt Service #17

Open jacky-htg opened 11 months ago

jacky-htg commented 11 months ago

see file of proto/ledgers/debt_service.proto

jacky-htg commented 11 months ago
message Debt {
  string id = 1;
  string company_id = 2;
  string purchase_id = 3;
  string purchase_code = 4;
  string supplier_id = 5;
  string supplier_name = 6;
  string due_date = 7;
  double amount_owed = 8;
  double amount_paid = 9;
  string payment_status = 10; 
  bytes payments = 11;
}

message Debts {
  repeated Debt debt = 1;
} 
message ViewBySupplierIdInput {
  string id = 1;
  string period = 2;
}

service DebtService {
  rpc Create(Debt) returns (Debt) {}
  rpc ViewBySupplierId(ViewBySupplierIdInput) returns (Debts) {}
  rpc ViewByPurchaseId(Id) returns (Debt) {}
}