Commit 4e18a41
authored
fix: corrige suppl no nome do pacote sps e permite sufixo adicional (#1059)
* fix: corrige suppl no nome do pacote sps e permite sufixo adicional
- Create dedicated sps_pkg_name_suppl property to encapsulate supplement formatting logic
- Move supplement value transformation from sps_pkg_name to isolated method
- Handle special case where suppl=0 becomes 'suppl' string
- Format other supplement values with 's' prefix (e.g., 's1', 's2')
- Improve code organization and readability in package name generation
- Implement additional_sps_pkg_name_suffix as property with getter and setter
- Store value in private attribute _additional_sps_pkg_name_suffix
- Include additional suffix in sps_pkg_name composition
- Enable dynamic modification of package name suffix after instantiation
* fix: corrige referência indefinida de variável suppl em XMLWithPre
- Corrige bug onde self.suppl estava sendo usado em vez da variável local suppl
- Adiciona atributo _additional_sps_pkg_name_suffix ao __init__ da classe XMLWithPre
- O erro ocorria no método que determina o sufixo do nome do pacote suplementar1 parent 5dad025 commit 4e18a41
1 file changed
Lines changed: 23 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
424 | 424 | | |
425 | 425 | | |
426 | 426 | | |
| 427 | + | |
427 | 428 | | |
428 | 429 | | |
429 | 430 | | |
| |||
540 | 541 | | |
541 | 542 | | |
542 | 543 | | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
543 | 552 | | |
544 | 553 | | |
545 | 554 | | |
546 | 555 | | |
547 | | - | |
548 | | - | |
549 | | - | |
550 | | - | |
551 | | - | |
552 | | - | |
553 | | - | |
554 | 556 | | |
555 | 557 | | |
556 | 558 | | |
557 | 559 | | |
558 | 560 | | |
559 | 561 | | |
560 | | - | |
| 562 | + | |
561 | 563 | | |
| 564 | + | |
562 | 565 | | |
563 | 566 | | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
564 | 579 | | |
565 | 580 | | |
566 | 581 | | |
| |||
0 commit comments