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

Cash Receipt Service #16

Open jacky-htg opened 11 months ago

jacky-htg commented 11 months ago

see file of proto/ledgers/cash_receipt_service.proto

jacky-htg commented 11 months ago
message CashReceipt {
  string id = 1;
  string company_id = 2;
  string code = 3;
  string date = 4;
  string reference_no = 5;
  Debt debt = 6;
  string sales_id = 7;
  double amount = 8;
  string source = 9;
  string description = 10; 
  string created_at = 11;
  string created_by = 12;
  string updated_at = 13;
  string updated_by = 14;
}
service CashReceiptService {
  rpc Create(CashReceipt) returns (CashReceipt) {}
  rpc View(Id) returns (CashReceipt) {}
  rpc Update(Id) returns (CashReceipt) {}
  rpc List(EmptyMessage) returns (stream CashReceipt) {}
}