From 649f052e0a4ee96bbc3d0a9653f0566f5837c67e Mon Sep 17 00:00:00 2001 From: "watcha.h" Date: Tue, 31 Mar 2015 11:48:41 +0700 Subject: [PATCH] Need to run special number of invoice & receipt from rd shop. --- netforce_clinic/models/sequence.py | 2 ++ netforce_clinic/models/shop.py | 34 ++++++++++++++++++++++ netforce_clinic/reports/report_shop.xlsx | Bin 5253 -> 190714 bytes netforce_clinic/templates/report_shop.hbs | 16 ++++------ 4 files changed, 42 insertions(+), 10 deletions(-) diff --git a/netforce_clinic/models/sequence.py b/netforce_clinic/models/sequence.py index e91c818..e8173eb 100644 --- a/netforce_clinic/models/sequence.py +++ b/netforce_clinic/models/sequence.py @@ -49,6 +49,8 @@ class Sequence(Model): ["clinic_hdcase","HD Case"], ["clinic_dlz","Dialyzer"], ["clinic_rdshop","RD Shop"], + ["clinic_rdshop_credit","RD Shop Credit"], + ["clinic_rdshop_cash","RD Shop Cash"], ["other","Other"]],"Type",required=True,search=True), } diff --git a/netforce_clinic/models/shop.py b/netforce_clinic/models/shop.py index a73a922..3e987fe 100644 --- a/netforce_clinic/models/shop.py +++ b/netforce_clinic/models/shop.py @@ -118,6 +118,34 @@ class Shop(Model): return num get_model("sequence").increment_number(seq_id,context=context) + def _get_credit_number(self,context={}): + while 1: + seq_id=get_model("sequence").find_sequence(type="clinic_rdshop_credit",context=context) + num=get_model("sequence").get_next_number(seq_id,context=context) + if not num: + return None + user_id=get_active_user() + set_active_user(1) + res=self.search([["number","=",num]]) + set_active_user(user_id) + if not res: + return num + get_model("sequence").increment_number(seq_id,context=context) + + def _get_cash_number(self,context={}): + while 1: + seq_id=get_model("sequence").find_sequence(type="clinic_rdshop_cash",context=context) + num=get_model("sequence").get_next_number(seq_id,context=context) + if not num: + return None + user_id=get_active_user() + set_active_user(1) + res=self.search([["number","=",num]]) + set_active_user(user_id) + if not res: + return num + get_model("sequence").increment_number(seq_id,context=context) + def _get_branch(self,context={}): res=get_model('select.company').get_select() if res: @@ -290,7 +318,10 @@ class Shop(Model): cst=get_model('clinic.setting').browse(1) prod_acc=cst.get_product_account partner=obj.contact_id + context['branch_id']=obj.branch_id.id + number=self._get_credit_number(context=context), vals={ + 'number': number, "type": "out", "inv_type": "invoice", "tax_type": "tax_in", @@ -421,7 +452,10 @@ class Shop(Model): if not income_account_id: raise Exception("No Income Account") company_id=get_active_company() + context['branch_id']=obj.branch_id.id + number=self._get_cash_number(context=context), vals={ + 'number': number, "partner_id": partner.id, "company_id": company_id, "type": "in", diff --git a/netforce_clinic/reports/report_shop.xlsx b/netforce_clinic/reports/report_shop.xlsx index 2c3e1b242864771b99db4a4b0cdb2a2ba328daff..4d1f7dc4696fcbd4afb3b0774823eb19596d2417 100644 GIT binary patch literal 190714 zcmeI530M=?+r@FI(u$(hiq>k1(z>+9SqVM%~&Gv7_pe+v^5&`Q5bUiv(7lHNOzH_7C8&pr3t zsgqi?>||zcZf@54b8MVhjh{B?nC0#6=|dl&xjnTzd14E@_JI=4wqQTsOCNo+_k_IvA~3EYaLA&$Rfedr5{deqCb@4mG zYgbj&EoQlEQm^|nC)!vpia-A7mZ$X7-7A`%>t>riZ`#dS3x+-a?)Oiw1TM~6?6=u# zKC1<}IKOi1vC8bF*~*`123Bp}f96=xxIo_*3!0B}c<|iyaPXH^ea6uTUhBY2{${$% zuOB-_d(wU7eop3n9?w1dbn6cXF3&i>BNSgf;!2?R0Y=A{n@v1c6DxH2`JOJpQxFCi4$>6oG*O%h8d^IEgis)XcG>ar-7RFsUJ zVfg3MR8kR7RlJ84@r=iji+y&|355VFKaxxoZ>OoVm<(k`8b0*iejbNFCn?7jnLL&1 z1e2%^63(x-WN{^^u{;fRl?bcLqKk1tS|J$a$5YDrSVablQz^p~@+cmuU~tQ5*)4E| z)Dm^&mL|}N9EPHdnSFCea(tCgRV=`&@8Pq^VzIA_bjWy)UkWMPlT182Ay!Bv>iq4= zcy&38tPbR@;+DtIu*x(Zk@b>Ao}gppISh4P87hKoKUS5|TdXYaja5XkE9nenkpLT{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g6$-&#En}F`%ZcbXj zzqBH#yP3r`}o^4ByfzY8jg|GHjUcfcSNauv*SC0S8h%U~vO`ZW~c3YeGuYSrHr z0rek#)z?9&^c65W+ZF8h6i5FD>>gf{7MKy`vH~VHyF&gR=_G$3D~LcKUl(C-A3qm6 t@Bej%-(MfuAFfNJAQW~5%>3_`e`oVD {{date}} {{pname}} - {{pm_number}} - {{#ifeq ptype "credit"}} - - {{view "link" string=inv_number action="cust_invoice" action_options="form_view_xml&cust_invoice_form&mode=form" active_id=inv_id}} - - {{else}} - - {{view "link" string=pm_number action="payment" action_options="mode=form" active_id=pm_id}} - - {{/if}} + + {{view "link" string=pm_number action="payment" action_options="mode=form" active_id=pm_id}} + + + {{view "link" string=inv_number action="cust_invoice" action_options="form_view_xml&cust_invoice_form&mode=form" active_id=inv_id}} + {{mdc_name}} {{currency fee zero=""}} {{currency mdc zero=""}}