Only create and add CPF and CNPJ fields to Commerce Billing Profile and create and add Linha digitavel field to Commerce Order.

This is a base modulo to another modules like Commerce Bradesco.

Project: http://drupal.org/sandbox/7links/1907474

Git repository: http://drupalcode.org/sandbox/7links/1907474.git

Drupal version: 7.x

Comments

abhijeetkalsi’s picture

Hi,

first of all there are quite a few issues to sort out such as indentation, whitespace.

You can find them all here:
http://ventral.org/pareview/httpgitdrupalorgsandbox7links1907474git

Here you can check source code whether it meets drupal coding standards or not, and advise you what to change in your code. You can repeat review after your commits, and can fix those errors.

abhijeetkalsi’s picture

Status: Needs review » Needs work

1) No README.txt file
2) Move your code to custom branch 7.x-1.x & delete master branch.
3) In repository your module file empty, just

7links’s picture

@abhijeetkalsi, thank you for your attention.

I did the fixes, but i don´t succeed deleting the master branch.

Do you can help me?

Thanks

abhijeetkalsi’s picture

Git command to delete branch:

  1. git checkout 7.x-1.x
  2. git branch -D master
  3. git push origin :master

More information on http://drupal.org/node/1127732

7links’s picture

Oh, ok. Thank you very much.

That´s ok, now.

7links’s picture

Status: Needs work » Fixed
7links’s picture

Status: Fixed » Needs work
7links’s picture

Status: Needs work » Needs review
klausi’s picture

We are currently quite busy with all the project applications and I can only review projects with a review bonus. Please help me reviewing and put yourself on the PAReview: review bonus high priority list. Then I'll take a look at your project right away :-)

luco’s picture

Status: Needs review » Needs work

hi 7links,

I'm trying to download your module so I can test it, but the .module file is blank.

please let me know when you have something up so I can download it.

I can only test the CPF field, since I don't own a business. ;)

cheers,
Luciano

7links’s picture

Hello, @luco,

really the .module file is black, because this module create fields on .install file. :-)

Use any CNPJ for testing.

Tks,
Bruno Magalhães
www.7links.com.br

luco’s picture

oh, I see! :)

your code is pretty neat; however, it creates fields in Portuguese.

I would advise you to use terms in English - not only because Drupal is written in English, but also because then other countries can benefit from your work. I'm pretty sure our country is not the only one to register citizens and businesses ;)

try this:
commerce_linha_digitavel -> commerce_manual_input
commerce_customer_cpf_cnpj -> commerce_customer_id
commerce_customer_insc_estadual -> commerce_customer_business_id

nevertheless, you must wrap all fields' labels and descriptions in t().

Your project page text also needs some revision. I can help with that.

over the weekend I'll try and download your module, see if it all works, and get back to you.

cheers,
Luciano

7links’s picture

Hi, @luco,

thanks for your remarks.
I used the names CNPJ and CPF, because this field only accepts this formats. This module depends on module Brazilian IDs, who makes the validation of these data.

Is a very specific module to facilitate the entry of billing data for specific payment methods Brazilians.

I´ll very happy with your colaboration, as you can see, my English is horrible. :-)

Thanks,
Bruno

luco’s picture

oh, ok. :)

maybe in the near future there could be a module that would check format for any ID, not just Brazillian ones... but that's another story.

well, I'm in no position to accept or deny your application, that's up to the good folks in this queue to decide. :) good luck.

luco’s picture

7links,

here's a correction for the module's info file:
Create brazilian id fields on billing profile.

and where do I download the Brazilian IDs module?

cheers

PA robot’s picture

Status: Needs work » Closed (won't fix)

Closing due to lack of activity. Feel free to reopen if you are still working on this application.

I'm a robot and this is an automated message from Project Applications Scraper.