|
@@ -93,214 +93,214 @@ openerp.pagare_anillos = function (instance, local) {
|
|
|
|
|
|
// pdfDoc.page=1;
|
|
|
|
|
|
- pdfDoc.addImage("data:image/png;base64," + AccountInvoice[0].company_id[0].logo, 'png', 10, 10, 50, 30);
|
|
|
-
|
|
|
- _.each(self.AccountInvoiceLine, function(item){
|
|
|
- docItem.push({
|
|
|
- name : item.name,
|
|
|
- quantity : item.quantity,
|
|
|
- price_unit : accounting.formatMoney(item.price_unit,'',CurrencyBase.decimal_places, CurrencyBase.thousands_separator, CurrencyBase.decimal_separator),
|
|
|
- price_subtotal : accounting.formatMoney(item.price_subtotal,'',CurrencyBase.decimal_places, CurrencyBase.thousands_separator, CurrencyBase.decimal_separator),
|
|
|
- });
|
|
|
- });
|
|
|
- getColumns.push({
|
|
|
- title : 'Descripción',
|
|
|
- halign: 'center',
|
|
|
- dataKey: 'name'
|
|
|
- });
|
|
|
- getColumns.push({
|
|
|
- title : 'Cantidad',
|
|
|
- halign: 'center',
|
|
|
- dataKey: 'quantity'
|
|
|
- });
|
|
|
- getColumns.push({
|
|
|
- title : 'P. Unitario',
|
|
|
- halign: 'center',
|
|
|
- dataKey: 'price_unit'
|
|
|
- });
|
|
|
- getColumns.push({
|
|
|
- title : 'Subtotal',
|
|
|
- halign: 'center',
|
|
|
- dataKey: 'price_subtotal'
|
|
|
- });
|
|
|
-
|
|
|
- pdfDoc.autoTable(getColumns, docItem, {
|
|
|
- theme: 'grid',
|
|
|
- styles: {
|
|
|
- overflow: 'linebreak',
|
|
|
- columnWidth: 'auto',
|
|
|
- fontSize: 7
|
|
|
- },
|
|
|
- headerStyles: {
|
|
|
- textColor: 20,
|
|
|
- fillColor: null,
|
|
|
- lineWidth: 0.1,
|
|
|
- fontSize: 9
|
|
|
- },
|
|
|
- columnStyles: {
|
|
|
- name : {columnWidth: 'auto'},
|
|
|
- quantity : {columnWidth: 25, halign:'right'},
|
|
|
- price_unit : {columnWidth: 25, halign:'right'},
|
|
|
- price_subtotal : {columnWidth: 25, halign:'right'},
|
|
|
- },
|
|
|
-
|
|
|
- margin: { top: 200, horizontal: 10},
|
|
|
-
|
|
|
- addPageContent: function (data) {
|
|
|
-
|
|
|
-
|
|
|
- pdfDoc.addImage("data:image/png;base64," + AccountInvoice[0].company_id[0].logo, 'png', 10, 10, 50, 30);
|
|
|
-
|
|
|
- pdfDoc.setFontSize(11);
|
|
|
- pdfDoc.setFontStyle('bold');
|
|
|
- pdfDoc.setTextColor(20);
|
|
|
- pdfDoc.text(80, 25,'SOLICITUD DE LINEA DE CREDITO');
|
|
|
-
|
|
|
- pdfDoc.text(80, 30,'Empresa: El señor de los anillos');
|
|
|
- pdfDoc.setFontSize(10);
|
|
|
- pdfDoc.setFontStyle('normal');
|
|
|
- pdfDoc.setTextColor(40);
|
|
|
- pdfDoc.rect(10, 45, 95, 7, 'S');
|
|
|
- pdfDoc.text(12,50,'SUCURSAL: ' );
|
|
|
- pdfDoc.rect(105, 45, 95, 7, 'S');
|
|
|
- pdfDoc.text(110,50,'Fecha de Operación: ' + moment(AccountInvoice[0].date_invoice).format('DD/MM/YYYY'));
|
|
|
- pdfDoc.rect(10, 55, 95, 7, 'S');
|
|
|
- pdfDoc.setFontSize(10);
|
|
|
- pdfDoc.setFontStyle('normal');
|
|
|
- pdfDoc.text(12,60,'Vendedor: ' + AccountInvoice[0].user_name);
|
|
|
- pdfDoc.setFontSize(10);
|
|
|
- pdfDoc.setFontStyle('bold');
|
|
|
- pdfDoc.setTextColor(40);
|
|
|
- pdfDoc.rect(105, 55, 95, 7, 'S');
|
|
|
- pdfDoc.setFontSize(10);
|
|
|
- pdfDoc.setFontStyle('normal');
|
|
|
- pdfDoc.text(110,60,'Número de Operación: ' + AccountInvoice[0].origin + ' ' +AccountInvoice[0].number);
|
|
|
- pdfDoc.setFontSize(10);
|
|
|
- pdfDoc.setFontStyle('bold');
|
|
|
- pdfDoc.setTextColor(40);
|
|
|
- pdfDoc.text(10, 70,'Datos del Cliente o Empresa');
|
|
|
-
|
|
|
- // Cuadro principal
|
|
|
- pdfDoc.rect(10, 76, 105 , 7, 'S');
|
|
|
- // Cuadro fecha de emision
|
|
|
- pdfDoc.rect(10, 76, 105, 7, 'S');
|
|
|
- pdfDoc.setFontSize(8);
|
|
|
- pdfDoc.setFontStyle('normal');
|
|
|
- pdfDoc.setTextColor(20);
|
|
|
- pdfDoc.text(12, 80,'Fecha de emisión: ');
|
|
|
- pdfDoc.text(45, 80, moment(AccountInvoice[0].date_invoice).format('DD/MM/YYYY'));
|
|
|
- // RUC / Documento de identidad No.
|
|
|
- pdfDoc.rect(115, 76, 90, 7, 'S');
|
|
|
- pdfDoc.text(120, 80,'RUC / Doc. de Identidad No.: ' + AccountInvoice[0].partner_id[0].ruc);
|
|
|
- // Nombre o Razon Social
|
|
|
- pdfDoc.rect(10, 83, 105, 7, 'S');
|
|
|
- pdfDoc.text(12, 88,'Nombre o Razón Social: ' + AccountInvoice[0].partner_id[0].name);
|
|
|
- // Telefono
|
|
|
- pdfDoc.rect(115, 83, 90, 7, 'S');
|
|
|
- pdfDoc.text(120, 88,'Teléfono: ' + self.valorNull(AccountInvoice[0].partner_id[0].phone));
|
|
|
-
|
|
|
- // Direccion
|
|
|
- pdfDoc.rect(10, 90, 105, 7, 'S');
|
|
|
- pdfDoc.text(12, 94,'Direccion: ' + self.valorNull(AccountInvoice[0].partner_id[0].address));
|
|
|
-
|
|
|
- // celular
|
|
|
- pdfDoc.rect(115, 90, 90, 7, 'S');
|
|
|
- pdfDoc.text(120, 94,'Celular: ' + self.valorNull(AccountInvoice[0].partner_id[0].mobile));
|
|
|
-
|
|
|
- // Direccion
|
|
|
- pdfDoc.rect(10, 97, 105, 7, 'S');
|
|
|
- pdfDoc.text(12, 101,'Barrio: ' + self.valorNull(AccountInvoice[0].partner_id[0].barrio));
|
|
|
-
|
|
|
- // celular
|
|
|
- pdfDoc.rect(115, 97, 90, 7, 'S');
|
|
|
- pdfDoc.text(120, 101,'Ciudad: ' + self.valorNull(AccountInvoice[0].partner_id[0].city));
|
|
|
-
|
|
|
- // Direccion
|
|
|
- pdfDoc.rect(10, 104, 105, 7, 'S');
|
|
|
- pdfDoc.text(12, 108,'Estado Civil: ' + self.valorNull(AccountInvoice[0].partner_id[0].estado_civil));
|
|
|
-
|
|
|
- // celular
|
|
|
- pdfDoc.rect(115, 104, 90, 7, 'S');
|
|
|
- pdfDoc.text(120, 108,'Email: ' + self.valorNull(AccountInvoice[0].partner_id[0].email));
|
|
|
-
|
|
|
- var tipo;
|
|
|
- if(AccountInvoice[0].partner_id[0].casa_propia == true){
|
|
|
- tipo = "Vivienda Propia";
|
|
|
- }else{
|
|
|
- tipo = "Vivienda Alquilada";
|
|
|
- }
|
|
|
- // TIPO DE VIVIENDA
|
|
|
- pdfDoc.rect(10, 111, 105, 7, 'S');
|
|
|
- pdfDoc.text(12, 115,'Tipo de Vivienda: ' + self.valorNull(tipo));
|
|
|
-
|
|
|
- // celular
|
|
|
- pdfDoc.rect(115, 111, 90, 7, 'S');
|
|
|
- // pdfDoc.text(120, 100,'Vivienda Alquilada: ' + self.valorNull(AccountInvoice[0].partner_id[0].casa_alquiler));
|
|
|
-
|
|
|
- // Direccion
|
|
|
- pdfDoc.rect(10, 118, 105, 7, 'S');
|
|
|
- pdfDoc.text(12, 122,'Empresa o Lugar de Trabajo: ' + self.valorNull(AccountInvoice[0].partner_id[0].trab_empresa));
|
|
|
-
|
|
|
- // celular
|
|
|
- pdfDoc.rect(115, 118, 90, 7, 'S');
|
|
|
- pdfDoc.text(120, 122,'Teléfono: ' + self.valorNull(AccountInvoice[0].partner_id[0].trab_telefono));
|
|
|
-
|
|
|
- // Direccion
|
|
|
- pdfDoc.rect(10, 125, 105, 7, 'S');
|
|
|
- pdfDoc.text(12, 129,'Dirección: ' + self.valorNull(AccountInvoice[0].partner_id[0].trab_street));
|
|
|
-
|
|
|
- // celular
|
|
|
- pdfDoc.rect(115, 125, 90, 7, 'S');
|
|
|
- pdfDoc.text(120, 129,'Ciudad: ' + self.valorNull(AccountInvoice[0].partner_id[0].trab_city));
|
|
|
-
|
|
|
- // Direccion
|
|
|
- pdfDoc.rect(10, 132, 105, 7, 'S');
|
|
|
- pdfDoc.text(12, 136,'Cargo: ' + self.valorNull(AccountInvoice[0].partner_id[0].trab_cargo));
|
|
|
-
|
|
|
- // celular
|
|
|
- pdfDoc.rect(115, 132, 90, 7, 'S');
|
|
|
- pdfDoc.text(120, 136,'Antiguedad: ' + self.valorNull(AccountInvoice[0].partner_id[0].trab_antiguedad_a) + ',' + self.valorNull(AccountInvoice[0].partner_id[0].trab_antiguedad_m));
|
|
|
-
|
|
|
- // salario
|
|
|
- pdfDoc.rect(10, 139, 105, 7, 'S');
|
|
|
- pdfDoc.text(12, 143,'Salario: ' + self.valorNull(AccountInvoice[0].partner_id[0].trab_salario));
|
|
|
-
|
|
|
- // ref
|
|
|
- // pdfDoc.rect(105, 133, 95, 7, 'S');
|
|
|
- // pdfDoc.text(125, 137,'Vivienda Alquilada: ' + self.valorNull(AccountInvoice[0].partner_id[0].casa_alquiler));
|
|
|
-
|
|
|
- pdfDoc.setFontSize(8);
|
|
|
- pdfDoc.setFontStyle('normal');
|
|
|
- pdfDoc.text(12,150,'Referencias Comerciales:');
|
|
|
-
|
|
|
- i=0;
|
|
|
- _.each(AccountInvoice[0].partner_id[0].ref_comercial_ids,function(item){
|
|
|
- pdfDoc.setFontSize(8);
|
|
|
- pdfDoc.setFontStyle('normal');
|
|
|
- pdfDoc.text(12+i,155, '' + item.name);
|
|
|
- pdfDoc.text(55+i,155, '' + item.phone);
|
|
|
- i=95;
|
|
|
- });
|
|
|
-
|
|
|
- pdfDoc.setFontSize(8);
|
|
|
- pdfDoc.setFontStyle('normal');
|
|
|
- pdfDoc.text(12,178,'Referencias Personales:');
|
|
|
-
|
|
|
- i=0;
|
|
|
- _.each(AccountInvoice[0].partner_id[0].ref_personal_ids,function(item){
|
|
|
- pdfDoc.setFontSize(8);
|
|
|
- pdfDoc.setFontStyle('normal');
|
|
|
- pdfDoc.text(12+i,182, '- ' + item.email);
|
|
|
- pdfDoc.text(30+i,182, '' + item.name);
|
|
|
- pdfDoc.text(65+i,182, '' + item.phone);
|
|
|
- i=95;
|
|
|
-
|
|
|
- });
|
|
|
-
|
|
|
- pdfDoc.setFontSize(10);
|
|
|
- pdfDoc.setFontStyle('bold');
|
|
|
- pdfDoc.setTextColor(40);
|
|
|
- pdfDoc.text(85,195,'ESPECIFICACIÓN DE VENTAS ');
|
|
|
+ // pdfDoc.addImage("data:image/png;base64," + AccountInvoice[0].company_id[0].logo, 'png', 10, 10, 50, 30);
|
|
|
+ //
|
|
|
+ // _.each(self.AccountInvoiceLine, function(item){
|
|
|
+ // docItem.push({
|
|
|
+ // name : item.name,
|
|
|
+ // quantity : item.quantity,
|
|
|
+ // price_unit : accounting.formatMoney(item.price_unit,'',CurrencyBase.decimal_places, CurrencyBase.thousands_separator, CurrencyBase.decimal_separator),
|
|
|
+ // price_subtotal : accounting.formatMoney(item.price_subtotal,'',CurrencyBase.decimal_places, CurrencyBase.thousands_separator, CurrencyBase.decimal_separator),
|
|
|
+ // });
|
|
|
+ // });
|
|
|
+ // getColumns.push({
|
|
|
+ // title : 'Descripción',
|
|
|
+ // halign: 'center',
|
|
|
+ // dataKey: 'name'
|
|
|
+ // });
|
|
|
+ // getColumns.push({
|
|
|
+ // title : 'Cantidad',
|
|
|
+ // halign: 'center',
|
|
|
+ // dataKey: 'quantity'
|
|
|
+ // });
|
|
|
+ // getColumns.push({
|
|
|
+ // title : 'P. Unitario',
|
|
|
+ // halign: 'center',
|
|
|
+ // dataKey: 'price_unit'
|
|
|
+ // });
|
|
|
+ // getColumns.push({
|
|
|
+ // title : 'Subtotal',
|
|
|
+ // halign: 'center',
|
|
|
+ // dataKey: 'price_subtotal'
|
|
|
+ // });
|
|
|
+ //
|
|
|
+ // pdfDoc.autoTable(getColumns, docItem, {
|
|
|
+ // theme: 'grid',
|
|
|
+ // styles: {
|
|
|
+ // overflow: 'linebreak',
|
|
|
+ // columnWidth: 'auto',
|
|
|
+ // fontSize: 7
|
|
|
+ // },
|
|
|
+ // headerStyles: {
|
|
|
+ // textColor: 20,
|
|
|
+ // fillColor: null,
|
|
|
+ // lineWidth: 0.1,
|
|
|
+ // fontSize: 9
|
|
|
+ // },
|
|
|
+ // columnStyles: {
|
|
|
+ // name : {columnWidth: 'auto'},
|
|
|
+ // quantity : {columnWidth: 25, halign:'right'},
|
|
|
+ // price_unit : {columnWidth: 25, halign:'right'},
|
|
|
+ // price_subtotal : {columnWidth: 25, halign:'right'},
|
|
|
+ // },
|
|
|
+ //
|
|
|
+ // margin: { top: 200, horizontal: 10},
|
|
|
+ //
|
|
|
+ // addPageContent: function (data) {
|
|
|
+
|
|
|
+ //
|
|
|
+ // pdfDoc.addImage("data:image/png;base64," + AccountInvoice[0].company_id[0].logo, 'png', 10, 10, 50, 30);
|
|
|
+ //
|
|
|
+ // pdfDoc.setFontSize(11);
|
|
|
+ // pdfDoc.setFontStyle('bold');
|
|
|
+ // pdfDoc.setTextColor(20);
|
|
|
+ // pdfDoc.text(80, 25,'SOLICITUD DE LINEA DE CREDITO');
|
|
|
+ //
|
|
|
+ // pdfDoc.text(80, 30,'Empresa: El señor de los anillos');
|
|
|
+ // pdfDoc.setFontSize(10);
|
|
|
+ // pdfDoc.setFontStyle('normal');
|
|
|
+ // pdfDoc.setTextColor(40);
|
|
|
+ // pdfDoc.rect(10, 45, 95, 7, 'S');
|
|
|
+ // pdfDoc.text(12,50,'SUCURSAL: ' );
|
|
|
+ // pdfDoc.rect(105, 45, 95, 7, 'S');
|
|
|
+ // pdfDoc.text(110,50,'Fecha de Operación: ' + moment(AccountInvoice[0].date_invoice).format('DD/MM/YYYY'));
|
|
|
+ // pdfDoc.rect(10, 55, 95, 7, 'S');
|
|
|
+ // pdfDoc.setFontSize(10);
|
|
|
+ // pdfDoc.setFontStyle('normal');
|
|
|
+ // pdfDoc.text(12,60,'Vendedor: ' + AccountInvoice[0].user_name);
|
|
|
+ // pdfDoc.setFontSize(10);
|
|
|
+ // pdfDoc.setFontStyle('bold');
|
|
|
+ // pdfDoc.setTextColor(40);
|
|
|
+ // pdfDoc.rect(105, 55, 95, 7, 'S');
|
|
|
+ // pdfDoc.setFontSize(10);
|
|
|
+ // pdfDoc.setFontStyle('normal');
|
|
|
+ // pdfDoc.text(110,60,'Número de Operación: ' + AccountInvoice[0].origin + ' ' +AccountInvoice[0].number);
|
|
|
+ // pdfDoc.setFontSize(10);
|
|
|
+ // pdfDoc.setFontStyle('bold');
|
|
|
+ // pdfDoc.setTextColor(40);
|
|
|
+ // pdfDoc.text(10, 70,'Datos del Cliente o Empresa');
|
|
|
+ //
|
|
|
+ // // Cuadro principal
|
|
|
+ // pdfDoc.rect(10, 76, 105 , 7, 'S');
|
|
|
+ // // Cuadro fecha de emision
|
|
|
+ // pdfDoc.rect(10, 76, 105, 7, 'S');
|
|
|
+ // pdfDoc.setFontSize(8);
|
|
|
+ // pdfDoc.setFontStyle('normal');
|
|
|
+ // pdfDoc.setTextColor(20);
|
|
|
+ // pdfDoc.text(12, 80,'Fecha de emisión: ');
|
|
|
+ // pdfDoc.text(45, 80, moment(AccountInvoice[0].date_invoice).format('DD/MM/YYYY'));
|
|
|
+ // // RUC / Documento de identidad No.
|
|
|
+ // pdfDoc.rect(115, 76, 90, 7, 'S');
|
|
|
+ // pdfDoc.text(120, 80,'RUC / Doc. de Identidad No.: ' + AccountInvoice[0].partner_id[0].ruc);
|
|
|
+ // // Nombre o Razon Social
|
|
|
+ // pdfDoc.rect(10, 83, 105, 7, 'S');
|
|
|
+ // pdfDoc.text(12, 88,'Nombre o Razón Social: ' + AccountInvoice[0].partner_id[0].name);
|
|
|
+ // // Telefono
|
|
|
+ // pdfDoc.rect(115, 83, 90, 7, 'S');
|
|
|
+ // pdfDoc.text(120, 88,'Teléfono: ' + self.valorNull(AccountInvoice[0].partner_id[0].phone));
|
|
|
+ //
|
|
|
+ // // Direccion
|
|
|
+ // pdfDoc.rect(10, 90, 105, 7, 'S');
|
|
|
+ // pdfDoc.text(12, 94,'Direccion: ' + self.valorNull(AccountInvoice[0].partner_id[0].address));
|
|
|
+ //
|
|
|
+ // // celular
|
|
|
+ // pdfDoc.rect(115, 90, 90, 7, 'S');
|
|
|
+ // pdfDoc.text(120, 94,'Celular: ' + self.valorNull(AccountInvoice[0].partner_id[0].mobile));
|
|
|
+ //
|
|
|
+ // // Direccion
|
|
|
+ // pdfDoc.rect(10, 97, 105, 7, 'S');
|
|
|
+ // pdfDoc.text(12, 101,'Barrio: ' + self.valorNull(AccountInvoice[0].partner_id[0].barrio));
|
|
|
+ //
|
|
|
+ // // celular
|
|
|
+ // pdfDoc.rect(115, 97, 90, 7, 'S');
|
|
|
+ // pdfDoc.text(120, 101,'Ciudad: ' + self.valorNull(AccountInvoice[0].partner_id[0].city));
|
|
|
+ //
|
|
|
+ // // Direccion
|
|
|
+ // pdfDoc.rect(10, 104, 105, 7, 'S');
|
|
|
+ // pdfDoc.text(12, 108,'Estado Civil: ' + self.valorNull(AccountInvoice[0].partner_id[0].estado_civil));
|
|
|
+ //
|
|
|
+ // // celular
|
|
|
+ // pdfDoc.rect(115, 104, 90, 7, 'S');
|
|
|
+ // pdfDoc.text(120, 108,'Email: ' + self.valorNull(AccountInvoice[0].partner_id[0].email));
|
|
|
+ //
|
|
|
+ // var tipo;
|
|
|
+ // if(AccountInvoice[0].partner_id[0].casa_propia == true){
|
|
|
+ // tipo = "Vivienda Propia";
|
|
|
+ // }else{
|
|
|
+ // tipo = "Vivienda Alquilada";
|
|
|
+ // }
|
|
|
+ // // TIPO DE VIVIENDA
|
|
|
+ // pdfDoc.rect(10, 111, 105, 7, 'S');
|
|
|
+ // pdfDoc.text(12, 115,'Tipo de Vivienda: ' + self.valorNull(tipo));
|
|
|
+ //
|
|
|
+ // // celular
|
|
|
+ // pdfDoc.rect(115, 111, 90, 7, 'S');
|
|
|
+ // // pdfDoc.text(120, 100,'Vivienda Alquilada: ' + self.valorNull(AccountInvoice[0].partner_id[0].casa_alquiler));
|
|
|
+ //
|
|
|
+ // // Direccion
|
|
|
+ // pdfDoc.rect(10, 118, 105, 7, 'S');
|
|
|
+ // pdfDoc.text(12, 122,'Empresa o Lugar de Trabajo: ' + self.valorNull(AccountInvoice[0].partner_id[0].trab_empresa));
|
|
|
+ //
|
|
|
+ // // celular
|
|
|
+ // pdfDoc.rect(115, 118, 90, 7, 'S');
|
|
|
+ // pdfDoc.text(120, 122,'Teléfono: ' + self.valorNull(AccountInvoice[0].partner_id[0].trab_telefono));
|
|
|
+ //
|
|
|
+ // // Direccion
|
|
|
+ // pdfDoc.rect(10, 125, 105, 7, 'S');
|
|
|
+ // pdfDoc.text(12, 129,'Dirección: ' + self.valorNull(AccountInvoice[0].partner_id[0].trab_street));
|
|
|
+ //
|
|
|
+ // // celular
|
|
|
+ // pdfDoc.rect(115, 125, 90, 7, 'S');
|
|
|
+ // pdfDoc.text(120, 129,'Ciudad: ' + self.valorNull(AccountInvoice[0].partner_id[0].trab_city));
|
|
|
+ //
|
|
|
+ // // Direccion
|
|
|
+ // pdfDoc.rect(10, 132, 105, 7, 'S');
|
|
|
+ // pdfDoc.text(12, 136,'Cargo: ' + self.valorNull(AccountInvoice[0].partner_id[0].trab_cargo));
|
|
|
+ //
|
|
|
+ // // celular
|
|
|
+ // pdfDoc.rect(115, 132, 90, 7, 'S');
|
|
|
+ // pdfDoc.text(120, 136,'Antiguedad: ' + self.valorNull(AccountInvoice[0].partner_id[0].trab_antiguedad_a) + ',' + self.valorNull(AccountInvoice[0].partner_id[0].trab_antiguedad_m));
|
|
|
+ //
|
|
|
+ // // salario
|
|
|
+ // pdfDoc.rect(10, 139, 105, 7, 'S');
|
|
|
+ // pdfDoc.text(12, 143,'Salario: ' + self.valorNull(AccountInvoice[0].partner_id[0].trab_salario));
|
|
|
+ //
|
|
|
+ // // ref
|
|
|
+ // // pdfDoc.rect(105, 133, 95, 7, 'S');
|
|
|
+ // // pdfDoc.text(125, 137,'Vivienda Alquilada: ' + self.valorNull(AccountInvoice[0].partner_id[0].casa_alquiler));
|
|
|
+ //
|
|
|
+ // pdfDoc.setFontSize(8);
|
|
|
+ // pdfDoc.setFontStyle('normal');
|
|
|
+ // pdfDoc.text(12,150,'Referencias Comerciales:');
|
|
|
+ //
|
|
|
+ // i=0;
|
|
|
+ // _.each(AccountInvoice[0].partner_id[0].ref_comercial_ids,function(item){
|
|
|
+ // pdfDoc.setFontSize(8);
|
|
|
+ // pdfDoc.setFontStyle('normal');
|
|
|
+ // pdfDoc.text(12+i,155, '' + item.name);
|
|
|
+ // pdfDoc.text(55+i,155, '' + item.phone);
|
|
|
+ // i=95;
|
|
|
+ // });
|
|
|
+ //
|
|
|
+ // pdfDoc.setFontSize(8);
|
|
|
+ // pdfDoc.setFontStyle('normal');
|
|
|
+ // pdfDoc.text(12,178,'Referencias Personales:');
|
|
|
+ //
|
|
|
+ // i=0;
|
|
|
+ // _.each(AccountInvoice[0].partner_id[0].ref_personal_ids,function(item){
|
|
|
+ // pdfDoc.setFontSize(8);
|
|
|
+ // pdfDoc.setFontStyle('normal');
|
|
|
+ // pdfDoc.text(12+i,182, '- ' + item.email);
|
|
|
+ // pdfDoc.text(30+i,182, '' + item.name);
|
|
|
+ // pdfDoc.text(65+i,182, '' + item.phone);
|
|
|
+ // i=95;
|
|
|
+ //
|
|
|
+ // });
|
|
|
+ //
|
|
|
+ // pdfDoc.setFontSize(10);
|
|
|
+ // pdfDoc.setFontStyle('bold');
|
|
|
+ // pdfDoc.setTextColor(40);
|
|
|
+ // pdfDoc.text(85,195,'ESPECIFICACIÓN DE VENTAS ');
|
|
|
|
|
|
|
|
|
// function footer(){
|
|
@@ -308,49 +308,49 @@ openerp.pagare_anillos = function (instance, local) {
|
|
|
// pdfDoc.page ++;
|
|
|
// };
|
|
|
|
|
|
- }
|
|
|
- });
|
|
|
-
|
|
|
-
|
|
|
- _.each(self.AccountInvoiceQuota, function(item){
|
|
|
- docQuotaItem.push({
|
|
|
- date : moment(item.date).format('DD/MM/YYYY'),
|
|
|
- name : item.name,
|
|
|
- amount : accounting.formatMoney(item.amount,'',CurrencyBase.decimal_places, CurrencyBase.thousands_separator, CurrencyBase.decimal_separator),
|
|
|
- });
|
|
|
- });
|
|
|
- getColumnsQuota.push({
|
|
|
- title : 'Fecha',
|
|
|
- halign: 'center',
|
|
|
- dataKey: 'date'
|
|
|
- });
|
|
|
- getColumnsQuota.push({
|
|
|
- title : 'Descripción',
|
|
|
- halign: 'center',
|
|
|
- dataKey: 'name'
|
|
|
- });
|
|
|
- getColumnsQuota.push({
|
|
|
- title : 'Valor de la Cuota',
|
|
|
- halign: 'center',
|
|
|
- dataKey: 'amount'
|
|
|
- });
|
|
|
-
|
|
|
-
|
|
|
- var finalY = pdfDoc.autoTable.previous.finalY;
|
|
|
-
|
|
|
- pdfDoc.setFontSize(10);
|
|
|
- pdfDoc.setFontStyle('bold');
|
|
|
- pdfDoc.setTextColor(40);
|
|
|
- pdfDoc.text(10,finalY + 5,'Total: ' + accounting.formatMoney(AccountInvoice[0].amount_total,CurrencyBase.symbol,CurrencyBase.decimal_places, CurrencyBase.thousands_separator, CurrencyBase.decimal_separator));
|
|
|
-
|
|
|
- pdfDoc.setFontSize(10);
|
|
|
- pdfDoc.setFontStyle('bold');
|
|
|
- pdfDoc.text(10,finalY + 10,'Firma del cliente: _ _ _ _ _ _ _ _ _ _ Aclaración: _ _ _ _ _ _ _ _ _ _ C.I.N°: _ _ _ _ _ _ _');
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- pdfDoc.addPage();
|
|
|
- var finalY2 = pdfDoc.autoTable.previous.finalY-195;
|
|
|
+ // }
|
|
|
+ // });
|
|
|
+
|
|
|
+
|
|
|
+ // _.each(self.AccountInvoiceQuota, function(item){
|
|
|
+ // docQuotaItem.push({
|
|
|
+ // date : moment(item.date).format('DD/MM/YYYY'),
|
|
|
+ // name : item.name,
|
|
|
+ // amount : accounting.formatMoney(item.amount,'',CurrencyBase.decimal_places, CurrencyBase.thousands_separator, CurrencyBase.decimal_separator),
|
|
|
+ // });
|
|
|
+ // });
|
|
|
+ // getColumnsQuota.push({
|
|
|
+ // title : 'Fecha',
|
|
|
+ // halign: 'center',
|
|
|
+ // dataKey: 'date'
|
|
|
+ // });
|
|
|
+ // getColumnsQuota.push({
|
|
|
+ // title : 'Descripción',
|
|
|
+ // halign: 'center',
|
|
|
+ // dataKey: 'name'
|
|
|
+ // });
|
|
|
+ // getColumnsQuota.push({
|
|
|
+ // title : 'Valor de la Cuota',
|
|
|
+ // halign: 'center',
|
|
|
+ // dataKey: 'amount'
|
|
|
+ // });
|
|
|
+ //
|
|
|
+ //
|
|
|
+ // var finalY = pdfDoc.autoTable.previous.finalY;
|
|
|
+ //
|
|
|
+ // pdfDoc.setFontSize(10);
|
|
|
+ // pdfDoc.setFontStyle('bold');
|
|
|
+ // pdfDoc.setTextColor(40);
|
|
|
+ // pdfDoc.text(10,finalY + 5,'Total: ' + accounting.formatMoney(AccountInvoice[0].amount_total,CurrencyBase.symbol,CurrencyBase.decimal_places, CurrencyBase.thousands_separator, CurrencyBase.decimal_separator));
|
|
|
+ //
|
|
|
+ // pdfDoc.setFontSize(10);
|
|
|
+ // pdfDoc.setFontStyle('bold');
|
|
|
+ // pdfDoc.text(10,finalY + 10,'Firma del cliente: _ _ _ _ _ _ _ _ _ _ Aclaración: _ _ _ _ _ _ _ _ _ _ C.I.N°: _ _ _ _ _ _ _');
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ // pdfDoc.addPage();
|
|
|
+ var finalY2 = 12;
|
|
|
|
|
|
|
|
|
|
|
@@ -360,18 +360,18 @@ openerp.pagare_anillos = function (instance, local) {
|
|
|
pdfDoc.setFontSize(11);
|
|
|
pdfDoc.setFontStyle('bold');
|
|
|
pdfDoc.setTextColor(20);
|
|
|
- pdfDoc.text(76, finalY2,'CONTRATO PRESTAMO Y COMPRA / VENTA');
|
|
|
+ pdfDoc.text(75, finalY2,'CONTRATO PRESTAMO Y COMPRA / VENTA');
|
|
|
|
|
|
finalY2 +=10
|
|
|
|
|
|
pdfDoc.setFontSize(10);
|
|
|
pdfDoc.setFontStyle('normal');
|
|
|
- pdfDoc.text(10,finalY2,'En Ciudad del Este de la República del Paraguay, en fecha ' + moment(AccountInvoice[0].date_invoice).format('DD/MM/YYYY') + ' entre el señor ANIBAL ZARACHO LOPEZ,');
|
|
|
+ pdfDoc.text(10,finalY2,'En Ciudad del Este de la República del Paraguay, en fecha ' + moment(AccountInvoice[0].date_invoice).format('DD/MM/YYYY') + ' entre el señor ANIBAL ZARACHO LOPEZ, más');
|
|
|
|
|
|
finalY2 +=5
|
|
|
pdfDoc.setFontSize(10);
|
|
|
pdfDoc.setFontStyle('normal');
|
|
|
- pdfDoc.text(10,finalY2, 'más adelante llamado VENDEDOR, de nacionalidad paraguaya, estado civil Soltero con cédula de identidad paraguaya' );
|
|
|
+ pdfDoc.text(10,finalY2, 'adelante llamado VENDEDOR, de nacionalidad paraguaya, estado civil Soltero con cédula de identidad paraguaya' );
|
|
|
|
|
|
finalY2 +=5
|
|
|
pdfDoc.setFontSize(10);
|
|
@@ -381,27 +381,27 @@ openerp.pagare_anillos = function (instance, local) {
|
|
|
finalY2 +=5
|
|
|
pdfDoc.setFontSize(10);
|
|
|
pdfDoc.setFontStyle('normal');
|
|
|
- pdfDoc.text(10,finalY2,'Supercarretera camino a Hernandarias del Km. 4 de Ciudad del Este, por una parte y la otra parte del señor ');
|
|
|
+ pdfDoc.text(10,finalY2,'Super carretera camino a Hernandarias del Km. 4 de Ciudad del Este, por una parte y la otra parte del señor ');
|
|
|
|
|
|
finalY2 +=5
|
|
|
pdfDoc.setFontSize(10);
|
|
|
pdfDoc.setFontStyle('normal');
|
|
|
- pdfDoc.text(10,finalY2, AccountInvoice[0].partner_id[0].name + ', más adelante llamado COMPRADOR, con cédula de identidad paraguaya C.I/R.U.C N° ');
|
|
|
+ pdfDoc.text(10,finalY2, AccountInvoice[0].partner_id[0].name + ', más adelante llamado COMPRADOR, con cédula de identidad paraguaya C.I');
|
|
|
|
|
|
finalY2 +=5
|
|
|
pdfDoc.setFontSize(10);
|
|
|
pdfDoc.setFontStyle('normal');
|
|
|
- pdfDoc.text(10,finalY2, AccountInvoice[0].partner_id[0].ruc + ', domiciliado en ' + AccountInvoice[0].partner_id[0].street);
|
|
|
+ pdfDoc.text(10,finalY2, '/ R.U.C N° ' + AccountInvoice[0].partner_id[0].ruc + ', domiciliado en ' + AccountInvoice[0].partner_id[0].address);
|
|
|
|
|
|
finalY2 +=5
|
|
|
pdfDoc.setFontSize(10);
|
|
|
pdfDoc.setFontStyle('normal');
|
|
|
- pdfDoc.text(10,finalY2, 'conviene el contrato privado de PRESTAMO DE DINERO EN EFECTIVO PARA LA COMPRA DE JOYAS, lo que se regirá');
|
|
|
+ pdfDoc.text(10,finalY2, 'conviene el contrato privado de PRESTAMO DE DINERO EN EFECTIVO PARA LA COMPRA DE JOYAS, lo que se ');
|
|
|
|
|
|
finalY2 +=5
|
|
|
pdfDoc.setFontSize(10);
|
|
|
pdfDoc.setFontStyle('normal');
|
|
|
- pdfDoc.text(10,finalY2, 'por las siguientes claúsulas y condiciones.');
|
|
|
+ pdfDoc.text(10,finalY2, 'regirá por las siguientes claúsulas y condiciones.');
|
|
|
|
|
|
|
|
|
finalY2 +=5
|
|
@@ -427,12 +427,12 @@ openerp.pagare_anillos = function (instance, local) {
|
|
|
finalY2 +=5
|
|
|
pdfDoc.setFontSize(10);
|
|
|
pdfDoc.setFontStyle('normal');
|
|
|
- pdfDoc.text(10,finalY2, 'SEGUNDA: El monto recibido por el COMPRADOR se le otorga en calidad de préstamo al efectivo exclusivo para la compra');
|
|
|
+ pdfDoc.text(10,finalY2, 'SEGUNDA: El monto recibido por el COMPRADOR se le otorga en calidad de préstamo al efectivo exclusivo para la ');
|
|
|
|
|
|
finalY2 +=5
|
|
|
pdfDoc.setFontSize(10);
|
|
|
pdfDoc.setFontStyle('normal');
|
|
|
- pdfDoc.text(10,finalY2, 'de las siguientes joyas citadas en el cuadro de abajo.');
|
|
|
+ pdfDoc.text(10,finalY2, 'compra de las siguientes joyas citadas en el cuadro de abajo.');
|
|
|
|
|
|
|
|
|
var docLineItem = [];
|
|
@@ -564,7 +564,7 @@ openerp.pagare_anillos = function (instance, local) {
|
|
|
finalY2 += 8
|
|
|
pdfDoc.setFontSize(10);
|
|
|
pdfDoc.setFontStyle('normal');
|
|
|
- var paragraph= "CUARTA: La falta de pago de una de las cuotas mensuales de este pagaré en la fecha señalada precedentemente devengará un interés moratorio de 3% mensual, además de pago de 55 de interés por gastos de cobranzas, por caso de mora.";
|
|
|
+ var paragraph= "CUARTA: La falta de pago de una de las cuotas mensuales de este pagaré en la fecha señalada precedentemente devengará un interés moratorio de 3% mensual, además de pago de 5% de interés por gastos de cobranzas, por caso de mora.";
|
|
|
pdfDoc.text(paragraph,10,finalY2,{maxWidth:188,align:'justify'});
|
|
|
|
|
|
finalY2 +=13
|
|
@@ -582,8 +582,12 @@ openerp.pagare_anillos = function (instance, local) {
|
|
|
finalY2 +=20
|
|
|
pdfDoc.setFontSize(10);
|
|
|
pdfDoc.setFontStyle('bold');
|
|
|
- pdfDoc.text(10,finalY2,'Firma del deudor: _ _ _ _ _ _ _ _ _ _ _ _ Firma del representante: _ _ _ _ _ _ _ _ _ _ _ _ _ _');
|
|
|
+ pdfDoc.text(10,finalY2,'Firma del deudor: _ _ _ _ _ _ _ _ _ _ _ _ Firma del codeudor: _ _ _ _ _ _ _ _ _ _ _ _ _ _');
|
|
|
|
|
|
+ finalY2 +=15
|
|
|
+ pdfDoc.setFontSize(10);
|
|
|
+ pdfDoc.setFontStyle('bold');
|
|
|
+ pdfDoc.text(40,finalY2,'Firma del representante: _ _ _ _ _ _ _ _ _ _ _ _ _ _');
|
|
|
|
|
|
var finalY2 = pdfDoc.autoTable.previous.finalY;
|
|
|
|