Skip to content

Commit

Permalink
Merge branch 'release/v0.0.9'
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbonachera committed Sep 20, 2017
2 parents 24c1772 + 7ca6f3e commit 4987002
Show file tree
Hide file tree
Showing 11 changed files with 705 additions and 202 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright {yyyy} {name of copyright owner}
Copyright {2017} {David Bonachera}

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
8 changes: 4 additions & 4 deletions Model/Infolog/M10.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,17 @@ class M10 extends ModelAbstract

public static $validationTemplateData = array(
"10.00" => array(
"CODEXC" => [ "length" => 2, "required" => TRUE ],
"CODEXC" => [ "length" => 2, "required" => TRUE, "numerical" => TRUE],
"SEPEXC" => [ "length" => 1, "required" => TRUE ],
"SCOEXC" => [ "length" => 2, "required" => TRUE ],
"SCOEXC" => [ "length" => 2, "required" => TRUE, "numerical" => TRUE],
"TRTEXC" => [ "length" => 1, "required" => TRUE ],
"CODACT" => [ "length" => 3, "required" => FALSE ],
"CODFOU" => [ "length" => 14, "required" => TRUE ],
"TYPFOU" => [ "length" => 1, "required" => FALSE ],
"NOMFOU" => [ "length" => 30, "required" => TRUE ],
"AD1FOU" => [ "length" => 30, "required" => TRUE ],
"AD2FOU" => [ "length" => 30, "required" => FALSE ],
"CPOFOU" => [ "length" => 5, "required" => FALSE ],
"CPOFOU" => [ "length" => 5, "required" => FALSE, "numerical" => TRUE],
"VILFOU" => [ "length" => 26, "required" => FALSE ],
"PAYFOU" => [ "length" => 3, "required" => TRUE ],
"TELFOU" => [ "length" => 20, "required" => FALSE ],
Expand Down Expand Up @@ -95,6 +95,6 @@ public function getValidationTemplateData()

public function __toString()
{
return "M20";
return "M10";
}
}
24 changes: 12 additions & 12 deletions Model/Infolog/M20.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ class M20 extends ModelAbstract

public static $validationTemplateData = array(
"20.00" => array(
"CODEXC" => [ "length" => 2, "required" => TRUE ],
"CODEXC" => [ "length" => 2, "required" => TRUE, "numerical" => TRUE],
"SEPEXC" => [ "length" => 1, "required" => TRUE ],
"SCOEXC" => [ "length" => 2, "required" => TRUE ],
"SCOEXC" => [ "length" => 2, "required" => TRUE, "numerical" => TRUE],
"TRTEXC" => [ "length" => 1, "required" => TRUE ],
"CODACT" => [ "length" => 3, "required" => TRUE ],
"CODCLI" => [ "length" => 14, "required" => TRUE ],
Expand All @@ -105,45 +105,45 @@ class M20 extends ModelAbstract
"NOMCLI" => [ "length" => 30, "required" => TRUE ],
"AD1CLI" => [ "length" => 30, "required" => TRUE ],
"AD2CLI" => [ "length" => 30, "required" => FALSE ],
"CPOCLI" => [ "length" => 5, "required" => FALSE ],
"CPOCLI" => [ "length" => 5, "required" => FALSE, "numerical" => TRUE],
"VILCLI" => [ "length" => 26, "required" => TRUE ],
"PAYCLI" => [ "length" => 3, "required" => FALSE ],
"TELCLI" => [ "length" => 20, "required" => FALSE ],
"FAXCLI" => [ "length" => 20, "required" => FALSE ],
"TLXCLI" => [ "length" => 15, "required" => FALSE ],
"CODLGE" => [ "length" => 3, "required" => FALSE ],
"CODDEV" => [ "length" => 3, "required" => TRUE ],
"IGLSIT" => [ "length" => 3, "required" => FALSE ],
"IGLSIT" => [ "length" => 3, "required" => FALSE, "numerical" => TRUE],
"PTYCLI" => [ "length" => 3, "required" => FALSE ],
"ETACLI" => [ "length" => 2, "required" => TRUE ],
"DISEXC" => [ "length" => 8, "required" => FALSE ],
),
"20.01" => array(
"CODEXC" => [ "length" => 2, "required" => TRUE ],
"CODEXC" => [ "length" => 2, "required" => TRUE, "numerical" => TRUE],
"SEPEXC" => [ "length" => 1, "required" => TRUE ],
"SCOEXC" => [ "length" => 2, "required" => TRUE ],
"SCOEXC" => [ "length" => 2, "required" => TRUE, "numerical" => TRUE],
"TRTEXC" => [ "length" => 1, "required" => FALSE ],
"CODACT" => [ "length" => 3, "required" => TRUE ],
"CODCLI" => [ "length" => 14, "required" => TRUE ],
"RSPCLI" => [ "length" => 30, "required" => FALSE ],
"CODMOP" => [ "length" => 3, "required" => FALSE ],
"CODRGT" => [ "length" => 3, "required" => FALSE ],
"CODTRA" => [ "length" => 14, "required" => FALSE ],
"TOULIV" => [ "length" => 28, "required" => FALSE ],
"ORDLIV" => [ "length" => 28, "required" => FALSE ],
"KAILIV" => [ "length" => 21, "required" => FALSE ],
"TOULIV" => [ "length" => 28, "required" => FALSE, "numerical" => TRUE],
"ORDLIV" => [ "length" => 28, "required" => FALSE, "numerical" => TRUE],
"KAILIV" => [ "length" => 21, "required" => FALSE, "numerical" => TRUE],
"GSTALC" => [ "length" => 1, "required" => FALSE ],
"PTYDES" => [ "length" => 2, "required" => FALSE ],
"PTYDES" => [ "length" => 2, "required" => FALSE, "numerical" => TRUE],
"NUMACS" => [ "length" => 20, "required" => FALSE ],
"CPICLI" => [ "length" => 9, "required" => FALSE ],
"TVACCE" => [ "length" => 20, "required" => FALSE ],
"IDEALC" => [ "length" => 20, "required" => FALSE ],
"DISEXC" => [ "length" => 34, "required" => FALSE ],
),
"20.02" => array(
"CODEXC" => [ "length" => 2, "required" => TRUE ],
"CODEXC" => [ "length" => 2, "required" => TRUE, "numerical" => TRUE],
"SEPEXC" => [ "length" => 1, "required" => TRUE ],
"SCOEXC" => [ "length" => 2, "required" => TRUE ],
"SCOEXC" => [ "length" => 2, "required" => TRUE, "numerical" => TRUE],
"TRTEXC" => [ "length" => 1, "required" => TRUE ],
"CODACT" => [ "length" => 3, "required" => TRUE ],
"CODCLI" => [ "length" => 14, "required" => TRUE ],
Expand Down
68 changes: 34 additions & 34 deletions Model/Infolog/M40.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,75 +97,75 @@ class M40 extends ModelAbstract

public static $validationTemplateData = array(
"40.00" => array(
"CODEXC" => [ "length" => 2, "required" => FALSE ],
"CODEXC" => [ "length" => 2, "required" => FALSE, "numerical" => TRUE],
"SEPEXC" => [ "length" => 1, "required" => FALSE ],
"SCOEXC" => [ "length" => 2, "required" => FALSE ],
"SCOEXC" => [ "length" => 2, "required" => FALSE, "numerical" => TRUE],
"TRTEXC" => [ "length" => 1, "required" => FALSE ],
"NUMREC" => [ "length" => 8, "required" => FALSE ],
"SNUREC" => [ "length" => 3, "required" => FALSE ],
"NUMREC" => [ "length" => 8, "required" => FALSE, "numerical" => TRUE],
"SNUREC" => [ "length" => 3, "required" => FALSE, "numerical" => TRUE],
"REFREC" => [ "length" => 30, "required" => FALSE ],
"CODAPP" => [ "length" => 10, "required" => FALSE ],
"CODLDR" => [ "length" => 3, "required" => FALSE ],
"CODTRE" => [ "length" => 3, "required" => FALSE ],
"CODACT" => [ "length" => 3, "required" => FALSE ],
"CODFOU" => [ "length" => 14, "required" => FALSE ],
"CODTRA" => [ "length" => 14, "required" => FALSE ],
"DTIREC" => [ "length" => 8, "required" => FALSE ],
"HEIREC" => [ "length" => 4, "required" => FALSE ],
"KAIREC" => [ "length" => 3, "required" => FALSE ],
"DTIREC" => [ "length" => 8, "required" => FALSE, "numerical" => TRUE],
"HEIREC" => [ "length" => 4, "required" => FALSE, "numerical" => TRUE],
"KAIREC" => [ "length" => 3, "required" => FALSE, "numerical" => TRUE],
"MSGREC" => [ "length" => 30, "required" => FALSE ],
"IGLSIT" => [ "length" => 3, "required" => FALSE ],
"DTFREC" => [ "length" => 8, "required" => FALSE ],
"IGLSIT" => [ "length" => 3, "required" => FALSE, "numerical" => TRUE],
"DTFREC" => [ "length" => 8, "required" => FALSE, "numerical" => TRUE],
"EDIFOU" => [ "length" => 14, "required" => FALSE ],
"DISEXC" => [ "length" => 62, "required" => FALSE ],
),
"40.20" => array(
"CODEXC" => [ "length" => 2, "required" => TRUE ],
"CODEXC" => [ "length" => 2, "required" => TRUE, "numerical" => TRUE],
"SEPEXC" => [ "length" => 1, "required" => TRUE ],
"SCOEXC" => [ "length" => 2, "required" => TRUE ],
"SCOEXC" => [ "length" => 2, "required" => TRUE, "numerical" => TRUE],
"TRTEXC" => [ "length" => 1, "required" => TRUE ],
"NUMREC" => [ "length" => 8, "required" => FALSE ],
"SNUREC" => [ "length" => 3, "required" => FALSE ],
"NUMREC" => [ "length" => 8, "required" => FALSE, "numerical" => TRUE],
"SNUREC" => [ "length" => 3, "required" => FALSE, "numerical" => TRUE],
"REFREC" => [ "length" => 30, "required" => TRUE ],
"NLIREC" => [ "length" => 5, "required" => TRUE ],
"NLIREC" => [ "length" => 5, "required" => TRUE, "numerical" => TRUE],
"CODACT" => [ "length" => 3, "required" => TRUE ],
"CODCLI" => [ "length" => 14, "required" => FALSE ],
"CODPRO" => [ "length" => 17, "required" => TRUE ],
"VALPRO" => [ "length" => 2, "required" => FALSE ],
"UVCREA" => [ "length" => 9, "required" => TRUE ],
"VALPRO" => [ "length" => 2, "required" => FALSE, "numerical" => TRUE],
"UVCREA" => [ "length" => 9, "required" => TRUE, "numerical" => TRUE],
"UNICDE" => [ "length" => 3, "required" => TRUE ],
"CODPRN" => [ "length" => 17, "required" => FALSE ],
"TYPOPE" => [ "length" => 1, "required" => FALSE ],
"NUMOPE" => [ "length" => 6, "required" => FALSE ],
"NUMOPE" => [ "length" => 6, "required" => FALSE, "numerical" => TRUE],
"AIGPRI" => [ "length" => 1, "required" => FALSE ],
"PRIREC" => [ "length" => 9, "required" => FALSE ],
"PRIREC" => [ "length" => 9, "required" => FALSE, "numerical" => TRUE],
"MSGLIG" => [ "length" => 30, "required" => FALSE ],
"MOTIMM" => [ "length" => 3, "required" => FALSE ],
"CODLOT" => [ "length" => 20, "required" => FALSE ],
"DATFAB" => [ "length" => 8, "required" => FALSE ],
"DATFVI" => [ "length" => 8, "required" => FALSE ],
"SPCPRO" => [ "length" => 4, "required" => FALSE ],
"PCBPRO" => [ "length" => 5, "required" => FALSE ],
"PDBCOL" => [ "length" => 7, "required" => FALSE ],
"VOLCOL" => [ "length" => 7, "required" => FALSE ],
"COLCOU" => [ "length" => 8, "required" => FALSE ],
"COUPAL" => [ "length" => 8, "required" => FALSE ],
"DATFAB" => [ "length" => 8, "required" => FALSE, "numerical" => TRUE],
"DATFVI" => [ "length" => 8, "required" => FALSE, "numerical" => TRUE],
"SPCPRO" => [ "length" => 4, "required" => FALSE, "numerical" => TRUE],
"PCBPRO" => [ "length" => 5, "required" => FALSE, "numerical" => TRUE],
"PDBCOL" => [ "length" => 7, "required" => FALSE, "numerical" => TRUE],
"VOLCOL" => [ "length" => 7, "required" => FALSE, "numerical" => TRUE],
"COLCOU" => [ "length" => 8, "required" => FALSE, "numerical" => TRUE],
"COUPAL" => [ "length" => 8, "required" => FALSE, "numerical" => TRUE],
"CODEMB" => [ "length" => 3, "required" => FALSE ],
"GERPAL" => [ "length" => 2, "required" => FALSE ],
"GERHAU" => [ "length" => 2, "required" => FALSE ],
"GERPAL" => [ "length" => 2, "required" => FALSE, "numerical" => TRUE],
"GERHAU" => [ "length" => 2, "required" => FALSE, "numerical" => TRUE],
"CODMDR" => [ "length" => 3, "required" => TRUE ],
"IGLSIT" => [ "length" => 3, "required" => FALSE ],
"IGLSIT" => [ "length" => 3, "required" => FALSE, "numerical" => TRUE],
"INDUNI" => [ "length" => 1, "required" => FALSE ],
),
"40.99" => array(
"CODEXC" => [ "length" => 2, "required" => TRUE ],
"CODEXC" => [ "length" => 2, "required" => TRUE, "numerical" => TRUE],
"SEPEXC" => [ "length" => 1, "required" => TRUE ],
"SCOEXC" => [ "length" => 2, "required" => TRUE ],
"SCOEXC" => [ "length" => 2, "required" => TRUE, "numerical" => TRUE],
"TRTEXC" => [ "length" => 1, "required" => FALSE ],
"NUMREC" => [ "length" => 8, "required" => FALSE ],
"SNUREC" => [ "length" => 3, "required" => FALSE ],
"NUMREC" => [ "length" => 8, "required" => FALSE, "numerical" => TRUE],
"SNUREC" => [ "length" => 3, "required" => FALSE, "numerical" => TRUE],
"REFREC" => [ "length" => 30, "required" => TRUE ],
"CUMLIG" => [ "length" => 4, "required" => FALSE ],
"CUMLIG" => [ "length" => 4, "required" => FALSE, "numerical" => TRUE],
"DISEXC" => [ "length" => 205, "required" => FALSE ],
)
);
Expand Down
Loading

0 comments on commit 4987002

Please sign in to comment.