Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify LineaTransferenciaStock to update stock transferring (Trello#498) #601

Closed
wants to merge 5 commits into from

Conversation

rsanjoseo
Copy link
Contributor

Modify the LineaTransferenciaStock model so that the stock transfer becomes effective when making a save.

*
* @param string $action
*/
protected function execPreviousAction($action)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the work does not fit the description. The work had to be done in the model, not in the controller

@@ -94,4 +99,57 @@ public static function tableName()
{
return 'lineastransferenciasstock';
}

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

class core/model/base/businessdocumentline.php has not been used as a guide. If you look at the class you will see that it is already responsible for knowing what the initial amount was. You do not need the controller to tell you.

transferTo(almacéndestino, cantidad)

- En LineaTransferenciaStock se crea delete, que localiza el movimiento 
de stock y lo retrocede, para posteriormente invocar al delete que 
elimina el registro de líneastock.

- EditTransferenciaStock queda inconcluso y a medio terminar.
@NeoRazorX NeoRazorX closed this Aug 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants