@aldiokta/protocgen 1.1.44 → 1.1.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/prisca/v1/account_assignment/account_assignment.proto +81 -0
- package/prisca/v1/account_group/account_group.proto +88 -0
- package/prisca/v1/bidding/bidding.proto +251 -0
- package/prisca/v1/chart_of_account/chart_of_account.proto +89 -0
- package/prisca/v1/core/access_manager/access_manager.proto +328 -0
- package/prisca/v1/core/auth/auth.proto +185 -0
- package/prisca/v1/core/chat_messaging/chat_messaging.proto +62 -0
- package/prisca/v1/core/company/company.proto +92 -0
- package/prisca/v1/core/currency/currency.proto +76 -0
- package/prisca/v1/core/department_material/department_material.proto +69 -0
- package/prisca/v1/core/employee/employee.proto +129 -0
- package/prisca/v1/core/file_upload/file_upload.proto +41 -0
- package/prisca/v1/core/incoterm/incoterm.proto +85 -0
- package/prisca/v1/core/item_transaction/item_transaction.proto +188 -0
- package/prisca/v1/core/job_grade/job_grade.proto +79 -0
- package/prisca/v1/core/job_position/job_position.proto +113 -0
- package/prisca/v1/core/job_title/job_title.proto +89 -0
- package/prisca/v1/core/line_of_activity/line_of_activity.proto +94 -0
- package/prisca/v1/core/line_of_approval/line_of_approval.proto +113 -0
- package/prisca/v1/core/link_data_source/link_data_source.proto +78 -0
- package/prisca/v1/core/location/location.proto +295 -0
- package/prisca/v1/core/material/material.proto +131 -0
- package/prisca/v1/core/material_group/material_group.proto +85 -0
- package/prisca/v1/core/material_type/material_type.proto +95 -0
- package/prisca/v1/core/messaging/email_template.proto +77 -0
- package/prisca/v1/core/messaging/messaging.proto +29 -0
- package/prisca/v1/core/messaging/notification.proto +144 -0
- package/prisca/v1/core/number_range/number_range.proto +89 -0
- package/prisca/v1/core/organization/organization.proto +94 -0
- package/prisca/v1/core/organization_level/organization_level.proto +77 -0
- package/prisca/v1/core/price_condition/price_condition.proto +97 -0
- package/prisca/v1/core/procurement/procurement.proto +54 -0
- package/prisca/v1/core/recipient_roles/recipient_roles.proto +10 -0
- package/prisca/v1/core/report/report.proto +90 -0
- package/prisca/v1/core/report/user_report.proto +74 -0
- package/prisca/v1/core/tax_code/tax_code.proto +82 -0
- package/prisca/v1/core/term_of_payment/term_of_payment.proto +74 -0
- package/prisca/v1/core/transaction_builder/transaction_builder.proto +366 -0
- package/prisca/v1/core/unit_of_measurement/unit_of_measurement.proto +89 -0
- package/prisca/v1/core/users/users.proto +55 -0
- package/prisca/v1/core/work_location/work_location.proto +122 -0
- package/prisca/v1/core/workflow/workflow.proto +220 -0
- package/prisca/v1/core/workspace/workspace.proto +48 -0
- package/prisca/v1/delivery_order/delivery_order.proto +116 -0
- package/prisca/v1/document_type/document_type.proto +89 -0
- package/prisca/v1/general_ledger_account/general_ledger_account.proto +100 -0
- package/prisca/v1/global/meta/meta.proto +57 -0
- package/prisca/v1/good_receipt/good_receipt.proto +118 -0
- package/prisca/v1/invoice/invoice.proto +170 -0
- package/prisca/v1/purchase_order/purchase_order.proto +292 -0
- package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx.proto +327 -0
- package/prisca/v1/purchasing_group/purchasing_group.proto +89 -0
- package/prisca/v1/purchasing_organization/purchasing_organization.proto +77 -0
- package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment.proto +81 -0
- package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant.proto +80 -0
- package/prisca/v1/quotation/quotation.proto +135 -0
- package/prisca/v1/request_for_quotation/request_for_quotation.proto +203 -0
- package/prisca/v1/valuation/valuation.proto +223 -0
- package/prisca/v1/vendor_domain/vendor_domain.proto +485 -0
- package/prisca/v1/account_assignment/account_assignment_grpc_pb.js +0 -199
- package/prisca/v1/account_assignment/account_assignment_pb.js +0 -2720
- package/prisca/v1/account_group/account_group_grpc_pb.js +0 -200
- package/prisca/v1/account_group/account_group_pb.js +0 -2983
- package/prisca/v1/bidding/bidding_grpc_pb.js +0 -350
- package/prisca/v1/bidding/bidding_pb.js +0 -8694
- package/prisca/v1/chart_of_account/chart_of_account_grpc_pb.js +0 -199
- package/prisca/v1/chart_of_account/chart_of_account_pb.js +0 -2953
- package/prisca/v1/core/access_manager/access_manager_grpc_pb.js +0 -577
- package/prisca/v1/core/access_manager/access_manager_pb.js +0 -10655
- package/prisca/v1/core/auth/auth_grpc_pb.js +0 -523
- package/prisca/v1/core/auth/auth_pb.js +0 -5833
- package/prisca/v1/core/chat_messaging/chat_messaging_grpc_pb.js +0 -111
- package/prisca/v1/core/chat_messaging/chat_messaging_pb.js +0 -1726
- package/prisca/v1/core/company/company_grpc_pb.js +0 -178
- package/prisca/v1/core/company/company_pb.js +0 -3094
- package/prisca/v1/core/currency/currency_grpc_pb.js +0 -177
- package/prisca/v1/core/currency/currency_pb.js +0 -2516
- package/prisca/v1/core/department_material/department_material_grpc_pb.js +0 -144
- package/prisca/v1/core/department_material/department_material_pb.js +0 -2161
- package/prisca/v1/core/employee/employee_grpc_pb.js +0 -206
- package/prisca/v1/core/employee/employee_pb.js +0 -4329
- package/prisca/v1/core/file_upload/file_upload_grpc_pb.js +0 -66
- package/prisca/v1/core/file_upload/file_upload_pb.js +0 -1136
- package/prisca/v1/core/incoterm/incoterm_grpc_pb.js +0 -177
- package/prisca/v1/core/incoterm/incoterm_pb.js +0 -2898
- package/prisca/v1/core/item_transaction/item_transaction_grpc_pb.js +0 -1
- package/prisca/v1/core/item_transaction/item_transaction_pb.js +0 -6038
- package/prisca/v1/core/job_grade/job_grade_grpc_pb.js +0 -178
- package/prisca/v1/core/job_grade/job_grade_pb.js +0 -2651
- package/prisca/v1/core/job_position/job_position_grpc_pb.js +0 -181
- package/prisca/v1/core/job_position/job_position_pb.js +0 -3808
- package/prisca/v1/core/job_title/job_title_grpc_pb.js +0 -178
- package/prisca/v1/core/job_title/job_title_pb.js +0 -3004
- package/prisca/v1/core/line_of_activity/line_of_activity_grpc_pb.js +0 -78
- package/prisca/v1/core/line_of_activity/line_of_activity_pb.js +0 -2503
- package/prisca/v1/core/line_of_approval/line_of_approval_grpc_pb.js +0 -222
- package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +0 -3801
- package/prisca/v1/core/link_data_source/link_data_source_grpc_pb.js +0 -177
- package/prisca/v1/core/link_data_source/link_data_source_pb.js +0 -2606
- package/prisca/v1/core/location/location_grpc_pb.js +0 -837
- package/prisca/v1/core/location/location_pb.js +0 -11262
- package/prisca/v1/core/material/material_grpc_pb.js +0 -182
- package/prisca/v1/core/material/material_pb.js +0 -4226
- package/prisca/v1/core/material_group/material_group_grpc_pb.js +0 -178
- package/prisca/v1/core/material_group/material_group_pb.js +0 -2822
- package/prisca/v1/core/material_type/material_type_grpc_pb.js +0 -182
- package/prisca/v1/core/material_type/material_type_pb.js +0 -3098
- package/prisca/v1/core/messaging/email_template_grpc_pb.js +0 -177
- package/prisca/v1/core/messaging/email_template_pb.js +0 -2658
- package/prisca/v1/core/messaging/messaging_grpc_pb.js +0 -56
- package/prisca/v1/core/messaging/messaging_pb.js +0 -890
- package/prisca/v1/core/messaging/notification_grpc_pb.js +0 -331
- package/prisca/v1/core/messaging/notification_pb.js +0 -4775
- package/prisca/v1/core/number_range/number_range_grpc_pb.js +0 -178
- package/prisca/v1/core/number_range/number_range_pb.js +0 -2972
- package/prisca/v1/core/organization/organization_grpc_pb.js +0 -180
- package/prisca/v1/core/organization/organization_pb.js +0 -3078
- package/prisca/v1/core/organization_level/organization_level_grpc_pb.js +0 -178
- package/prisca/v1/core/organization_level/organization_level_pb.js +0 -2591
- package/prisca/v1/core/price_condition/price_condition_grpc_pb.js +0 -179
- package/prisca/v1/core/price_condition/price_condition_pb.js +0 -3175
- package/prisca/v1/core/procurement/procurement_grpc_pb.js +0 -146
- package/prisca/v1/core/procurement/procurement_pb.js +0 -1675
- package/prisca/v1/core/recipient_roles/recipient_roles_grpc_pb.js +0 -1
- package/prisca/v1/core/recipient_roles/recipient_roles_pb.js +0 -200
- package/prisca/v1/core/report/report_grpc_pb.js +0 -200
- package/prisca/v1/core/report/report_pb.js +0 -2816
- package/prisca/v1/core/report/user_report_grpc_pb.js +0 -179
- package/prisca/v1/core/report/user_report_pb.js +0 -2446
- package/prisca/v1/core/tax_code/tax_code_grpc_pb.js +0 -177
- package/prisca/v1/core/tax_code/tax_code_pb.js +0 -2778
- package/prisca/v1/core/term_of_payment/term_of_payment_grpc_pb.js +0 -177
- package/prisca/v1/core/term_of_payment/term_of_payment_pb.js +0 -2506
- package/prisca/v1/core/transaction_builder/transaction_builder_grpc_pb.js +0 -652
- package/prisca/v1/core/transaction_builder/transaction_builder_pb.js +0 -11953
- package/prisca/v1/core/unit_of_measurement/unit_of_measurement_grpc_pb.js +0 -180
- package/prisca/v1/core/unit_of_measurement/unit_of_measurement_pb.js +0 -2874
- package/prisca/v1/core/users/users_grpc_pb.js +0 -78
- package/prisca/v1/core/users/users_pb.js +0 -1647
- package/prisca/v1/core/work_location/work_location_grpc_pb.js +0 -179
- package/prisca/v1/core/work_location/work_location_pb.js +0 -4018
- package/prisca/v1/core/workflow/workflow_grpc_pb.js +0 -203
- package/prisca/v1/core/workflow/workflow_pb.js +0 -7631
- package/prisca/v1/core/workspace/workspace_grpc_pb.js +0 -101
- package/prisca/v1/core/workspace/workspace_pb.js +0 -1381
- package/prisca/v1/delivery_order/delivery_order_grpc_pb.js +0 -229
- package/prisca/v1/delivery_order/delivery_order_pb.js +0 -3647
- package/prisca/v1/document_type/document_type_grpc_pb.js +0 -200
- package/prisca/v1/document_type/document_type_pb.js +0 -3004
- package/prisca/v1/general_ledger_account/general_ledger_account_grpc_pb.js +0 -181
- package/prisca/v1/general_ledger_account/general_ledger_account_pb.js +0 -3322
- package/prisca/v1/global/meta/meta_grpc_pb.js +0 -1
- package/prisca/v1/global/meta/meta_pb.js +0 -1173
- package/prisca/v1/good_receipt/good_receipt_grpc_pb.js +0 -250
- package/prisca/v1/good_receipt/good_receipt_pb.js +0 -3945
- package/prisca/v1/invoice/invoice_grpc_pb.js +0 -273
- package/prisca/v1/invoice/invoice_pb.js +0 -5664
- package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +0 -263
- package/prisca/v1/purchase_order/purchase_order_pb.js +0 -9839
- package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +0 -600
- package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +0 -10795
- package/prisca/v1/purchasing_group/purchasing_group_grpc_pb.js +0 -178
- package/prisca/v1/purchasing_group/purchasing_group_pb.js +0 -2921
- package/prisca/v1/purchasing_organization/purchasing_organization_grpc_pb.js +0 -178
- package/prisca/v1/purchasing_organization/purchasing_organization_pb.js +0 -2418
- package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_grpc_pb.js +0 -179
- package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_pb.js +0 -2584
- package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_grpc_pb.js +0 -145
- package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_pb.js +0 -2537
- package/prisca/v1/quotation/quotation_grpc_pb.js +0 -240
- package/prisca/v1/quotation/quotation_pb.js +0 -4167
- package/prisca/v1/request_for_quotation/request_for_quotation_grpc_pb.js +0 -281
- package/prisca/v1/request_for_quotation/request_for_quotation_pb.js +0 -7042
- package/prisca/v1/valuation/valuation_grpc_pb.js +0 -366
- package/prisca/v1/valuation/valuation_pb.js +0 -7806
- package/prisca/v1/vendor_domain/vendor_domain_grpc_pb.js +0 -290
- package/prisca/v1/vendor_domain/vendor_domain_pb.js +0 -14714
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
option go_package = "gitlab.com/integra_sm/prisca-v2-proto/protocgen/prisca/v1/purchase_order";
|
|
4
|
+
|
|
5
|
+
import "prisca/v1/global/meta/meta.proto";
|
|
6
|
+
import "prisca/v1/core/file_upload/file_upload.proto";
|
|
7
|
+
import "prisca/v1/core/transaction_builder/transaction_builder.proto";
|
|
8
|
+
import "prisca/v1/core/item_transaction/item_transaction.proto";
|
|
9
|
+
import "prisca/v1/vendor_domain/vendor_domain.proto";
|
|
10
|
+
import "prisca/v1/core/employee/employee.proto";
|
|
11
|
+
import "prisca/v1/core/users/users.proto";
|
|
12
|
+
import "prisca/v1/core/company/company.proto";
|
|
13
|
+
import "prisca/v1/document_type/document_type.proto";
|
|
14
|
+
//package prisca.v1.purchase_order_domain;
|
|
15
|
+
|
|
16
|
+
// Purchase Order Service
|
|
17
|
+
service PurchaseOrderService {
|
|
18
|
+
rpc CreatePurchaseOrder(CreatePurchaseOrderRequest) returns (CreatePurchaseOrderResponse);
|
|
19
|
+
rpc GetPurchaseOrderById(GetPurchaseOrderByIdRequest) returns (GetPurchaseOrderByIdResponse);
|
|
20
|
+
rpc GetPurchaseOrderByIdDetail(GetPurchaseOrderByIdRequest) returns (GetPurchaseOrderDetailResponse);
|
|
21
|
+
rpc GetListPurchaseOrders(GetListPurchaseOrderRequest) returns (GetListPurchaseOrderResponse);
|
|
22
|
+
rpc GetListPurchaseOrdersToInvoice(GetListPurchaseOrderRequest) returns (GetListPurchaseOrderResponse);
|
|
23
|
+
rpc UpdatePurchaseOrder(UpdatePurchaseOrderRequest) returns (UpdatePurchaseOrderResponse);
|
|
24
|
+
rpc UpdatePurchaseOrderStatus(UpdatePurchaseOrderStatusRequest) returns (UpdatePurchaseOrderResponse);
|
|
25
|
+
rpc UpdatePurchaseOrderFile(UpdatePurchaseOrderFileRequest) returns (UpdatePurchaseOrderResponse);
|
|
26
|
+
rpc DeletePurchaseOrder(DeletePurchaseOrderRequest) returns (DeletePurchaseOrderResponse);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
// Domain Model for DeliveryOrder
|
|
30
|
+
message DeliveryOrder {
|
|
31
|
+
int64 id = 1;
|
|
32
|
+
string department = 2; // flattened JSON
|
|
33
|
+
string title = 3;
|
|
34
|
+
string purchase_order_references_id = 4;
|
|
35
|
+
string vendor_references_id = 5;
|
|
36
|
+
string companies_references_id = 6;
|
|
37
|
+
string shipping_address = 7; // flattened JSON
|
|
38
|
+
string shipping_date = 8; // ISO 8601 format
|
|
39
|
+
string remarks = 9;
|
|
40
|
+
string references_id = 10; // UUID
|
|
41
|
+
string status = 11;
|
|
42
|
+
string created_at = 12; // ISO 8601
|
|
43
|
+
string updated_at = 13; // nullable
|
|
44
|
+
string created_by = 14;
|
|
45
|
+
string updated_by = 15;
|
|
46
|
+
string group_references = 16;
|
|
47
|
+
bool is_expired = 17;
|
|
48
|
+
string purchase_order_number = 18;
|
|
49
|
+
string sales_order_number = 19;
|
|
50
|
+
string delivery_order_number = 20;
|
|
51
|
+
string file_ids = 21;
|
|
52
|
+
repeated FileUploadReferencesReq files = 22;
|
|
53
|
+
optional PurchaseOrder purchase_order = 23;
|
|
54
|
+
optional BaseCompany companies = 24;
|
|
55
|
+
optional Vendor vendor = 25;
|
|
56
|
+
repeated ItemTransaction item_transactions = 26;
|
|
57
|
+
optional Employee created_by_employee = 27;
|
|
58
|
+
optional Employee updated_by_employee = 28;
|
|
59
|
+
string document_references = 29;
|
|
60
|
+
optional DocumentType document_type = 30;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
message GoodReceipt {
|
|
64
|
+
int64 id = 1;
|
|
65
|
+
string purchase_order_references_id = 2;
|
|
66
|
+
string good_receipt_number = 3;
|
|
67
|
+
string purchase_order_number = 4;
|
|
68
|
+
string title = 5;
|
|
69
|
+
string purchase_order_date = 6;
|
|
70
|
+
string vendor_references_id = 7;
|
|
71
|
+
string posting_date = 8;
|
|
72
|
+
string date = 9;
|
|
73
|
+
string remarks = 10;
|
|
74
|
+
string references_id =11;
|
|
75
|
+
string status = 12;
|
|
76
|
+
string created_at = 13;
|
|
77
|
+
string updated_at = 14;
|
|
78
|
+
string created_by = 15;
|
|
79
|
+
string update_by = 16;
|
|
80
|
+
string companies_references_id = 17;
|
|
81
|
+
string group_references = 18;
|
|
82
|
+
bool is_expired = 19;
|
|
83
|
+
string file_ids = 20;
|
|
84
|
+
repeated FileUploadReferencesReq files = 21;
|
|
85
|
+
Vendor vendor = 22;
|
|
86
|
+
PurchaseOrder purchase_order = 23;
|
|
87
|
+
repeated ItemTransaction item_transactions = 24;
|
|
88
|
+
optional Employee created_by_employee = 25;
|
|
89
|
+
optional Employee updated_by_employee = 26;
|
|
90
|
+
string plant = 27;
|
|
91
|
+
string delivery_order_number = 28;
|
|
92
|
+
string delivery_order_references_id = 29;
|
|
93
|
+
string delivery_order_date = 30;
|
|
94
|
+
DeliveryOrder delivery_order = 31;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
message Invoice {
|
|
98
|
+
int64 id = 1;
|
|
99
|
+
string purchase_order_references_id = 2;
|
|
100
|
+
string good_receipt_references_id = 3;
|
|
101
|
+
string vendor_references_id = 4;
|
|
102
|
+
string invoice_subject = 5;
|
|
103
|
+
string invoice_type = 6;
|
|
104
|
+
string plant = 7;
|
|
105
|
+
string invoice_date = 8;
|
|
106
|
+
string invoice_number = 9;
|
|
107
|
+
string document_number = 10;
|
|
108
|
+
string remarks = 11;
|
|
109
|
+
string tax_references = 12;
|
|
110
|
+
string external_number = 13;
|
|
111
|
+
string good_receipt_number = 14;
|
|
112
|
+
string purchase_order_number = 15;
|
|
113
|
+
string references_id = 16;
|
|
114
|
+
string status = 17;
|
|
115
|
+
string created_at = 18;
|
|
116
|
+
string updated_at = 19;
|
|
117
|
+
string created_by = 20;
|
|
118
|
+
string update_by = 21;
|
|
119
|
+
string companies_references_id = 22;
|
|
120
|
+
string group_references = 23;
|
|
121
|
+
bool is_expired = 24;
|
|
122
|
+
string file_ids = 25;
|
|
123
|
+
repeated FileUploadReferencesReq files = 26;
|
|
124
|
+
Company company = 27;
|
|
125
|
+
PurchaseOrder purchase_order = 28;
|
|
126
|
+
repeated GoodReceipt good_receipts = 29;
|
|
127
|
+
Vendor vendor = 30;
|
|
128
|
+
repeated ItemTransaction item_transactions = 31;
|
|
129
|
+
optional Users created_by_user = 32;
|
|
130
|
+
optional Employee updated_by_employee = 33;
|
|
131
|
+
string vendor_name = 34;
|
|
132
|
+
string shipping_file_ids = 35;
|
|
133
|
+
repeated FileUploadReferencesReq shipping_files = 36;
|
|
134
|
+
optional Users updated_by_user = 37;
|
|
135
|
+
string custom_transaction = 38;
|
|
136
|
+
string due_date = 39;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
// Domain Model for PurchaseOrder
|
|
140
|
+
message PurchaseOrder {
|
|
141
|
+
int64 id = 1;
|
|
142
|
+
string title = 2;
|
|
143
|
+
string date = 3; // ISO 8601 format
|
|
144
|
+
string vendor_references_id = 4;
|
|
145
|
+
string company_code = 5;
|
|
146
|
+
string purchasing_organizations = 6;
|
|
147
|
+
string purchasing_groups = 7;
|
|
148
|
+
string term_of_payment = 8;
|
|
149
|
+
string shipping_address = 9;
|
|
150
|
+
string term_of_payment_text = 10;
|
|
151
|
+
string guarantee_period = 11;
|
|
152
|
+
string retention = 12;
|
|
153
|
+
string penalty = 13;
|
|
154
|
+
string insurance = 14;
|
|
155
|
+
string header_text = 15;
|
|
156
|
+
string header_note = 16;
|
|
157
|
+
string email_cc = 17;
|
|
158
|
+
string references_id = 18; // UUID
|
|
159
|
+
string status = 19;
|
|
160
|
+
string created_at = 20; // ISO 8601 format
|
|
161
|
+
string updated_at = 21; // Nullable
|
|
162
|
+
string created_by = 22;
|
|
163
|
+
string updated_by = 23;
|
|
164
|
+
string file_ids = 24;
|
|
165
|
+
string group_references = 25;
|
|
166
|
+
bool is_expired = 26;
|
|
167
|
+
string purchase_order_number = 27;
|
|
168
|
+
repeated FileUploadReferencesReq files = 28;
|
|
169
|
+
repeated ItemTransaction item_transactions = 29;
|
|
170
|
+
optional Vendor vendor = 30;
|
|
171
|
+
optional Employee created_by_employee = 31;
|
|
172
|
+
optional Employee updated_by_employee = 32;
|
|
173
|
+
string companies_references_id = 33;
|
|
174
|
+
optional BaseCompany companies = 34;
|
|
175
|
+
string department = 35;
|
|
176
|
+
string sales_order_number = 36;
|
|
177
|
+
string bidding_references = 37;
|
|
178
|
+
string bidding_number = 38;
|
|
179
|
+
string purchase_requisition_references = 39;
|
|
180
|
+
string purchase_requisition_number = 40;
|
|
181
|
+
repeated Invoice invoices = 41;
|
|
182
|
+
repeated GoodReceipt good_receipts = 42;
|
|
183
|
+
optional DocumentType document_type = 43;
|
|
184
|
+
string document_type_references = 44;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
// Order Messages
|
|
188
|
+
message BasePurchaseOrderRequest {
|
|
189
|
+
string title = 1;
|
|
190
|
+
string company_code = 2;
|
|
191
|
+
string purchasing_organizations = 3;
|
|
192
|
+
string purchasing_groups = 4;
|
|
193
|
+
string term_of_payment = 5;
|
|
194
|
+
string shipping_address = 6;
|
|
195
|
+
string term_of_payment_text = 7;
|
|
196
|
+
string guarantee_period = 8;
|
|
197
|
+
string retention = 9;
|
|
198
|
+
string penalty = 10;
|
|
199
|
+
string insurance = 11;
|
|
200
|
+
string header_text = 12;
|
|
201
|
+
string header_note = 13;
|
|
202
|
+
string email_cc = 14;
|
|
203
|
+
string status = 15;
|
|
204
|
+
string date = 16;
|
|
205
|
+
string group_references = 17;
|
|
206
|
+
repeated FileUploadReferencesReq files = 18;
|
|
207
|
+
repeated BaseItemTransaction item_transactions = 19;
|
|
208
|
+
optional Vendor vendor = 20;
|
|
209
|
+
string department = 21;
|
|
210
|
+
string purchase_order_number = 22;
|
|
211
|
+
string sales_order_number = 23;
|
|
212
|
+
string delivery_order_number = 24;
|
|
213
|
+
string companies_references_id = 25;
|
|
214
|
+
string bidding_references = 26;
|
|
215
|
+
string bidding_number = 27;
|
|
216
|
+
string purchase_requisition_references = 28;
|
|
217
|
+
string purchase_requisition_number = 29;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
message CreatePurchaseOrderRequest {
|
|
221
|
+
BasePurchaseOrderRequest base_purchase_order = 1;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
message UpdatePurchaseOrderStatusRequest {
|
|
225
|
+
string status = 1;
|
|
226
|
+
string references_id = 2;
|
|
227
|
+
}
|
|
228
|
+
message UpdatePurchaseOrderFileRequest {
|
|
229
|
+
string references_id = 1;
|
|
230
|
+
repeated FileUploadReferencesReq files = 2;
|
|
231
|
+
repeated BaseItemTransaction item_transactions = 3;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
message UpdatePurchaseOrderRequest {
|
|
235
|
+
string references_id = 1;
|
|
236
|
+
BasePurchaseOrderRequest base_purchase_order = 2;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
message GetPurchaseOrderByIdRequest {
|
|
240
|
+
string references_id = 1;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
message GetListPurchaseOrderRequest {
|
|
244
|
+
prisca.v1.global.meta.PaginationRequest pagination = 1;
|
|
245
|
+
prisca.v1.global.meta.FilterRequest query = 2;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
message DeletePurchaseOrderRequest {
|
|
249
|
+
repeated string reference_ids = 1;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
// Response Messages
|
|
253
|
+
message CreatePurchaseOrderResponse {
|
|
254
|
+
PurchaseOrder purchase_order = 1;
|
|
255
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
message UpdatePurchaseOrderResponse {
|
|
259
|
+
PurchaseOrder purchase_order = 1;
|
|
260
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
message GetPurchaseOrderByIdResponse {
|
|
264
|
+
PurchaseOrder purchase_order = 1;
|
|
265
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
message GetPurchaseOrderDetailResponse {
|
|
269
|
+
repeated TransactionBuilderFieldsDetail transaction_builder = 1;
|
|
270
|
+
repeated GetPurchaseOrderItemPreload transaction_builder_items = 2;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
message GetPurchaseOrderItemPreload {
|
|
274
|
+
repeated TransactionBuilderFieldsDetail transaction_builder_item = 1;
|
|
275
|
+
repeated GetPurchaseOrderItemDetailPreload transaction_builder_item_details = 2;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
message GetPurchaseOrderItemDetailPreload {
|
|
279
|
+
repeated TransactionBuilderFieldsDetail transaction_builder_item_detail = 1;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
message GetListPurchaseOrderResponse {
|
|
283
|
+
repeated PurchaseOrder purchase_orders = 1;
|
|
284
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
message DeletePurchaseOrderResponse {
|
|
288
|
+
repeated string reference_ids = 1;
|
|
289
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
|
|
@@ -0,0 +1,327 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
option go_package = "gitlab.com/integra_sm/prisca-v2-proto/protocgen/prisca/v1/purchase_requisition_trx";
|
|
4
|
+
|
|
5
|
+
import "prisca/v1/global/meta/meta.proto";
|
|
6
|
+
import "prisca/v1/core/transaction_builder/transaction_builder.proto";
|
|
7
|
+
import "prisca/v1/document_type/document_type.proto";
|
|
8
|
+
import "prisca/v1/core/employee/employee.proto";
|
|
9
|
+
import "prisca/v1/core/file_upload/file_upload.proto";
|
|
10
|
+
import "prisca/v1/core/item_transaction/item_transaction.proto";
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
service PurchaseRequisitionTrxService {
|
|
14
|
+
rpc CreatePurchaseRequisitionTrx(CreatePurchaseRequisitionTrxRequest)
|
|
15
|
+
returns (CreatePurchaseRequisitionTrxResponse);
|
|
16
|
+
rpc UpdatePurchaseRequisitionTrx(UpdatePurchaseRequisitionTrxRequest)
|
|
17
|
+
returns (UpdatePurchaseRequisitionTrxResponse);
|
|
18
|
+
rpc UpdatePurchaseRequisitionStatusTrx(UpdatePurchaseRequisitionTrxStatusRequest)
|
|
19
|
+
returns (UpdatePurchaseRequisitionTrxResponse);
|
|
20
|
+
rpc UpdatePurchaseRequisitionFile(UpdatePurchaseRequisitionFileReq)
|
|
21
|
+
returns (UpdatePurchaseRequisitionTrxResponse);
|
|
22
|
+
rpc GetPurchaseRequisitionTrxById(GetPurchaseRequisitionTrxByIdRequest)
|
|
23
|
+
returns (GetPurchaseRequisitionTrxByIdResponse);
|
|
24
|
+
rpc GetPurchaseRequisitionTrxRefId(GetPurchaseRequisitionTrxByRefRequest)
|
|
25
|
+
returns (GetPurchaseRequisitionTrxByRefResponse);
|
|
26
|
+
rpc GetPurchaseRequisitionTrxList(GetPurchaseRequisitionTrxListRequest)
|
|
27
|
+
returns (GetPurchaseRequisitionTrxListResponse);
|
|
28
|
+
rpc DeletePurchaseRequisition(DeletePurchaseRequisitionRequest) returns
|
|
29
|
+
(DeletePurchaseRequisitionResponse);
|
|
30
|
+
rpc GetPurchaseRequisitionTrxListStatusApproved(GetPurchaseRequisitionTrxListRequest)
|
|
31
|
+
returns (GetPurchaseRequisitionTrxListResponse);
|
|
32
|
+
rpc GetPurchaseRequisitionWithTrxId(
|
|
33
|
+
GetPurchaseRequisitionTrxDetailByIdRequest)
|
|
34
|
+
returns (GetPurchaseRequisitionTransactionTrxDetailPreloadResponse);
|
|
35
|
+
rpc GetPurchaseRequisitionWithTrxName(
|
|
36
|
+
GetPurchaseRequisitionTrxDetailByNameRequest)
|
|
37
|
+
returns (GetPurchaseRequisitionTransactionTrxDetailPreloadResponse);
|
|
38
|
+
rpc GetPurchaseRequisitionWithTrxList(
|
|
39
|
+
GetPurchaseRequisitionTrxDetailListRequest)
|
|
40
|
+
returns (GetPurchaseRequisitionTrxDetailListResponse);
|
|
41
|
+
rpc GetPurchaseRequisitionWithTrxListTable(
|
|
42
|
+
GetPurchaseRequisitionTrxDetailListDetailRequest)
|
|
43
|
+
returns (GetPurchaseRequisitionTrxDetailListTableResponse);
|
|
44
|
+
rpc GetPurchaseRequisitionWithTrxListDetail(
|
|
45
|
+
GetPurchaseRequisitionTrxDetailListDetailRequest)
|
|
46
|
+
returns (GetPurchaseRequisitionTrxDetailListDetailResponse);
|
|
47
|
+
rpc CreatePurchaseRequisitionTemplate(CreatePurchaseRequisitionTemplateRequest)
|
|
48
|
+
returns (CreatePurchaseRequisitionTemplateResponse);
|
|
49
|
+
rpc GetPurchaseRequisitionTemplateById(GetPurchaseRequisitionTemplateByIdRequest)
|
|
50
|
+
returns (GetPurchaseRequisitionTemplateByIdResponse);
|
|
51
|
+
rpc GetPurchaseRequisitionTemplateList(GetPurchaseRequisitionTemplateListRequest)
|
|
52
|
+
returns (GetPurchaseRequisitionTemplateListResponse);
|
|
53
|
+
rpc DeletePurchaseRequisitionTemplate(DeletePurchaseRequisitionTemplateRequest)
|
|
54
|
+
returns (DeletePurchaseRequisitionTemplateResponse);
|
|
55
|
+
rpc UpdatePurchaseRequisitionTemplate(UpdatePurchaseRequisitionTemplateRequest)
|
|
56
|
+
returns (UpdatePurchaseRequisitionTemplateResponse);
|
|
57
|
+
rpc GetPurchaseRequisitionTrxByGroupRef(GetPurchaseRequisitionTrxByGroupRefRequest)
|
|
58
|
+
returns (GetPurchaseRequisitionTrxListResponse);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
message PurchaseRequisitionTrx {
|
|
62
|
+
int64 id = 1;
|
|
63
|
+
string title = 2;
|
|
64
|
+
string purchase_requisition_transaction_number = 3;
|
|
65
|
+
string item_category_ref = 4;
|
|
66
|
+
string account_assigment_ref = 5;
|
|
67
|
+
string currency_ref = 6;
|
|
68
|
+
string purchase_requisition_type = 7;
|
|
69
|
+
string department = 8;
|
|
70
|
+
string purchasing_organization = 9;
|
|
71
|
+
string email_cc = 10;
|
|
72
|
+
string plant_ref = 11;
|
|
73
|
+
string purchasing_group = 12;
|
|
74
|
+
string custom_transaction = 13;
|
|
75
|
+
repeated ItemTransaction item_transactions = 14;
|
|
76
|
+
string references_id = 15;
|
|
77
|
+
string group_references = 16;
|
|
78
|
+
bool is_expired = 17;
|
|
79
|
+
string created_at = 18; // ISO 8601
|
|
80
|
+
string updated_at = 19; // Nullable
|
|
81
|
+
string document_type_ref = 20;
|
|
82
|
+
string number_range_sequence = 21;
|
|
83
|
+
optional DocumentType document_type = 22;
|
|
84
|
+
string status = 23;
|
|
85
|
+
string created_by = 24; // ISO 8601
|
|
86
|
+
string updated_by = 25; // ISO 8601
|
|
87
|
+
string justification = 26;
|
|
88
|
+
repeated FileUploadReferencesReq files = 27;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
// req
|
|
93
|
+
message BasePurchaseRequisitionTrx {
|
|
94
|
+
string title = 1;
|
|
95
|
+
string purchase_requisition_transaction_number = 2;
|
|
96
|
+
string item_category_ref = 3;
|
|
97
|
+
string account_assigment_ref = 4;
|
|
98
|
+
string currency_ref = 5;
|
|
99
|
+
string purchase_requisition_type = 6;
|
|
100
|
+
string department = 7;
|
|
101
|
+
string purchasing_organization = 8;
|
|
102
|
+
string email_cc = 9;
|
|
103
|
+
string plant_ref = 10;
|
|
104
|
+
string purchasing_group = 11;
|
|
105
|
+
string custom_transaction = 12;
|
|
106
|
+
repeated BaseItemTransaction item_transactions = 13;
|
|
107
|
+
string document_type_ref = 14;
|
|
108
|
+
string companies_references_id = 15;
|
|
109
|
+
string status = 16;
|
|
110
|
+
string justification = 17;
|
|
111
|
+
repeated FileUploadReferencesReq files = 18;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
message BaseUpdatePurchaseRequisitionTrx {
|
|
115
|
+
string title = 1;
|
|
116
|
+
string purchase_requisition_transaction_number = 2;
|
|
117
|
+
string item_category_ref = 3;
|
|
118
|
+
string account_assigment_ref = 4;
|
|
119
|
+
string currency_ref = 5;
|
|
120
|
+
string purchase_requisition_type = 6;
|
|
121
|
+
string department = 7;
|
|
122
|
+
string purchasing_organization = 8;
|
|
123
|
+
string email_cc = 9;
|
|
124
|
+
string plant_ref = 10;
|
|
125
|
+
string purchasing_group = 11;
|
|
126
|
+
string custom_transaction = 12;
|
|
127
|
+
repeated BaseItemTransaction item_transactions = 13;
|
|
128
|
+
string document_type_ref = 14;
|
|
129
|
+
string status = 15;
|
|
130
|
+
string group_references = 16;
|
|
131
|
+
string references_id = 17;
|
|
132
|
+
string number_range_sequence = 18;
|
|
133
|
+
string justification = 19;
|
|
134
|
+
repeated FileUploadReferencesReq files = 20;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
message CreatePurchaseRequisitionTrxRequest {
|
|
139
|
+
BasePurchaseRequisitionTrx purchase_requisition_transaction = 1;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
message UpdatePurchaseRequisitionTrxRequest {
|
|
143
|
+
int64 id = 1;
|
|
144
|
+
BaseUpdatePurchaseRequisitionTrx purchase_requisition_transaction = 2;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
message UpdatePurchaseRequisitionTrxStatusRequest {
|
|
148
|
+
string status = 1;
|
|
149
|
+
string references_id = 2;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
message UpdatePurchaseRequisitionFileReq {
|
|
153
|
+
string references_id = 1;
|
|
154
|
+
repeated FileUploadReferencesReq files = 2;
|
|
155
|
+
repeated BaseItemTransaction item_transactions = 3;
|
|
156
|
+
}
|
|
157
|
+
message GetPurchaseRequisitionTrxByIdRequest {
|
|
158
|
+
int64 id = 1;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
message GetPurchaseRequisitionTrxByRefRequest {
|
|
162
|
+
string references_id = 1;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
message GetPurchaseRequisitionTrxByGroupRefRequest { string group_ref = 1; }
|
|
166
|
+
|
|
167
|
+
message GetPurchaseRequisitionTrxListRequest {
|
|
168
|
+
prisca.v1.global.meta.PaginationRequest pagination = 1;
|
|
169
|
+
prisca.v1.global.meta.FilterRequest query = 2;
|
|
170
|
+
bool use_after_find = 3;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
message GetPurchaseRequisitionTrxDetailByIdRequest {
|
|
174
|
+
string references_id = 1;
|
|
175
|
+
int64 trx_builder_id = 2;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
message GetPurchaseRequisitionTrxDetailByNameRequest {
|
|
179
|
+
string references_id = 1;
|
|
180
|
+
string trx_builder_name = 2;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
message GetPurchaseRequisitionTrxDetailListRequest {
|
|
184
|
+
prisca.v1.global.meta.PaginationRequest pagination = 1;
|
|
185
|
+
int64 trx_builder_id = 2;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
message GetPurchaseRequisitionTrxDetailListDetailRequest {
|
|
189
|
+
prisca.v1.global.meta.PaginationRequest pagination = 1;
|
|
190
|
+
int64 trx_builder_id = 2;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
message CreatePurchaseRequisitionTemplateRequest {
|
|
194
|
+
BasePurchaseRequisitionTrx purchase_requisition_transaction = 1;
|
|
195
|
+
string companies_references_id = 2;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
message GetPurchaseRequisitionTemplateByIdRequest {
|
|
199
|
+
int64 id = 1;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
message GetPurchaseRequisitionTemplateListRequest {
|
|
203
|
+
prisca.v1.global.meta.PaginationRequest pagination = 1;
|
|
204
|
+
prisca.v1.global.meta.FilterRequest query = 2;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
message DeletePurchaseRequisitionTemplateRequest {
|
|
208
|
+
int64 id = 1;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
message UpdatePurchaseRequisitionTemplateRequest {
|
|
212
|
+
int64 id = 1;
|
|
213
|
+
BaseUpdatePurchaseRequisitionTrx purchase_requisition_transaction = 2;
|
|
214
|
+
string companies_references_id = 3;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
message DeletePurchaseRequisitionRequest {
|
|
218
|
+
repeated string reference_ids = 1;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
// res
|
|
222
|
+
|
|
223
|
+
message CreatePurchaseRequisitionTrxResponse {
|
|
224
|
+
PurchaseRequisitionTrx purchase_requisition_transaction = 1;
|
|
225
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
message UpdatePurchaseRequisitionTrxResponse {
|
|
229
|
+
PurchaseRequisitionTrx purchase_requisition_transaction = 1;
|
|
230
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
message GetPurchaseRequisitionTrxByRefResponse {
|
|
234
|
+
PurchaseRequisitionTrx purchase_requisition_transaction = 1;
|
|
235
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
message GetPurchaseRequisitionTrxByIdResponse {
|
|
239
|
+
PurchaseRequisitionTrx purchase_requisition_transaction = 1;
|
|
240
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
message GetPurchaseRequisitionTrxListResponse {
|
|
244
|
+
repeated PurchaseRequisitionTrx purchase_requisition_transaction = 1;
|
|
245
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
message GetPurchaseRequisitionTrxDetailByIdResponse {
|
|
249
|
+
TransactionBuilderFields data = 1;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
message GetPurchaseRequisitionTrxDetaiPreloadlByIdResponse {
|
|
253
|
+
repeated TransactionBuilderFieldsDetail pr_transaction_builder = 3;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
message GetPurchaseRequisitionTransactionTrxDetail {
|
|
257
|
+
repeated TransactionBuilderFieldsDetail pr_transaction_builder = 1;
|
|
258
|
+
repeated GetItemTransactionTrxDetail pr_transaction_item = 2;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
message GetItemTransactionTrxDetail {
|
|
262
|
+
repeated TransactionBuilderFieldsDetail pr_transaction_item_builder = 1;
|
|
263
|
+
repeated GetPurchaseRequisitionDetailTrxDetail pr_transaction_item_detail_builder = 2;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
message GetPurchaseRequisitionDetailTrxDetail {
|
|
267
|
+
repeated TransactionBuilderFieldsDetail pr_transaction_item_builder = 1;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
message GetPurchaseRequisitionTrxDetailListResponse {
|
|
271
|
+
repeated TransactionBuilderWithDetails data = 1;
|
|
272
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
message GetPurchaseRequisitionTrxDetailListTableResponse {
|
|
276
|
+
repeated TransactionBuilderWithDetailTableRes data = 1;
|
|
277
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
message GetPurchaseRequisitionTrxDetailListDetailResponse {
|
|
281
|
+
repeated TransactionBuilderWithDetailRes data = 1;
|
|
282
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
message GetPurchaseRequisitionTransactionTrxDetailPreloadResponse {
|
|
286
|
+
repeated TransactionBuilderFieldsDetail pr_transaction_builder = 1;
|
|
287
|
+
repeated GetPurchaseRequisitionTransactionTrxDetailItemPreload pr_transaction_builder_items = 2;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
message GetPurchaseRequisitionTransactionTrxDetailItemPreload {
|
|
291
|
+
repeated TransactionBuilderFieldsDetail pr_transaction_builder_item = 1;
|
|
292
|
+
repeated GetPurchaseRequisitionTransactionTrxDetailItemDetailPreload pr_transaction_builder_item_details = 2;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
message GetPurchaseRequisitionTransactionTrxDetailItemDetailPreload {
|
|
296
|
+
repeated TransactionBuilderFieldsDetail pr_transaction_builder_item_detail = 1;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
message CreatePurchaseRequisitionTemplateResponse {
|
|
300
|
+
PurchaseRequisitionTrx purchase_requisition_transaction = 1;
|
|
301
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
message GetPurchaseRequisitionTemplateByIdResponse {
|
|
305
|
+
PurchaseRequisitionTrx purchase_requisition_transaction = 1;
|
|
306
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
message GetPurchaseRequisitionTemplateListResponse {
|
|
310
|
+
repeated PurchaseRequisitionTrx purchase_requisition_transaction = 1;
|
|
311
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
message DeletePurchaseRequisitionTemplateResponse {
|
|
315
|
+
int64 id = 1;
|
|
316
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
message UpdatePurchaseRequisitionTemplateResponse {
|
|
320
|
+
PurchaseRequisitionTrx purchase_requisition_transaction = 1;
|
|
321
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
message DeletePurchaseRequisitionResponse {
|
|
325
|
+
repeated string reference_ids = 1;
|
|
326
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
327
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
option go_package = "gitlab.com/integra_sm/prisca-v2-proto/protocgen/prisca/v1/purchasing_group";
|
|
4
|
+
|
|
5
|
+
// Importing necessary dependencies
|
|
6
|
+
import "prisca/v1/global/meta/meta.proto";
|
|
7
|
+
import "prisca/v1/core/company/company.proto";
|
|
8
|
+
|
|
9
|
+
service PurchasingGroupService {
|
|
10
|
+
rpc CreatePurchasingGroup(CreatePurchasingGroupRequest)
|
|
11
|
+
returns (CreatePurchasingGroupResponse);
|
|
12
|
+
rpc GetPurchasingGroupById(PurchasingGroupGetByIdRequest)
|
|
13
|
+
returns (PurchasingGroupGetByIdResponse);
|
|
14
|
+
rpc UpdatePurchasingGroup(UpdatePurchasingGroupRequest)
|
|
15
|
+
returns (UpdatePurchasingGroupResponse);
|
|
16
|
+
rpc GetListPurchasingGroup(GetListPurchasingGroupRequest)
|
|
17
|
+
returns (GetListPurchasingGroupResponse);
|
|
18
|
+
rpc DeletePurchasingGroup(DeletePurchasingGroupRequest)
|
|
19
|
+
returns (DeletePurchasingGroupResponse);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
message PurchasingGroup {
|
|
23
|
+
string references_id = 1;
|
|
24
|
+
string description = 2;
|
|
25
|
+
string telephone = 3;
|
|
26
|
+
string telephone_no_purchasing_group = 4;
|
|
27
|
+
string fax_number = 5;
|
|
28
|
+
int64 extension = 6;
|
|
29
|
+
string email_address = 7;
|
|
30
|
+
string companies_references_id = 8;
|
|
31
|
+
string code = 9;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
message BasePurchasingGroup {
|
|
35
|
+
string references_id = 1;
|
|
36
|
+
string description = 2;
|
|
37
|
+
string telephone = 3;
|
|
38
|
+
string telephone_no_purchasing_group = 4;
|
|
39
|
+
string fax_number = 5;
|
|
40
|
+
int64 extension = 6;
|
|
41
|
+
string email_address = 7;
|
|
42
|
+
string companies_references_id = 8;
|
|
43
|
+
Company company = 9;
|
|
44
|
+
string code = 10;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
message PurchasingGroupGetByIdRequest { string references_id = 1; }
|
|
48
|
+
|
|
49
|
+
message CreatePurchasingGroupRequest { PurchasingGroup purchasing_group = 1; }
|
|
50
|
+
|
|
51
|
+
message UpdatePurchasingGroupRequest {
|
|
52
|
+
string references_id = 1;
|
|
53
|
+
PurchasingGroup purchasing_group = 2;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
message DeletePurchasingGroupRequest {
|
|
57
|
+
repeated string reference_ids = 1;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
message GetListPurchasingGroupRequest {
|
|
61
|
+
prisca.v1.global.meta.PaginationRequest pagination = 1;
|
|
62
|
+
prisca.v1.global.meta.FilterRequest query = 2;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
// Response Messages
|
|
66
|
+
message CreatePurchasingGroupResponse {
|
|
67
|
+
PurchasingGroup purchasing_group = 1;
|
|
68
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
message GetListPurchasingGroupResponse {
|
|
72
|
+
repeated BasePurchasingGroup purchasing_group = 1;
|
|
73
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
message UpdatePurchasingGroupResponse {
|
|
77
|
+
PurchasingGroup purchasing_group = 1;
|
|
78
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
message PurchasingGroupGetByIdResponse {
|
|
82
|
+
BasePurchasingGroup purchasing_group = 1;
|
|
83
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
message DeletePurchasingGroupResponse {
|
|
87
|
+
repeated string reference_ids = 1;
|
|
88
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
89
|
+
}
|