This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*========================================================== | |
Open Sans | |
==========================================================*/ | |
@font-face { | |
font-family: 'Open Sans'; | |
src: url('fontPath/OpenSans-Light-webfont.eot'); | |
src: url('fontPath/OpenSans-Light-webfont.eot?#iefix') format('embedded-opentype'), | |
url('fontPath/OpenSans-Light-webfont.woff') format('woff'), | |
url('fontPath/OpenSans-Light-webfont.ttf') format('truetype'), | |
url('fontPath/OpenSans-Light-webfont.svg#OpenSansLight') format('svg'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Convert a comma separated file into an associated array. | |
* The first row should contain the array keys. | |
* | |
* Example: | |
* | |
* @param string $filename Path to the CSV file | |
* @param string $delimiter The separator used in the file | |
* @return array |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*========================================================== | |
Open Sans | |
==========================================================*/ | |
@fontPath: '../fonts'; /* LESS Syntaxis. Replace this in CSS */ | |
@font-face { | |
font-family: 'OpenSansLight'; | |
src: url('@{fontPath}/OpenSans-Light-webfont.eot'); | |
src: url('@{fontPath}/OpenSans-Light-webfont.eot?#iefix') format('embedded-opentype'), | |
url('@{fontPath}/OpenSans-Light-webfont.woff') format('woff'), | |
url('@{fontPath}/OpenSans-Light-webfont.ttf') format('truetype'), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ajustaMontos(datos: NcDevolucion, rel: NcRelDevolucion, valor: number) { | |
/* Calculamos el saldo por facturar de el doc relacionado actual */ | |
let id = rel.id; | |
let saldoFactura = rel.montoPorPagar - valor; | |
rel.saldoFactura = saldoFactura; | |
let totalNc = datos.total - valor; | |
var r = datos.relacionados; | |
for (const prop in r) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Drop all Primary Key constraints */ | |
DECLARE @name VARCHAR(128) | |
DECLARE @constraint VARCHAR(254) | |
DECLARE @SQL VARCHAR(254) | |
SELECT @name = (SELECT TOP 1 TABLE_NAME FROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS WHERE constraint_catalog=DB_NAME() AND CONSTRAINT_TYPE = 'PRIMARY KEY' ORDER BY TABLE_NAME) | |
WHILE @name IS NOT NULL | |
BEGIN | |
SELECT @constraint = (SELECT TOP 1 CONSTRAINT_NAME FROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS WHERE constraint_catalog=DB_NAME() AND CONSTRAINT_TYPE = 'PRIMARY KEY' AND TABLE_NAME = @name ORDER BY CONSTRAINT_NAME) |