@dhyasama/totem-models 8.61.0 → 8.62.0
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/lib/Financials.js +0 -27
- package/package.json +1 -1
package/lib/Financials.js
CHANGED
|
@@ -602,18 +602,6 @@ module.exports = function(mongoose, config) {
|
|
|
602
602
|
|
|
603
603
|
};
|
|
604
604
|
|
|
605
|
-
Financials.statics.getForCustomer = function getForCustomer(customerId, cb) {
|
|
606
|
-
|
|
607
|
-
var self = this;
|
|
608
|
-
|
|
609
|
-
var query = self.find({
|
|
610
|
-
'customer': customerId
|
|
611
|
-
});
|
|
612
|
-
|
|
613
|
-
query.exec(cb);
|
|
614
|
-
|
|
615
|
-
};
|
|
616
|
-
|
|
617
605
|
Financials.statics.getManagedServicesForReview = function getManagedServicesForReview(customerId, cb) {
|
|
618
606
|
|
|
619
607
|
var self = this;
|
|
@@ -659,21 +647,6 @@ module.exports = function(mongoose, config) {
|
|
|
659
647
|
|
|
660
648
|
};
|
|
661
649
|
|
|
662
|
-
Financials.statics.getToSend = function getToSend(uuid, cb) {
|
|
663
|
-
|
|
664
|
-
var self = this;
|
|
665
|
-
|
|
666
|
-
var query = self.findOne({
|
|
667
|
-
'snapshots.uuid': uuid
|
|
668
|
-
});
|
|
669
|
-
|
|
670
|
-
query.populate('organization', 'name logoUrl');
|
|
671
|
-
query.populate('customer', 'name logoUrl customer.totemUrl');
|
|
672
|
-
|
|
673
|
-
query.exec(cb);
|
|
674
|
-
|
|
675
|
-
};
|
|
676
|
-
|
|
677
650
|
Financials.statics.removeCustomerFinancials = function removeCustomerFinancials(customerId, cb) {
|
|
678
651
|
|
|
679
652
|
// this is only used to wipe out financials created by the google sheet import process
|