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
3 stars 0 forks source link

Cash Payment Service #15

Open jacky-htg opened 1 year ago

jacky-htg commented 1 year ago

see file of proto/ledgers/cash_payment_service.proto

jacky-htg commented 1 year ago
message CashPayment {
  string id = 1;
  string company_id = 2;
  string code = 3;
  string date = 4;
  string reference_no = 5;
  Receivable receivable = 6;
  string purchase_id = 7;
  double amount = 8;
  string payee = 9;
  string description = 10; 
  string created_at = 11;
  string created_by = 12;
  string updated_at = 13;
  string updated_by = 14;
}
service CashPaymentService {
  rpc Create(CashPayment) returns (CashPayment) {}
  rpc View(Id) returns (CashPayment) {}
  rpc Update(Id) returns (CashPayment) {}
  rpc List(EmptyMessage) returns (stream CashPayment) {}
}