Skip to content
This repository has been archived by the owner on Dec 27, 2023. It is now read-only.

Commit

Permalink
Merge branch 'pu/cw/importcostcsv' into '2022.11'
Browse files Browse the repository at this point in the history
tweak(Tinebase): import csv for cost center/unit

See merge request tine20/tine20!1874
  • Loading branch information
corneliusweiss committed Mar 9, 2022
2 parents 7c4846a + 6357a7b commit 056dcef
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tine20/Sales/Setup/Update/15.php
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ public function update010()
public function update011()
{
try {
$def = Tinebase_ImportExportDefinition::getInstance()->getByName('sales_import_costcenter_csv');
$def = Tinebase_ImportExportDefinition::getInstance()->getByName('tinebase_import_costcenter_csv');
Tinebase_ImportExportDefinition::getInstance()->delete([$def->getId()]);
} catch (Tinebase_Exception_NotFound $tenf) {}
$this->addApplicationUpdate(Sales_Config::APP_NAME, '15.11', self::RELEASE015_UPDATE011);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
<source>name</source>
<destination>name</destination>
</field>
<field>
<source>description</source>
<destination>description</destination>
</field>
</mapping>
</config>

Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<config>
<name>tinebase_import_costunit_csv</name>
<model>Tinebase_Model_CostUnit</model>
<plugin>Tinebase_Import_CostUnit_Csv</plugin>
<type>import</type>
<headline>1</headline>
<dryrun>0</dryrun>
<delimiter>,</delimiter>
<extension>csv</extension>
<mapping>
<field>
<source>number</source>
<destination>number</destination>
</field>
<field>
<source>name</source>
<destination>name</destination>
</field>
<field>
<source>description</source>
<destination>description</destination>
</field>
</mapping>
</config>

0 comments on commit 056dcef

Please sign in to comment.