Commit 27af27ccf69093c0751448151b51bbc643e3c6b7
Exists in
master
and in
1 other branch
Merge branch 'master' into 'master'
Master See merge request !3
Showing
2 changed files
Show diff stats
src/js/controller.js
| ... | ... | @@ -19,6 +19,27 @@ angular.module('focaModalFacturaDetalle') |
| 19 | 19 | $scope.cerrar = function() { |
| 20 | 20 | $uibModalInstance.dismiss(); |
| 21 | 21 | }; |
| 22 | + | |
| 23 | + switch(factura.TCO){ | |
| 24 | + case 'NC': | |
| 25 | + $scope.factura.tipoComprobante = 'Nota de crédito'; | |
| 26 | + break; | |
| 27 | + case 'CI': | |
| 28 | + $scope.factura.tipoComprobante = 'Comprobante interno'; | |
| 29 | + break; | |
| 30 | + case 'ND': | |
| 31 | + $scope.factura.tipoComprobante = 'Nota de débito'; | |
| 32 | + break; | |
| 33 | + case 'NI': | |
| 34 | + $scope.factura.tipoComprobante = 'No de débito interno'; | |
| 35 | + break; | |
| 36 | + case 'TI': | |
| 37 | + $scope.factura.tipoComprobante = 'Ticket'; | |
| 38 | + break; | |
| 39 | + case 'FT': | |
| 40 | + $scope.factura.tipoComprobante = 'Factura'; | |
| 41 | + break; | |
| 42 | + } | |
| 22 | 43 | } |
| 23 | 44 | ] |
| 24 | 45 | ); |
src/views/foca-modal-factura-detalle.html
| ... | ... | @@ -2,11 +2,11 @@ |
| 2 | 2 | <div class="row"> |
| 3 | 3 | <div class="col-md-4"></div> |
| 4 | 4 | <div class="col-md-4 text-center"> |
| 5 | - <strong>Factura | |
| 5 | + <strong>{{factura.tipoComprobante}} | |
| 6 | 6 | <br>{{factura.TIP}}</strong> |
| 7 | 7 | </div> |
| 8 | 8 | <div class="col-md-4 text-center text-md-right"> |
| 9 | - {{factura.numeroFactura}} | |
| 9 | + {{factura.SUC | rellenarDigitos: 4: 0}}-{{factura.NCO | rellenarDigitos: 8: 0}} | |
| 10 | 10 | <br class="d-none d-md-block">{{factura.FECHA_COMPROBANTE | date: 'dd/MM/yyyy'}} |
| 11 | 11 | </div> |
| 12 | 12 | </div> |
| ... | ... | @@ -34,10 +34,10 @@ |
| 34 | 34 | <tbody> |
| 35 | 35 | <tr ng-repeat="detalle in detalles"> |
| 36 | 36 | <td class="border-right border-top-0"><small>{{detalle.COD | rellenarDigitos: 2: 0}}-{{detalle.ART | rellenarDigitos: 5: 0}}</small></td> |
| 37 | - <td class="border-right border-top-0"><small ng-bind="detalle.CAN | number: 2"></small></td> | |
| 37 | + <td class="border-right border-top-0 text-right"><small ng-bind="detalle.CAN | number: 2"></small></td> | |
| 38 | 38 | <td class="border-right border-top-0"><small ng-bind="detalle.TIO"></small></td> |
| 39 | - <td class="border-right border-top-0"><small ng-bind="detalle.PUN | number: 2"></small></td> | |
| 40 | - <td class="border-top-0"><small ng-bind="detalle.PUN * detalle.CAN | number: 2"></small></td> | |
| 39 | + <td class="border-right border-top-0 text-right"><small ng-bind="detalle.PUN | number: 2"></small></td> | |
| 40 | + <td class="border-top-0 text-right"><small ng-bind="detalle.PUN * detalle.CAN | number: 2"></small></td> | |
| 41 | 41 | </tr> |
| 42 | 42 | </tbody> |
| 43 | 43 | </table> |
| ... | ... | @@ -53,11 +53,11 @@ |
| 53 | 53 | </tbody> |
| 54 | 54 | <tbody> |
| 55 | 55 | <tr> |
| 56 | - <td ng-bind="factura.NETO | number: 2"></td> | |
| 57 | - <td ng-bind="factura.IVA | number: 2"></td> | |
| 58 | - <td ng-bind="factura.PERCEPCION_IIBB"></td> | |
| 59 | - <td ng-bind="factura.IMPUESTOS_INTERNOS | number: 2"></td> | |
| 60 | - <td ng-bind="factura.PERCECPION_IVA | number: 2"></td> | |
| 56 | + <td class="text-right" ng-bind="factura.NETO | number: 2"></td> | |
| 57 | + <td class="text-right" ng-bind="factura.IVA | number: 2"></td> | |
| 58 | + <td class="text-right" ng-bind="factura.PERCEPCION_IIBB"></td> | |
| 59 | + <td class="text-right" ng-bind="factura.IMPUESTOS_INTERNOS | number: 2"></td> | |
| 60 | + <td class="text-right" ng-bind="factura.PERCECPION_IVA | number: 2"></td> | |
| 61 | 61 | </tr> |
| 62 | 62 | </tbody> |
| 63 | 63 | <tbody> |
| ... | ... | @@ -74,8 +74,8 @@ |
| 74 | 74 | <td></td> |
| 75 | 75 | <td></td> |
| 76 | 76 | <td ng-bind="factura.moneda.CODIGO_AFIP"></td> |
| 77 | - <td ng-bind="factura.COTIZACION | number: 2"></td> | |
| 78 | - <td ng-bind="factura.TOTAL | number: 2"></td> | |
| 77 | + <td class="text-right" ng-bind="factura.COTIZACION | number: 2"></td> | |
| 78 | + <td class="text-right" ng-bind="factura.TOTAL | number: 2"></td> | |
| 79 | 79 | </tr> |
| 80 | 80 | </tbody> |
| 81 | 81 | </table> |