Open jacky-htg opened 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) {}
}
see file of proto/ledgers/debt_service.proto