@aldiokta/protocgen 1.1.29 → 1.1.31
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/bidding/bidding_grpc_pb.js +1 -0
- package/prisca/v1/bidding/bidding_pb.js +206 -3
- package/prisca/v1/core/item_transaction/item_transaction_pb.js +316 -16
- package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +61 -1
- package/prisca/v1/core/messaging/notification_grpc_pb.js +22 -0
- package/prisca/v1/core/messaging/notification_pb.js +425 -42
- package/prisca/v1/core/unit_of_measurement/unit_of_measurement_pb.js +31 -1
- package/prisca/v1/delivery_order/delivery_order_pb.js +20 -1140
- package/prisca/v1/document_type/document_type_grpc_pb.js +22 -0
- package/prisca/v1/document_type/document_type_pb.js +214 -2
- package/prisca/v1/good_receipt/good_receipt_pb.js +25 -1235
- package/prisca/v1/invoice/invoice_pb.js +1615 -1559
- package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +1 -0
- package/prisca/v1/purchase_order/purchase_order_pb.js +4186 -21
- package/prisca/v1/quotation/quotation_grpc_pb.js +33 -0
- package/prisca/v1/quotation/quotation_pb.js +381 -0
- package/prisca/v1/request_for_quotation/request_for_quotation_pb.js +31 -1
|
@@ -265,13 +265,20 @@ filesList: jspb.Message.toObjectList(msg.getFilesList(),
|
|
|
265
265
|
previousTransactionReferences: jspb.Message.getFieldWithDefault(msg, 22, ""),
|
|
266
266
|
currency: jspb.Message.getFieldWithDefault(msg, 23, ""),
|
|
267
267
|
purchaseRequisitionTransactionNumber: jspb.Message.getFieldWithDefault(msg, 24, ""),
|
|
268
|
-
originalQuantity: jspb.Message.
|
|
269
|
-
remainingQuantity: jspb.Message.
|
|
268
|
+
originalQuantity: jspb.Message.getFloatingPointFieldWithDefault(msg, 25, 0.0),
|
|
269
|
+
remainingQuantity: jspb.Message.getFloatingPointFieldWithDefault(msg, 27, 0.0),
|
|
270
270
|
purchaseRequisitionQuantity: jspb.Message.getFieldWithDefault(msg, 28, ""),
|
|
271
271
|
purchaseRequisitionPrice: jspb.Message.getFieldWithDefault(msg, 29, ""),
|
|
272
272
|
replacement: jspb.Message.getFieldWithDefault(msg, 30, ""),
|
|
273
273
|
itemTransactionServiceList: jspb.Message.toObjectList(msg.getItemTransactionServiceList(),
|
|
274
|
-
proto.ItemTransactionService.toObject, includeInstance)
|
|
274
|
+
proto.ItemTransactionService.toObject, includeInstance),
|
|
275
|
+
deliveryOrderQuantity: jspb.Message.getFloatingPointFieldWithDefault(msg, 32, 0.0),
|
|
276
|
+
goodReceiptQuantity: jspb.Message.getFloatingPointFieldWithDefault(msg, 33, 0.0),
|
|
277
|
+
purchaseOrderQuantity: jspb.Message.getFloatingPointFieldWithDefault(msg, 34, 0.0),
|
|
278
|
+
invoiceQuantity: jspb.Message.getFloatingPointFieldWithDefault(msg, 35, 0.0),
|
|
279
|
+
includeVat: jspb.Message.getBooleanFieldWithDefault(msg, 36, false),
|
|
280
|
+
incomeTax: jspb.Message.getFloatingPointFieldWithDefault(msg, 37, 0.0),
|
|
281
|
+
priceBeforeTax: jspb.Message.getFieldWithDefault(msg, 38, "")
|
|
275
282
|
};
|
|
276
283
|
|
|
277
284
|
if (includeInstance) {
|
|
@@ -408,11 +415,11 @@ proto.ItemTransaction.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
408
415
|
msg.setPurchaseRequisitionTransactionNumber(value);
|
|
409
416
|
break;
|
|
410
417
|
case 25:
|
|
411
|
-
var value = /** @type {number} */ (reader.
|
|
418
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
412
419
|
msg.setOriginalQuantity(value);
|
|
413
420
|
break;
|
|
414
421
|
case 27:
|
|
415
|
-
var value = /** @type {number} */ (reader.
|
|
422
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
416
423
|
msg.setRemainingQuantity(value);
|
|
417
424
|
break;
|
|
418
425
|
case 28:
|
|
@@ -432,6 +439,34 @@ proto.ItemTransaction.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
432
439
|
reader.readMessage(value,proto.ItemTransactionService.deserializeBinaryFromReader);
|
|
433
440
|
msg.addItemTransactionService(value);
|
|
434
441
|
break;
|
|
442
|
+
case 32:
|
|
443
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
444
|
+
msg.setDeliveryOrderQuantity(value);
|
|
445
|
+
break;
|
|
446
|
+
case 33:
|
|
447
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
448
|
+
msg.setGoodReceiptQuantity(value);
|
|
449
|
+
break;
|
|
450
|
+
case 34:
|
|
451
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
452
|
+
msg.setPurchaseOrderQuantity(value);
|
|
453
|
+
break;
|
|
454
|
+
case 35:
|
|
455
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
456
|
+
msg.setInvoiceQuantity(value);
|
|
457
|
+
break;
|
|
458
|
+
case 36:
|
|
459
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
460
|
+
msg.setIncludeVat(value);
|
|
461
|
+
break;
|
|
462
|
+
case 37:
|
|
463
|
+
var value = /** @type {number} */ (reader.readFloat());
|
|
464
|
+
msg.setIncomeTax(value);
|
|
465
|
+
break;
|
|
466
|
+
case 38:
|
|
467
|
+
var value = /** @type {string} */ (reader.readString());
|
|
468
|
+
msg.setPriceBeforeTax(value);
|
|
469
|
+
break;
|
|
435
470
|
default:
|
|
436
471
|
reader.skipField();
|
|
437
472
|
break;
|
|
@@ -633,15 +668,15 @@ proto.ItemTransaction.serializeBinaryToWriter = function(message, writer) {
|
|
|
633
668
|
);
|
|
634
669
|
}
|
|
635
670
|
f = message.getOriginalQuantity();
|
|
636
|
-
if (f !== 0) {
|
|
637
|
-
writer.
|
|
671
|
+
if (f !== 0.0) {
|
|
672
|
+
writer.writeDouble(
|
|
638
673
|
25,
|
|
639
674
|
f
|
|
640
675
|
);
|
|
641
676
|
}
|
|
642
677
|
f = message.getRemainingQuantity();
|
|
643
|
-
if (f !== 0) {
|
|
644
|
-
writer.
|
|
678
|
+
if (f !== 0.0) {
|
|
679
|
+
writer.writeDouble(
|
|
645
680
|
27,
|
|
646
681
|
f
|
|
647
682
|
);
|
|
@@ -675,6 +710,55 @@ proto.ItemTransaction.serializeBinaryToWriter = function(message, writer) {
|
|
|
675
710
|
proto.ItemTransactionService.serializeBinaryToWriter
|
|
676
711
|
);
|
|
677
712
|
}
|
|
713
|
+
f = message.getDeliveryOrderQuantity();
|
|
714
|
+
if (f !== 0.0) {
|
|
715
|
+
writer.writeDouble(
|
|
716
|
+
32,
|
|
717
|
+
f
|
|
718
|
+
);
|
|
719
|
+
}
|
|
720
|
+
f = message.getGoodReceiptQuantity();
|
|
721
|
+
if (f !== 0.0) {
|
|
722
|
+
writer.writeDouble(
|
|
723
|
+
33,
|
|
724
|
+
f
|
|
725
|
+
);
|
|
726
|
+
}
|
|
727
|
+
f = message.getPurchaseOrderQuantity();
|
|
728
|
+
if (f !== 0.0) {
|
|
729
|
+
writer.writeDouble(
|
|
730
|
+
34,
|
|
731
|
+
f
|
|
732
|
+
);
|
|
733
|
+
}
|
|
734
|
+
f = message.getInvoiceQuantity();
|
|
735
|
+
if (f !== 0.0) {
|
|
736
|
+
writer.writeDouble(
|
|
737
|
+
35,
|
|
738
|
+
f
|
|
739
|
+
);
|
|
740
|
+
}
|
|
741
|
+
f = message.getIncludeVat();
|
|
742
|
+
if (f) {
|
|
743
|
+
writer.writeBool(
|
|
744
|
+
36,
|
|
745
|
+
f
|
|
746
|
+
);
|
|
747
|
+
}
|
|
748
|
+
f = message.getIncomeTax();
|
|
749
|
+
if (f !== 0.0) {
|
|
750
|
+
writer.writeFloat(
|
|
751
|
+
37,
|
|
752
|
+
f
|
|
753
|
+
);
|
|
754
|
+
}
|
|
755
|
+
f = message.getPriceBeforeTax();
|
|
756
|
+
if (f.length > 0) {
|
|
757
|
+
writer.writeString(
|
|
758
|
+
38,
|
|
759
|
+
f
|
|
760
|
+
);
|
|
761
|
+
}
|
|
678
762
|
};
|
|
679
763
|
|
|
680
764
|
|
|
@@ -1171,11 +1255,11 @@ proto.ItemTransaction.prototype.setPurchaseRequisitionTransactionNumber = functi
|
|
|
1171
1255
|
|
|
1172
1256
|
|
|
1173
1257
|
/**
|
|
1174
|
-
* optional
|
|
1258
|
+
* optional double original_quantity = 25;
|
|
1175
1259
|
* @return {number}
|
|
1176
1260
|
*/
|
|
1177
1261
|
proto.ItemTransaction.prototype.getOriginalQuantity = function() {
|
|
1178
|
-
return /** @type {number} */ (jspb.Message.
|
|
1262
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 25, 0.0));
|
|
1179
1263
|
};
|
|
1180
1264
|
|
|
1181
1265
|
|
|
@@ -1184,16 +1268,16 @@ proto.ItemTransaction.prototype.getOriginalQuantity = function() {
|
|
|
1184
1268
|
* @return {!proto.ItemTransaction} returns this
|
|
1185
1269
|
*/
|
|
1186
1270
|
proto.ItemTransaction.prototype.setOriginalQuantity = function(value) {
|
|
1187
|
-
return jspb.Message.
|
|
1271
|
+
return jspb.Message.setProto3FloatField(this, 25, value);
|
|
1188
1272
|
};
|
|
1189
1273
|
|
|
1190
1274
|
|
|
1191
1275
|
/**
|
|
1192
|
-
* optional
|
|
1276
|
+
* optional double remaining_quantity = 27;
|
|
1193
1277
|
* @return {number}
|
|
1194
1278
|
*/
|
|
1195
1279
|
proto.ItemTransaction.prototype.getRemainingQuantity = function() {
|
|
1196
|
-
return /** @type {number} */ (jspb.Message.
|
|
1280
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 27, 0.0));
|
|
1197
1281
|
};
|
|
1198
1282
|
|
|
1199
1283
|
|
|
@@ -1202,7 +1286,7 @@ proto.ItemTransaction.prototype.getRemainingQuantity = function() {
|
|
|
1202
1286
|
* @return {!proto.ItemTransaction} returns this
|
|
1203
1287
|
*/
|
|
1204
1288
|
proto.ItemTransaction.prototype.setRemainingQuantity = function(value) {
|
|
1205
|
-
return jspb.Message.
|
|
1289
|
+
return jspb.Message.setProto3FloatField(this, 27, value);
|
|
1206
1290
|
};
|
|
1207
1291
|
|
|
1208
1292
|
|
|
@@ -1298,6 +1382,132 @@ proto.ItemTransaction.prototype.clearItemTransactionServiceList = function() {
|
|
|
1298
1382
|
};
|
|
1299
1383
|
|
|
1300
1384
|
|
|
1385
|
+
/**
|
|
1386
|
+
* optional double delivery_order_quantity = 32;
|
|
1387
|
+
* @return {number}
|
|
1388
|
+
*/
|
|
1389
|
+
proto.ItemTransaction.prototype.getDeliveryOrderQuantity = function() {
|
|
1390
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 32, 0.0));
|
|
1391
|
+
};
|
|
1392
|
+
|
|
1393
|
+
|
|
1394
|
+
/**
|
|
1395
|
+
* @param {number} value
|
|
1396
|
+
* @return {!proto.ItemTransaction} returns this
|
|
1397
|
+
*/
|
|
1398
|
+
proto.ItemTransaction.prototype.setDeliveryOrderQuantity = function(value) {
|
|
1399
|
+
return jspb.Message.setProto3FloatField(this, 32, value);
|
|
1400
|
+
};
|
|
1401
|
+
|
|
1402
|
+
|
|
1403
|
+
/**
|
|
1404
|
+
* optional double good_receipt_quantity = 33;
|
|
1405
|
+
* @return {number}
|
|
1406
|
+
*/
|
|
1407
|
+
proto.ItemTransaction.prototype.getGoodReceiptQuantity = function() {
|
|
1408
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 33, 0.0));
|
|
1409
|
+
};
|
|
1410
|
+
|
|
1411
|
+
|
|
1412
|
+
/**
|
|
1413
|
+
* @param {number} value
|
|
1414
|
+
* @return {!proto.ItemTransaction} returns this
|
|
1415
|
+
*/
|
|
1416
|
+
proto.ItemTransaction.prototype.setGoodReceiptQuantity = function(value) {
|
|
1417
|
+
return jspb.Message.setProto3FloatField(this, 33, value);
|
|
1418
|
+
};
|
|
1419
|
+
|
|
1420
|
+
|
|
1421
|
+
/**
|
|
1422
|
+
* optional double purchase_order_quantity = 34;
|
|
1423
|
+
* @return {number}
|
|
1424
|
+
*/
|
|
1425
|
+
proto.ItemTransaction.prototype.getPurchaseOrderQuantity = function() {
|
|
1426
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 34, 0.0));
|
|
1427
|
+
};
|
|
1428
|
+
|
|
1429
|
+
|
|
1430
|
+
/**
|
|
1431
|
+
* @param {number} value
|
|
1432
|
+
* @return {!proto.ItemTransaction} returns this
|
|
1433
|
+
*/
|
|
1434
|
+
proto.ItemTransaction.prototype.setPurchaseOrderQuantity = function(value) {
|
|
1435
|
+
return jspb.Message.setProto3FloatField(this, 34, value);
|
|
1436
|
+
};
|
|
1437
|
+
|
|
1438
|
+
|
|
1439
|
+
/**
|
|
1440
|
+
* optional double invoice_quantity = 35;
|
|
1441
|
+
* @return {number}
|
|
1442
|
+
*/
|
|
1443
|
+
proto.ItemTransaction.prototype.getInvoiceQuantity = function() {
|
|
1444
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 35, 0.0));
|
|
1445
|
+
};
|
|
1446
|
+
|
|
1447
|
+
|
|
1448
|
+
/**
|
|
1449
|
+
* @param {number} value
|
|
1450
|
+
* @return {!proto.ItemTransaction} returns this
|
|
1451
|
+
*/
|
|
1452
|
+
proto.ItemTransaction.prototype.setInvoiceQuantity = function(value) {
|
|
1453
|
+
return jspb.Message.setProto3FloatField(this, 35, value);
|
|
1454
|
+
};
|
|
1455
|
+
|
|
1456
|
+
|
|
1457
|
+
/**
|
|
1458
|
+
* optional bool include_vat = 36;
|
|
1459
|
+
* @return {boolean}
|
|
1460
|
+
*/
|
|
1461
|
+
proto.ItemTransaction.prototype.getIncludeVat = function() {
|
|
1462
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 36, false));
|
|
1463
|
+
};
|
|
1464
|
+
|
|
1465
|
+
|
|
1466
|
+
/**
|
|
1467
|
+
* @param {boolean} value
|
|
1468
|
+
* @return {!proto.ItemTransaction} returns this
|
|
1469
|
+
*/
|
|
1470
|
+
proto.ItemTransaction.prototype.setIncludeVat = function(value) {
|
|
1471
|
+
return jspb.Message.setProto3BooleanField(this, 36, value);
|
|
1472
|
+
};
|
|
1473
|
+
|
|
1474
|
+
|
|
1475
|
+
/**
|
|
1476
|
+
* optional float income_tax = 37;
|
|
1477
|
+
* @return {number}
|
|
1478
|
+
*/
|
|
1479
|
+
proto.ItemTransaction.prototype.getIncomeTax = function() {
|
|
1480
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 37, 0.0));
|
|
1481
|
+
};
|
|
1482
|
+
|
|
1483
|
+
|
|
1484
|
+
/**
|
|
1485
|
+
* @param {number} value
|
|
1486
|
+
* @return {!proto.ItemTransaction} returns this
|
|
1487
|
+
*/
|
|
1488
|
+
proto.ItemTransaction.prototype.setIncomeTax = function(value) {
|
|
1489
|
+
return jspb.Message.setProto3FloatField(this, 37, value);
|
|
1490
|
+
};
|
|
1491
|
+
|
|
1492
|
+
|
|
1493
|
+
/**
|
|
1494
|
+
* optional string price_before_tax = 38;
|
|
1495
|
+
* @return {string}
|
|
1496
|
+
*/
|
|
1497
|
+
proto.ItemTransaction.prototype.getPriceBeforeTax = function() {
|
|
1498
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 38, ""));
|
|
1499
|
+
};
|
|
1500
|
+
|
|
1501
|
+
|
|
1502
|
+
/**
|
|
1503
|
+
* @param {string} value
|
|
1504
|
+
* @return {!proto.ItemTransaction} returns this
|
|
1505
|
+
*/
|
|
1506
|
+
proto.ItemTransaction.prototype.setPriceBeforeTax = function(value) {
|
|
1507
|
+
return jspb.Message.setProto3StringField(this, 38, value);
|
|
1508
|
+
};
|
|
1509
|
+
|
|
1510
|
+
|
|
1301
1511
|
|
|
1302
1512
|
/**
|
|
1303
1513
|
* List of repeated fields within this message type.
|
|
@@ -3163,7 +3373,10 @@ purchaseRequisitionTransactionNumber: jspb.Message.getFieldWithDefault(msg, 20,
|
|
|
3163
3373
|
itemTransactionServiceList: jspb.Message.toObjectList(msg.getItemTransactionServiceList(),
|
|
3164
3374
|
proto.BaseItemTransactionService.toObject, includeInstance),
|
|
3165
3375
|
purchaseRequisitionQuantity: jspb.Message.getFieldWithDefault(msg, 22, ""),
|
|
3166
|
-
purchaseRequisitionPrice: jspb.Message.getFieldWithDefault(msg, 23, "")
|
|
3376
|
+
purchaseRequisitionPrice: jspb.Message.getFieldWithDefault(msg, 23, ""),
|
|
3377
|
+
includeVat: jspb.Message.getBooleanFieldWithDefault(msg, 34, false),
|
|
3378
|
+
incomeTax: jspb.Message.getFloatingPointFieldWithDefault(msg, 35, 0.0),
|
|
3379
|
+
priceBeforeTax: jspb.Message.getFieldWithDefault(msg, 36, "")
|
|
3167
3380
|
};
|
|
3168
3381
|
|
|
3169
3382
|
if (includeInstance) {
|
|
@@ -3296,6 +3509,18 @@ proto.BaseItemTransaction.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
3296
3509
|
var value = /** @type {string} */ (reader.readString());
|
|
3297
3510
|
msg.setPurchaseRequisitionPrice(value);
|
|
3298
3511
|
break;
|
|
3512
|
+
case 34:
|
|
3513
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
3514
|
+
msg.setIncludeVat(value);
|
|
3515
|
+
break;
|
|
3516
|
+
case 35:
|
|
3517
|
+
var value = /** @type {number} */ (reader.readFloat());
|
|
3518
|
+
msg.setIncomeTax(value);
|
|
3519
|
+
break;
|
|
3520
|
+
case 36:
|
|
3521
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3522
|
+
msg.setPriceBeforeTax(value);
|
|
3523
|
+
break;
|
|
3299
3524
|
default:
|
|
3300
3525
|
reader.skipField();
|
|
3301
3526
|
break;
|
|
@@ -3490,6 +3715,27 @@ proto.BaseItemTransaction.serializeBinaryToWriter = function(message, writer) {
|
|
|
3490
3715
|
f
|
|
3491
3716
|
);
|
|
3492
3717
|
}
|
|
3718
|
+
f = message.getIncludeVat();
|
|
3719
|
+
if (f) {
|
|
3720
|
+
writer.writeBool(
|
|
3721
|
+
34,
|
|
3722
|
+
f
|
|
3723
|
+
);
|
|
3724
|
+
}
|
|
3725
|
+
f = message.getIncomeTax();
|
|
3726
|
+
if (f !== 0.0) {
|
|
3727
|
+
writer.writeFloat(
|
|
3728
|
+
35,
|
|
3729
|
+
f
|
|
3730
|
+
);
|
|
3731
|
+
}
|
|
3732
|
+
f = message.getPriceBeforeTax();
|
|
3733
|
+
if (f.length > 0) {
|
|
3734
|
+
writer.writeString(
|
|
3735
|
+
36,
|
|
3736
|
+
f
|
|
3737
|
+
);
|
|
3738
|
+
}
|
|
3493
3739
|
};
|
|
3494
3740
|
|
|
3495
3741
|
|
|
@@ -3987,6 +4233,60 @@ proto.BaseItemTransaction.prototype.setPurchaseRequisitionPrice = function(value
|
|
|
3987
4233
|
};
|
|
3988
4234
|
|
|
3989
4235
|
|
|
4236
|
+
/**
|
|
4237
|
+
* optional bool include_vat = 34;
|
|
4238
|
+
* @return {boolean}
|
|
4239
|
+
*/
|
|
4240
|
+
proto.BaseItemTransaction.prototype.getIncludeVat = function() {
|
|
4241
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 34, false));
|
|
4242
|
+
};
|
|
4243
|
+
|
|
4244
|
+
|
|
4245
|
+
/**
|
|
4246
|
+
* @param {boolean} value
|
|
4247
|
+
* @return {!proto.BaseItemTransaction} returns this
|
|
4248
|
+
*/
|
|
4249
|
+
proto.BaseItemTransaction.prototype.setIncludeVat = function(value) {
|
|
4250
|
+
return jspb.Message.setProto3BooleanField(this, 34, value);
|
|
4251
|
+
};
|
|
4252
|
+
|
|
4253
|
+
|
|
4254
|
+
/**
|
|
4255
|
+
* optional float income_tax = 35;
|
|
4256
|
+
* @return {number}
|
|
4257
|
+
*/
|
|
4258
|
+
proto.BaseItemTransaction.prototype.getIncomeTax = function() {
|
|
4259
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 35, 0.0));
|
|
4260
|
+
};
|
|
4261
|
+
|
|
4262
|
+
|
|
4263
|
+
/**
|
|
4264
|
+
* @param {number} value
|
|
4265
|
+
* @return {!proto.BaseItemTransaction} returns this
|
|
4266
|
+
*/
|
|
4267
|
+
proto.BaseItemTransaction.prototype.setIncomeTax = function(value) {
|
|
4268
|
+
return jspb.Message.setProto3FloatField(this, 35, value);
|
|
4269
|
+
};
|
|
4270
|
+
|
|
4271
|
+
|
|
4272
|
+
/**
|
|
4273
|
+
* optional string price_before_tax = 36;
|
|
4274
|
+
* @return {string}
|
|
4275
|
+
*/
|
|
4276
|
+
proto.BaseItemTransaction.prototype.getPriceBeforeTax = function() {
|
|
4277
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 36, ""));
|
|
4278
|
+
};
|
|
4279
|
+
|
|
4280
|
+
|
|
4281
|
+
/**
|
|
4282
|
+
* @param {string} value
|
|
4283
|
+
* @return {!proto.BaseItemTransaction} returns this
|
|
4284
|
+
*/
|
|
4285
|
+
proto.BaseItemTransaction.prototype.setPriceBeforeTax = function(value) {
|
|
4286
|
+
return jspb.Message.setProto3StringField(this, 36, value);
|
|
4287
|
+
};
|
|
4288
|
+
|
|
4289
|
+
|
|
3990
4290
|
|
|
3991
4291
|
/**
|
|
3992
4292
|
* List of repeated fields within this message type.
|
|
@@ -376,7 +376,9 @@ updatedAt: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
|
376
376
|
documentType: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
|
377
377
|
employees: (f = msg.getEmployees()) && prisca_v1_core_employee_employee_pb.Employee.toObject(includeInstance, f),
|
|
378
378
|
approvalNote: jspb.Message.getFieldWithDefault(msg, 11, ""),
|
|
379
|
-
companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 12, "")
|
|
379
|
+
companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 12, ""),
|
|
380
|
+
groupReference: jspb.Message.getFieldWithDefault(msg, 13, ""),
|
|
381
|
+
sequence: jspb.Message.getFieldWithDefault(msg, 14, 0)
|
|
380
382
|
};
|
|
381
383
|
|
|
382
384
|
if (includeInstance) {
|
|
@@ -462,6 +464,14 @@ proto.LineOfApproval.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
462
464
|
var value = /** @type {string} */ (reader.readString());
|
|
463
465
|
msg.setCompaniesReferencesId(value);
|
|
464
466
|
break;
|
|
467
|
+
case 13:
|
|
468
|
+
var value = /** @type {string} */ (reader.readString());
|
|
469
|
+
msg.setGroupReference(value);
|
|
470
|
+
break;
|
|
471
|
+
case 14:
|
|
472
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
473
|
+
msg.setSequence(value);
|
|
474
|
+
break;
|
|
465
475
|
default:
|
|
466
476
|
reader.skipField();
|
|
467
477
|
break;
|
|
@@ -576,6 +586,20 @@ proto.LineOfApproval.serializeBinaryToWriter = function(message, writer) {
|
|
|
576
586
|
f
|
|
577
587
|
);
|
|
578
588
|
}
|
|
589
|
+
f = message.getGroupReference();
|
|
590
|
+
if (f.length > 0) {
|
|
591
|
+
writer.writeString(
|
|
592
|
+
13,
|
|
593
|
+
f
|
|
594
|
+
);
|
|
595
|
+
}
|
|
596
|
+
f = message.getSequence();
|
|
597
|
+
if (f !== 0) {
|
|
598
|
+
writer.writeInt32(
|
|
599
|
+
14,
|
|
600
|
+
f
|
|
601
|
+
);
|
|
602
|
+
}
|
|
579
603
|
};
|
|
580
604
|
|
|
581
605
|
|
|
@@ -814,6 +838,42 @@ proto.LineOfApproval.prototype.setCompaniesReferencesId = function(value) {
|
|
|
814
838
|
};
|
|
815
839
|
|
|
816
840
|
|
|
841
|
+
/**
|
|
842
|
+
* optional string group_reference = 13;
|
|
843
|
+
* @return {string}
|
|
844
|
+
*/
|
|
845
|
+
proto.LineOfApproval.prototype.getGroupReference = function() {
|
|
846
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
|
|
847
|
+
};
|
|
848
|
+
|
|
849
|
+
|
|
850
|
+
/**
|
|
851
|
+
* @param {string} value
|
|
852
|
+
* @return {!proto.LineOfApproval} returns this
|
|
853
|
+
*/
|
|
854
|
+
proto.LineOfApproval.prototype.setGroupReference = function(value) {
|
|
855
|
+
return jspb.Message.setProto3StringField(this, 13, value);
|
|
856
|
+
};
|
|
857
|
+
|
|
858
|
+
|
|
859
|
+
/**
|
|
860
|
+
* optional int32 sequence = 14;
|
|
861
|
+
* @return {number}
|
|
862
|
+
*/
|
|
863
|
+
proto.LineOfApproval.prototype.getSequence = function() {
|
|
864
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0));
|
|
865
|
+
};
|
|
866
|
+
|
|
867
|
+
|
|
868
|
+
/**
|
|
869
|
+
* @param {number} value
|
|
870
|
+
* @return {!proto.LineOfApproval} returns this
|
|
871
|
+
*/
|
|
872
|
+
proto.LineOfApproval.prototype.setSequence = function(value) {
|
|
873
|
+
return jspb.Message.setProto3IntField(this, 14, value);
|
|
874
|
+
};
|
|
875
|
+
|
|
876
|
+
|
|
817
877
|
|
|
818
878
|
|
|
819
879
|
|
|
@@ -5,6 +5,17 @@ var grpc = require('@grpc/grpc-js');
|
|
|
5
5
|
var prisca_v1_core_messaging_notification_pb = require('../../../../prisca/v1/core/messaging/notification_pb.js');
|
|
6
6
|
var prisca_v1_global_meta_meta_pb = require('../../../../prisca/v1/global/meta/meta_pb.js');
|
|
7
7
|
|
|
8
|
+
function serialize_CountUnreadNotificationEmployeeRes(arg) {
|
|
9
|
+
if (!(arg instanceof prisca_v1_core_messaging_notification_pb.CountUnreadNotificationEmployeeRes)) {
|
|
10
|
+
throw new Error('Expected argument of type CountUnreadNotificationEmployeeRes');
|
|
11
|
+
}
|
|
12
|
+
return Buffer.from(arg.serializeBinary());
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
function deserialize_CountUnreadNotificationEmployeeRes(buffer_arg) {
|
|
16
|
+
return prisca_v1_core_messaging_notification_pb.CountUnreadNotificationEmployeeRes.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17
|
+
}
|
|
18
|
+
|
|
8
19
|
function serialize_CreateNotificationReq(arg) {
|
|
9
20
|
if (!(arg instanceof prisca_v1_core_messaging_notification_pb.CreateNotificationReq)) {
|
|
10
21
|
throw new Error('Expected argument of type CreateNotificationReq');
|
|
@@ -183,6 +194,17 @@ var NotificationServiceService = exports.NotificationServiceService = {
|
|
|
183
194
|
responseSerialize: serialize_NotificationEmployeeItem,
|
|
184
195
|
responseDeserialize: deserialize_NotificationEmployeeItem,
|
|
185
196
|
},
|
|
197
|
+
countUnReadNotificationEmployee: {
|
|
198
|
+
path: '/NotificationService/CountUnReadNotificationEmployee',
|
|
199
|
+
requestStream: false,
|
|
200
|
+
responseStream: false,
|
|
201
|
+
requestType: prisca_v1_core_messaging_notification_pb.EmptyMessage,
|
|
202
|
+
responseType: prisca_v1_core_messaging_notification_pb.CountUnreadNotificationEmployeeRes,
|
|
203
|
+
requestSerialize: serialize_EmptyMessage,
|
|
204
|
+
requestDeserialize: deserialize_EmptyMessage,
|
|
205
|
+
responseSerialize: serialize_CountUnreadNotificationEmployeeRes,
|
|
206
|
+
responseDeserialize: deserialize_CountUnreadNotificationEmployeeRes,
|
|
207
|
+
},
|
|
186
208
|
};
|
|
187
209
|
|
|
188
210
|
exports.NotificationServiceClient = grpc.makeGenericClientConstructor(NotificationServiceService, 'NotificationService');
|