콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
3254 화면

I wanna to add a field betwen Quantity and Unit Price, name field is Discount,, i can add name header field, but i can't add connection to the database,, how to get field database for Discount?

thanks...

아바타
취소
작성자

Help Me,,,,

It is functional field might be value is not stored in database. so you cannot get value directly. you can define your own method in parser class to get discount value. pass amount and discount percentage from line into that method and return the specific discount value.

베스트 답변

In Settings --> Configuration --> Sales,
      Enable "Allow setting a discount on sales order lines".

After enabling the Discount field will be available at report.

To get field name for Discount:
      ==> Activate Developer mode and hower to your field.  
      ==> Go to Settings --> Technical --> Database structure --> Models and search for "sale.order".  Now you can see the list of fields available at Sale order 

아바타
취소