[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb:[4661] addons/1.3



Revision: 4661
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=4661&view=rev
Author:   einhverfr
Date:     2012-04-23 07:46:21 +0000 (Mon, 23 Apr 2012)
Log Message:
-----------
Colombia workflow for person customer/vendors added

Added Paths:
-----------
    addons/1.3/colombia_general/
    addons/1.3/colombia_general/trunk/
    addons/1.3/colombia_general/trunk/UI/
    addons/1.3/colombia_general/trunk/UI/Contacts/
    addons/1.3/colombia_general/trunk/UI/Contacts/divs/
    addons/1.3/colombia_general/trunk/UI/Contacts/divs/colombia_company.html
    addons/1.3/colombia_general/trunk/patches/
    addons/1.3/colombia_general/trunk/patches/colombia_general.patch

Added: addons/1.3/colombia_general/trunk/UI/Contacts/divs/colombia_company.html
===================================================================
--- addons/1.3/colombia_general/trunk/UI/Contacts/divs/colombia_company.html	                        (rev 0)
+++ addons/1.3/colombia_general/trunk/UI/Contacts/divs/colombia_company.html	2012-04-23 07:46:21 UTC (rev 4661)
@@ -0,0 +1,170 @@
+<div class="container" id="company_div">
+<?lsmb SWITCH entity_class
+	?><?lsmb CASE 1 ?><?lsmb entity_classname = "Vendor" 
+	?><?lsmb CASE 2 ?><?lsmb entity_classname = "Customer" 
+	?><?lsmb END ?>
+	<div class="listtop"><strong><?lsmb text("$operation $entity_classname") ?></strong></div>
+<form name="customer" method="post" action="<?lsmb script ?>">
+<?lsmb PROCESS input element_data = {
+		type = "hidden"
+		name = "target_div"
+		value = 'company_div'
+	} ?>
+	<?lsmb PROCESS input element_data = {
+		type = "hidden"
+		name = "entity_id"
+		value = entity_id
+	} ?>	
+	<?lsmb PROCESS input element_data = {
+		type = "hidden"
+		name = "id"
+		value = id
+	} ?>	
+<?lsmb PROCESS input element_data = {
+		type = "hidden"
+		name = "form_id"
+		value = form_id
+	} ?>
+	<?lsmb PROCESS input element_data = {
+		type = "hidden"
+		name = "account_class"
+		value = account_class
+	} ?>	
+<div class="input_line">
+<div class="input_group1">
+	<?lsmb PROCESS input element_data = {
+		label = text('Control Code') #'
+		type= "text"
+		name = "control_code"
+		value = control_code
+		size = "20"
+	} ?>
+	<?lsmb IF !created_as_class;
+		created_as_class = entity_class;
+	END; # IF !created_as_class ?> 
+</div>
+<div class="input_group2">
+	<?lsmb PROCESS select element_data = {
+		name = "created_as_class"
+		options = entity_classes
+		default_values = [created_as_class]
+		text_attr = 'class'
+		value_attr = 'id'
+		label = text('Class')
+	} ?>
+	<?lsmb PROCESS button element_data = {
+		text = text('Generate Control Code') #'
+		type = "submit"
+		name = "action"
+		value = "generate_control_code"
+		class = "submit"
+        } ?>
+        <?lsmb PROCESS button element_data = {
+                text = text('Retrieve')
+                type = 'submit'
+                name = 'action'
+               value = 'get_by_cc'
+               class = 'submit'
+        } ?>
+</div>
+</div>
+<div class="input_line">
+<div class="input_group1">
+	<?lsmb PROCESS input element_data = {
+		label = text('Name')
+		type= "text"
+		name = "name"
+		value = name
+		size = "20"
+	} ?>
+</div>
+<div class="input_group2">
+       <?lsmb country_list.unshift({}) ?>
+		<?lsmb INCLUDE select element_data = {
+			text_attr = "name"
+			value_attr = "id"
+			default_values = [province_id]
+			options = province_list
+			name = "province_id"
+			label = text('Province') 
+	} ?> 
+</div>
+<div class="input_group2">
+       <?lsmb country_list.unshift({}) ?>
+		<?lsmb INCLUDE select element_data = {
+			text_attr = "name"
+			value_attr = "id"
+			default_values = [country_id]
+			options = country_list
+			name = "country_id"
+			label = text('Country') 
+	} ?> 
+</div>
+</div>
+<div class="input_line">
+<div class="input_group1">
+<?lsmb INCLUDE input element_data = {
+       label = 'First Name',
+        name = 'first_name',
+        type = 'text',
+        size = '19'
+} ?>
+</div>
+<div class="input_group2">
+<?lsmb INCLUDE input element_data = {
+       label = 'Middle Name',
+        name = 'middle_name',
+        type = 'text',
+        size = '19'
+} ?>
+</div>
+<div class="input_group2">
+<?lsmb INCLUDE input element_data = {
+       label = 'Last Name',
+        name = 'last_name',
+        type = 'text',
+        size = '19'
+} ?>
+</div>
+</div>
+<div class="input_line">
+<div class="input_group1">
+		<?lsmb INCLUDE input element_data = {
+			label = text('Tax Number/SSN'),
+			name = "tax_id",
+			value = tax_id,
+			type = "text",
+			size = "19"
+		} #' ?>
+</div>
+<div class="input_group2">
+		<?lsmb INCLUDE input element_data = {
+			label = text('SIC'),
+			name = "sic_code",
+			value = sic_code,
+			type = "text",
+			size = "19",
+			class = 'sic'
+		} ?>
+</div>
+</div>
+<div class="input_line">
+            <hr/>
+<div class="input_group1">
+		<?lsmb INCLUDE button element_data = {
+			text = text('Save'),
+			class="submit" 
+			type="submit" 
+			name="action" 
+			value="save" 
+			accesskey="S" 
+			title="Save [Alt-S]"
+		} ?>
+</div>
+</div>
+<?lsmb FOREACH n = notes ?>
+<div class="note">
+<div class="note_contents"><?lsmb n.note ?></div>
+</div>
+<?lsmb END ?>
+</div>

Added: addons/1.3/colombia_general/trunk/patches/colombia_general.patch
===================================================================
--- addons/1.3/colombia_general/trunk/patches/colombia_general.patch	                        (rev 0)
+++ addons/1.3/colombia_general/trunk/patches/colombia_general.patch	2012-04-23 07:46:21 UTC (rev 4661)
@@ -0,0 +1,145 @@
+Index: UI/Contact/contact.html
+===================================================================
+--- UI/Contact/contact.html	(revision 4660)
++++ UI/Contact/contact.html	(working copy)
+@@ -252,139 +252,7 @@
+ </form>
+ </div>
+ <?lsmb ELSE ?>
+-<div class="container" id="company_div">
+-<?lsmb SWITCH entity_class
+-	?><?lsmb CASE 1 ?><?lsmb entity_classname = "Vendor" 
+-	?><?lsmb CASE 2 ?><?lsmb entity_classname = "Customer" 
+-	?><?lsmb END ?>
+-	<div class="listtop"><strong><?lsmb text("$operation $entity_classname") ?></strong></div>
+-<form name="customer" method="post" action="<?lsmb script ?>">
+-<?lsmb PROCESS input element_data = {
+-		type = "hidden"
+-		name = "target_div"
+-		value = 'company_div'
+-	} ?>
+-	<?lsmb PROCESS input element_data = {
+-		type = "hidden"
+-		name = "entity_id"
+-		value = entity_id
+-	} ?>	
+-	<?lsmb PROCESS input element_data = {
+-		type = "hidden"
+-		name = "id"
+-		value = id
+-	} ?>	
+-<?lsmb PROCESS input element_data = {
+-		type = "hidden"
+-		name = "form_id"
+-		value = form_id
+-	} ?>
+-	<?lsmb PROCESS input element_data = {
+-		type = "hidden"
+-		name = "account_class"
+-		value = account_class
+-	} ?>	
+-<div class="input_line">
+-<div class="input_group1">
+-	<?lsmb PROCESS input element_data = {
+-		label = text('Control Code') #'
+-		type= "text"
+-		name = "control_code"
+-		value = control_code
+-		size = "20"
+-	} ?>
+-	<?lsmb IF !created_as_class;
+-		created_as_class = entity_class;
+-	END; # IF !created_as_class ?> 
+-</div>
+-<div class="input_group2">
+-	<?lsmb PROCESS select element_data = {
+-		name = "created_as_class"
+-		options = entity_classes
+-		default_values = [created_as_class]
+-		text_attr = 'class'
+-		value_attr = 'id'
+-		label = text('Class')
+-	} ?>
+-	<?lsmb PROCESS button element_data = {
+-		text = text('Generate Control Code') #'
+-		type = "submit"
+-		name = "action"
+-		value = "generate_control_code"
+-		class = "submit"
+-        } ?>
+-        <?lsmb PROCESS button element_data = {
+-                text = text('Retrieve')
+-                type = 'submit'
+-                name = 'action'
+-               value = 'get_by_cc'
+-               class = 'submit'
+-        } ?>
+-</div>
+-</div>
+-<div class="input_line">
+-<div class="input_group1">
+-	<?lsmb PROCESS input element_data = {
+-		label = text('Name')
+-		type= "text"
+-		name = "name"
+-		value = name
+-		size = "20"
+-	} ?>
+-</div>
+-<div class="input_group2">
+-       <?lsmb country_list.unshift({}) ?>
+-		<?lsmb INCLUDE select element_data = {
+-			text_attr = "name"
+-			value_attr = "id"
+-			default_values = [country_id]
+-			options = country_list
+-			name = "country_id"
+-			label = text('Country') 
+-	} ?> 
+-</div>
+-</div>
+-<div class="input_line">
+-<div class="input_group1">
+-		<?lsmb INCLUDE input element_data = {
+-			label = text('Tax Number/SSN'),
+-			name = "tax_id",
+-			value = tax_id,
+-			type = "text",
+-			size = "19"
+-		} #' ?>
+-</div>
+-<div class="input_group2">
+-		<?lsmb INCLUDE input element_data = {
+-			label = text('SIC'),
+-			name = "sic_code",
+-			value = sic_code,
+-			type = "text",
+-			size = "19",
+-			class = 'sic'
+-		} ?>
+-</div>
+-</div>
+-<div class="input_line">
+-            <hr/>
+-<div class="input_group1">
+-		<?lsmb INCLUDE button element_data = {
+-			text = text('Save'),
+-			class="submit" 
+-			type="submit" 
+-			name="action" 
+-			value="save" 
+-			accesskey="S" 
+-			title="Save [Alt-S]"
+-		} ?>
+-</div>
+-</div>
+-<?lsmb FOREACH n = notes ?>
+-<div class="note">
+-<div class="note_contents"><?lsmb n.note ?></div>
+-</div>
+-<?lsmb END ?>
+-</div>
++<?lsmb INCLUDE 'divs/colombia_company.html' ?>
+ <?lsmb IF entity_id ?>
+ <div id="credit_div" class="container">
+ <div class="listtop"><strong><?lsmb text('Accounts') ?></strong></div>

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.