~openerp-venezuela/openerp-venezuela-localization/trunk

« back to all changes in this revision

Viewing changes to l10n_ve_withholding_iva/report/withholding_vat.py

[MERGE] OVL is getting Documented

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
        })
60
60
 
61
61
    def _get_user(self):
62
 
        
 
62
        """ Return current user
 
63
        """
63
64
        return self.pool.get('res.users').browse(self.cr, self.uid, self.uid)
64
65
 
65
66
 
66
67
    def _get_partner_addr2(self, idp=False):
 
68
        """ Return address2 partner
 
69
        """
67
70
        if not idp:
68
71
            return []
69
72
 
81
84
        return addr_inv 
82
85
 
83
86
    def _get_tipo_doc(self, tipo=None):
 
87
        """ Return type doc
 
88
        """
84
89
        if not tipo:
85
90
            return []
86
91
 
90
95
 
91
96
 
92
97
 
93
 
    def _get_totales(self, comp_id):        
 
98
    def _get_totales(self, comp_id):
 
99
        """ Return total amount
 
100
        """
94
101
        if not comp_id:
95
102
            return []
96
103
 
230
237
        self.ttretencion = tot_iva_ret.get('s',0.0) - tot_iva_ret.get('r',0.0)
231
238
        return lst_comp
232
239
 
233
 
    def _get_tot_gral_compra(self): 
 
240
    def _get_tot_gral_compra(self):
 
241
        """ Return overall total purchase
 
242
        """
234
243
        return self.ttcompra
235
244
 
236
 
    def _get_tot_gral_compra_scf(self): 
 
245
    def _get_tot_gral_compra_scf(self):
 
246
        """ Return total general not entitled to tax credit
 
247
        """
237
248
        return self.ttcompra_sdcf
238
249
 
239
 
    def _get_tot_gral_base(self): 
 
250
    def _get_tot_gral_base(self):
 
251
        """ Return total general base
 
252
        """
240
253
        return self.ttbase 
241
254
        
242
 
    def _get_tot_gral_iva(self): 
 
255
    def _get_tot_gral_iva(self):
 
256
        """ Return total general iva
 
257
        """
243
258
        return self.ttiva
244
259
 
245
 
    def _get_tot_gral_retencion(self): 
 
260
    def _get_tot_gral_retencion(self):
 
261
        """ Return total general retention
 
262
        """
246
263
        return self.ttretencion 
247
264
 
248
265
    def _get_rif(self, vat=''):
 
266
        """ Return RIF
 
267
        """
249
268
        if not vat:
250
269
            return []
251
270
        return vat[2:].replace(' ', '')
252
271
 
253
 
    def _get_tot_linea(self, base, iva): 
 
272
    def _get_tot_linea(self, base, iva):
 
273
        """ Return linea total
 
274
        """
254
275
        return base + iva
255
276
 
256
277