|
@@ -213,14 +213,6 @@ function report_purchases (reporting){
|
|
|
return item.id === attachment_ids;
|
|
|
}).shift();
|
|
|
},
|
|
|
- // getAttachment : function(attachment_ids){
|
|
|
- // var self = this;
|
|
|
- // return _.map(_.filter(self.attachment,function(item){
|
|
|
- // return item.id === attachment_ids;
|
|
|
- // }),function(map){
|
|
|
- // return map.datas;
|
|
|
- // });
|
|
|
- // },
|
|
|
|
|
|
// Detalle del registro
|
|
|
fect_generar: function(invoices){
|
|
@@ -298,7 +290,6 @@ function report_purchases (reporting){
|
|
|
adjunto = self.getAttachment(invoice.attachment_ids[0]);
|
|
|
imagen = _.flatten(adjunto);
|
|
|
|
|
|
- // img = 'data:'+imagen[1]+'+;base64,'+imagen[5]+'';
|
|
|
if(adjunto == undefined){
|
|
|
icons = '<a class="" href="javascript:void(0)" title="Descarga no disponible"><i class="fa fa-file fa-lg" aria-hidden="true"></i></a> <a class="" href="javascript:void(0)" title="Vista previa no disponible"><i class="fa fa-eye-slash fa-lg" aria-hidden="true"></i></a>';
|
|
|
}else{
|
|
@@ -333,7 +324,6 @@ function report_purchases (reporting){
|
|
|
period_name : invoice.period_id[1],
|
|
|
attachment_ids : adjunto,
|
|
|
download_icon : icons,
|
|
|
- // miniatura : ' <a class="" href="'+img+'" data-lightbox="roadtrip"><img src="'+img+'" style="height:50px;width:50px;"></a>'
|
|
|
});
|
|
|
});
|
|
|
self.newInvoice = data;
|